| OLD | NEW |
| 1 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===// | 1 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // TODO(stichnot): this ALLOW_LLVM_CL is a TBD option which will | 83 // TODO(stichnot): this ALLOW_LLVM_CL is a TBD option which will |
| 84 // allow for replacement of llvm:cl command line processor with a | 84 // allow for replacement of llvm:cl command line processor with a |
| 85 // smaller footprint version for Subzero. | 85 // smaller footprint version for Subzero. |
| 86 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } | 86 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } |
| 87 /// Return true if ALLOW_LLVM_IR is defined as a non-zero value | 87 /// Return true if ALLOW_LLVM_IR is defined as a non-zero value |
| 88 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } | 88 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } |
| 89 /// Return true if ALLOW_LLVM_IR_AS_INPUT is defined as a non-zero value | 89 /// Return true if ALLOW_LLVM_IR_AS_INPUT is defined as a non-zero value |
| 90 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } | 90 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } |
| 91 /// Return true if ALLOW_MINIMAL_BUILD is defined as a non-zero value | 91 /// Return true if ALLOW_MINIMAL_BUILD is defined as a non-zero value |
| 92 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } | 92 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } |
| 93 /// Return true if ALLOW_WASM is defined as a non-zero value |
| 94 constexpr bool wasm() { return ALLOW_WASM; } |
| 93 | 95 |
| 94 /// Return true if NDEBUG is defined | 96 /// Return true if NDEBUG is defined |
| 95 constexpr bool asserts() { | 97 constexpr bool asserts() { |
| 96 #ifdef NDEBUG | 98 #ifdef NDEBUG |
| 97 return false; | 99 return false; |
| 98 #else // !NDEBUG | 100 #else // !NDEBUG |
| 99 return true; | 101 return true; |
| 100 #endif // !NDEBUG | 102 #endif // !NDEBUG |
| 101 } | 103 } |
| 102 | 104 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 115 return true; | 117 return true; |
| 116 #else // !ALLOW_EXTRA_VALIDATION | 118 #else // !ALLOW_EXTRA_VALIDATION |
| 117 return false; | 119 return false; |
| 118 #endif // !ALLOW_EXTRA_VALIDATION | 120 #endif // !ALLOW_EXTRA_VALIDATION |
| 119 } | 121 } |
| 120 | 122 |
| 121 } // end of namespace BuildDefs | 123 } // end of namespace BuildDefs |
| 122 } // end of namespace Ice | 124 } // end of namespace Ice |
| 123 | 125 |
| 124 #endif // SUBZERO_SRC_ICEBUILDDEFS_H | 126 #endif // SUBZERO_SRC_ICEBUILDDEFS_H |
| OLD | NEW |