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

Side by Side Diff: src/IceDefs.h

Issue 618313003: Subzero: Move to C++11 static_assert(). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove the dummy wrapper functions around the static_asserts Created 6 years, 2 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 | « no previous file | src/IceIntrinsics.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/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- 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 // This file declares various useful types and classes that have 10 // This file declares various useful types and classes that have
(...skipping 15 matching lines...) Expand all
26 #include <map> 26 #include <map>
27 #include <set> 27 #include <set>
28 #include <string> 28 #include <string>
29 #include <vector> 29 #include <vector>
30 30
31 #include "llvm/ADT/ArrayRef.h" 31 #include "llvm/ADT/ArrayRef.h"
32 #include "llvm/ADT/BitVector.h" 32 #include "llvm/ADT/BitVector.h"
33 #include "llvm/ADT/SmallBitVector.h" 33 #include "llvm/ADT/SmallBitVector.h"
34 #include "llvm/ADT/STLExtras.h" 34 #include "llvm/ADT/STLExtras.h"
35 #include "llvm/Support/Casting.h" 35 #include "llvm/Support/Casting.h"
36 #include "llvm/Support/Compiler.h" // LLVM_STATIC_ASSERT
37 #include "llvm/Support/raw_ostream.h" 36 #include "llvm/Support/raw_ostream.h"
38 #include "llvm/Support/Timer.h" 37 #include "llvm/Support/Timer.h"
39 38
40 // Roll our own static_assert<> in the absence of C++11. TODO: change
41 // to static_assert<> with C++11.
42 template <bool> struct staticAssert;
43 template <> struct staticAssert<true> {}; // only true is defined
44 #define STATIC_ASSERT(x) staticAssert<(x)>()
45
46 namespace Ice { 39 namespace Ice {
47 40
48 class Cfg; 41 class Cfg;
49 class CfgNode; 42 class CfgNode;
50 class Constant; 43 class Constant;
51 class GlobalContext; 44 class GlobalContext;
52 class Inst; 45 class Inst;
53 class InstPhi; 46 class InstPhi;
54 class InstTarget; 47 class InstTarget;
55 class LiveRange; 48 class LiveRange;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 IceV_All = ~IceV_None, 102 IceV_All = ~IceV_None,
110 IceV_Most = IceV_All & ~IceV_LinearScan 103 IceV_Most = IceV_All & ~IceV_LinearScan
111 }; 104 };
112 typedef uint32_t VerboseMask; 105 typedef uint32_t VerboseMask;
113 106
114 typedef llvm::raw_ostream Ostream; 107 typedef llvm::raw_ostream Ostream;
115 108
116 } // end of namespace Ice 109 } // end of namespace Ice
117 110
118 #endif // SUBZERO_SRC_ICEDEFS_H 111 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceIntrinsics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698