| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 keep or discard the above fragment. In addition, the code will always be | 68 keep or discard the above fragment. In addition, the code will always be |
| 69 looked at by the compiler which eliminates the problem with defines in that | 69 looked at by the compiler which eliminates the problem with defines in that |
| 70 if you don't build that variant, you don't even know if the code would | 70 if you don't build that variant, you don't even know if the code would |
| 71 compile unless you build with that variant. | 71 compile unless you build with that variant. |
| 72 | 72 |
| 73 **/ | 73 **/ |
| 74 | 74 |
| 75 namespace BuildDefs { | 75 namespace BuildDefs { |
| 76 | 76 |
| 77 // The ALLOW_* etc. symbols must be #defined to zero or non-zero. | 77 // The ALLOW_* etc. symbols must be #defined to zero or non-zero. |
| 78 /// Return true if ALLOW_DUMP is defined as a non-zero value |
| 78 constexpr bool dump() { return ALLOW_DUMP; } | 79 constexpr bool dump() { return ALLOW_DUMP; } |
| 79 /// Return true if ALLOW_LLVM_CL is defined as a non-zero value | 80 /// Return true if ALLOW_LLVM_CL is defined as a non-zero value |
| 80 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } | 81 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } |
| 81 /// Return true if ALLOW_LLVM_IR is defined as a non-zero value | 82 /// Return true if ALLOW_LLVM_IR is defined as a non-zero value |
| 82 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } | 83 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } |
| 83 /// Return true if ALLOW_LLVM_IR_AS_INPUT is defined as a non-zero value | 84 /// Return true if ALLOW_LLVM_IR_AS_INPUT is defined as a non-zero value |
| 84 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } | 85 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } |
| 85 /// Return true if ALLOW_MINIMAL_BUILD is defined as a non-zero value | 86 /// Return true if ALLOW_MINIMAL_BUILD is defined as a non-zero value |
| 86 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } | 87 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } |
| 87 | 88 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 109 return true; | 110 return true; |
| 110 #else // !ALLOW_EXTRA_VALIDATION | 111 #else // !ALLOW_EXTRA_VALIDATION |
| 111 return false; | 112 return false; |
| 112 #endif // !ALLOW_EXTRA_VALIDATION | 113 #endif // !ALLOW_EXTRA_VALIDATION |
| 113 } | 114 } |
| 114 | 115 |
| 115 } // end of namespace BuildDefs | 116 } // end of namespace BuildDefs |
| 116 } // end of namespace Ice | 117 } // end of namespace Ice |
| 117 | 118 |
| 118 #endif // SUBZERO_SRC_ICEBUILDDEFS_H | 119 #endif // SUBZERO_SRC_ICEBUILDDEFS_H |
| OLD | NEW |