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

Side by Side Diff: src/IceBuildDefs.h

Issue 1424923005: Add workaround to allow testing of ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove unnecessary addition of ARM32 local (assembler) label. Created 5 years, 1 month 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
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 checkIasmSafe() { return IASM_SAFE; }
28 29
29 // NDEBUG can be undefined, or defined to something arbitrary. 30 // NDEBUG can be undefined, or defined to something arbitrary.
30 constexpr bool asserts() { 31 constexpr bool asserts() {
31 #ifdef NDEBUG 32 #ifdef NDEBUG
32 return false; 33 return false;
33 #else // !NDEBUG 34 #else // !NDEBUG
34 return true; 35 return true;
35 #endif // !NDEBUG 36 #endif // !NDEBUG
36 } 37 }
37 38
38 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero. 39 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
39 constexpr bool extraValidation() { 40 constexpr bool extraValidation() {
40 #if ALLOW_EXTRA_VALIDATION 41 #if ALLOW_EXTRA_VALIDATION
41 return true; 42 return true;
42 #else // !ALLOW_EXTRA_VALIDATION 43 #else // !ALLOW_EXTRA_VALIDATION
43 return false; 44 return false;
44 #endif // !ALLOW_EXTRA_VALIDATION 45 #endif // !ALLOW_EXTRA_VALIDATION
45 } 46 }
46 47
47 } // end of namespace BuildDefs 48 } // end of namespace BuildDefs
48 } // end of namespace Ice 49 } // end of namespace Ice
49 50
50 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 51 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.h ('k') | src/IceInstARM32.h » ('j') | src/IceInstARM32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698