Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: src/IceBuildDefs.h

Issue 1215463014: Modify how textual bitcode is injected into pnacl-sz. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in path set 3. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.standalone ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 /// This file defines constexpr functions to query various #define values. 11 /// This file defines constexpr functions to query various #define values.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICEBUILDDEFS_H 15 #ifndef SUBZERO_SRC_ICEBUILDDEFS_H
16 #define SUBZERO_SRC_ICEBUILDDEFS_H 16 #define SUBZERO_SRC_ICEBUILDDEFS_H
17 17
18 namespace Ice { 18 namespace Ice {
19 namespace BuildDefs { 19 namespace BuildDefs {
20 20
21 // The ALLOW_* etc. symbols must be #defined to zero or non-zero. 21 // The ALLOW_* etc. symbols must be #defined to zero or non-zero.
22 constexpr bool disableIrGen() { return ALLOW_DISABLE_IR_GEN; } 22 constexpr bool disableIrGen() { return ALLOW_DISABLE_IR_GEN; }
23 constexpr bool dump() { return ALLOW_DUMP; } 23 constexpr bool dump() { return ALLOW_DUMP; }
24 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } 24 constexpr bool llvmCl() { return ALLOW_LLVM_CL; }
25 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } 25 constexpr bool llvmIr() { return ALLOW_LLVM_IR; }
26 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } 26 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; }
27 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } 27 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; }
28 constexpr bool textualBitcode() { return INPUT_IS_TEXTUAL_BITCODE; }
29 28
30 // NDEBUG can be undefined, or defined to something arbitrary. 29 // NDEBUG can be undefined, or defined to something arbitrary.
31 constexpr bool asserts() { 30 constexpr bool asserts() {
32 #ifdef NDEBUG 31 #ifdef NDEBUG
33 return false; 32 return false;
34 #else // !NDEBUG 33 #else // !NDEBUG
35 return true; 34 return true;
36 #endif // !NDEBUG 35 #endif // !NDEBUG
37 } 36 }
38 37
39 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero. 38 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
40 constexpr bool extraValidation() { 39 constexpr bool extraValidation() {
41 #if ALLOW_EXTRA_VALIDATION 40 #if ALLOW_EXTRA_VALIDATION
42 return true; 41 return true;
43 #else // !ALLOW_EXTRA_VALIDATION 42 #else // !ALLOW_EXTRA_VALIDATION
44 return false; 43 return false;
45 #endif // !ALLOW_EXTRA_VALIDATION 44 #endif // !ALLOW_EXTRA_VALIDATION
46 } 45 }
47 46
48 } // end of namespace BuildDefs 47 } // end of namespace BuildDefs
49 } // end of namespace Ice 48 } // end of namespace Ice
50 49
51 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 50 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698