Jim Stichnoth | 20b71f5 | 2015-06-24 15:52:24 -0700 | [diff] [blame] | 1 | //===- subzero/src/IceDefs.h - Common Subzero declarations ------*- C++ -*-===// |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 2 | // |
| 3 | // The Subzero Code Generator |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 9 | /// |
| 10 | /// \file |
| 11 | /// This file declares various useful types and classes that have widespread use |
| 12 | /// across Subzero. Every Subzero source file is expected to include IceDefs.h. |
| 13 | /// |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #ifndef SUBZERO_SRC_ICEDEFS_H |
| 17 | #define SUBZERO_SRC_ICEDEFS_H |
| 18 | |
John Porto | 67f8de9 | 2015-06-25 10:14:17 -0700 | [diff] [blame] | 19 | #include "IceBuildDefs.h" // TODO(stichnot): move into individual files |
| 20 | #include "IceTLS.h" |
| 21 | |
Jan Voung | b17f61d | 2014-08-28 16:00:53 -0700 | [diff] [blame] | 22 | #include "llvm/ADT/ArrayRef.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 23 | #include "llvm/ADT/BitVector.h" |
Jim Stichnoth | 607e9f0 | 2014-11-06 13:32:05 -0800 | [diff] [blame] | 24 | #include "llvm/ADT/ilist.h" |
| 25 | #include "llvm/ADT/ilist_node.h" |
Jim Stichnoth | 7e57136 | 2015-01-09 11:43:26 -0800 | [diff] [blame] | 26 | #include "llvm/ADT/iterator_range.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 27 | #include "llvm/ADT/SmallBitVector.h" |
Jim Stichnoth | 586d4c2 | 2014-12-05 16:43:08 -0800 | [diff] [blame] | 28 | #include "llvm/ADT/SmallVector.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 29 | #include "llvm/ADT/STLExtras.h" |
Jim Stichnoth | 31c9559 | 2014-12-19 12:51:35 -0800 | [diff] [blame] | 30 | #include "llvm/Support/Allocator.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 31 | #include "llvm/Support/Casting.h" |
Jan Voung | 08c3bcd | 2014-12-01 17:55:16 -0800 | [diff] [blame] | 32 | #include "llvm/Support/ELF.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 33 | #include "llvm/Support/raw_ostream.h" |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 34 | |
John Porto | 67f8de9 | 2015-06-25 10:14:17 -0700 | [diff] [blame] | 35 | #include <cassert> |
| 36 | #include <cstdint> |
| 37 | #include <cstdio> // snprintf |
| 38 | #include <functional> // std::less |
| 39 | #include <limits> |
| 40 | #include <list> |
| 41 | #include <map> |
| 42 | #include <memory> |
| 43 | #include <mutex> |
| 44 | #include <string> |
| 45 | #include <system_error> |
| 46 | #include <vector> |
Jim Stichnoth | 7d53825 | 2015-01-23 10:22:56 -0800 | [diff] [blame] | 47 | |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 48 | namespace Ice { |
| 49 | |
Jan Voung | ec27073 | 2015-01-12 17:00:22 -0800 | [diff] [blame] | 50 | class Assembler; |
Jim Stichnoth | 5bc2b1d | 2014-05-22 13:38:48 -0700 | [diff] [blame] | 51 | class Cfg; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 52 | class CfgNode; |
| 53 | class Constant; |
Jan Voung | ec27073 | 2015-01-12 17:00:22 -0800 | [diff] [blame] | 54 | class ELFObjectWriter; |
| 55 | class ELFStreamer; |
Karl Schimpf | 9d98d79 | 2014-10-13 15:01:08 -0700 | [diff] [blame] | 56 | class FunctionDeclaration; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 57 | class GlobalContext; |
Karl Schimpf | 9d98d79 | 2014-10-13 15:01:08 -0700 | [diff] [blame] | 58 | class GlobalDeclaration; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 59 | class Inst; |
Jim Stichnoth | 336f6c4 | 2014-10-30 15:01:31 -0700 | [diff] [blame] | 60 | class InstAssign; |
Andrew Scull | 86df4e9 | 2015-07-30 13:54:44 -0700 | [diff] [blame] | 61 | class InstJumpTable; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 62 | class InstPhi; |
Andrew Scull | 86df4e9 | 2015-07-30 13:54:44 -0700 | [diff] [blame] | 63 | class InstSwitch; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 64 | class InstTarget; |
Jim Stichnoth | d97c7df | 2014-06-04 11:57:08 -0700 | [diff] [blame] | 65 | class LiveRange; |
| 66 | class Liveness; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 67 | class Operand; |
Jan Voung | 72984d8 | 2015-01-29 14:42:38 -0800 | [diff] [blame] | 68 | class TargetDataLowering; |
Jim Stichnoth | 5bc2b1d | 2014-05-22 13:38:48 -0700 | [diff] [blame] | 69 | class TargetLowering; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 70 | class Variable; |
Karl Schimpf | 9d98d79 | 2014-10-13 15:01:08 -0700 | [diff] [blame] | 71 | class VariableDeclaration; |
Jim Stichnoth | 144cdce | 2014-09-22 16:02:59 -0700 | [diff] [blame] | 72 | class VariablesMetadata; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 73 | |
Jan Voung | 1d62cf0 | 2015-01-09 14:57:32 -0800 | [diff] [blame] | 74 | template <size_t SlabSize = 1024 * 1024> |
| 75 | using ArenaAllocator = |
| 76 | llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, SlabSize>; |
Jim Stichnoth | 31c9559 | 2014-12-19 12:51:35 -0800 | [diff] [blame] | 77 | |
Jan Voung | 1d62cf0 | 2015-01-09 14:57:32 -0800 | [diff] [blame] | 78 | ArenaAllocator<> *getCurrentCfgAllocator(); |
Jim Stichnoth | 31c9559 | 2014-12-19 12:51:35 -0800 | [diff] [blame] | 79 | |
| 80 | template <typename T> struct CfgLocalAllocator { |
| 81 | using value_type = T; |
| 82 | CfgLocalAllocator() = default; |
| 83 | template <class U> CfgLocalAllocator(const CfgLocalAllocator<U> &) {} |
| 84 | T *allocate(std::size_t Num) { |
| 85 | return getCurrentCfgAllocator()->Allocate<T>(Num); |
| 86 | } |
| 87 | void deallocate(T *, std::size_t) {} |
| 88 | }; |
| 89 | template <typename T, typename U> |
| 90 | inline bool operator==(const CfgLocalAllocator<T> &, |
| 91 | const CfgLocalAllocator<U> &) { |
| 92 | return true; |
| 93 | } |
| 94 | template <typename T, typename U> |
| 95 | inline bool operator!=(const CfgLocalAllocator<T> &, |
| 96 | const CfgLocalAllocator<U> &) { |
| 97 | return false; |
| 98 | } |
| 99 | |
John Porto | 1bec8bc | 2015-06-22 10:51:13 -0700 | [diff] [blame] | 100 | // makeUnique should be used when memory is expected to be allocated from the |
| 101 | // heap (as opposed to allocated from some Allocator.) It is intended to be used |
| 102 | // instead of new. |
| 103 | // |
| 104 | // The expected usage is as follows |
| 105 | // |
| 106 | // class MyClass { |
| 107 | // public: |
| 108 | // static std::unique_ptr<MyClass> create(<ctor_args>) { |
| 109 | // return makeUnique<MyClass>(<ctor_args>); |
| 110 | // } |
| 111 | // |
| 112 | // private: |
| 113 | // ENABLE_MAKE_UNIQUE; |
| 114 | // |
| 115 | // MyClass(<ctor_args>) ... |
| 116 | // } |
| 117 | // |
| 118 | // ENABLE_MAKE_UNIQUE is a trick that is necessary if MyClass' ctor is private. |
| 119 | // Private ctors are highly encouraged when you're writing a class that you'd |
| 120 | // like to have allocated with makeUnique as it would prevent users from |
| 121 | // declaring stack allocated variables. |
| 122 | namespace Internal { |
| 123 | struct MakeUniqueEnabler { |
| 124 | template <class T, class... Args> |
| 125 | static std::unique_ptr<T> create(Args &&... TheArgs) { |
| 126 | std::unique_ptr<T> Unique(new T(std::forward<Args>(TheArgs)...)); |
| 127 | return Unique; |
| 128 | } |
| 129 | }; |
| 130 | } // end of namespace Internal |
| 131 | |
| 132 | template <class T, class... Args> |
| 133 | static std::unique_ptr<T> makeUnique(Args &&... TheArgs) { |
| 134 | return ::Ice::Internal::MakeUniqueEnabler::create<T>( |
| 135 | std::forward<Args>(TheArgs)...); |
| 136 | } |
| 137 | |
| 138 | #define ENABLE_MAKE_UNIQUE friend struct ::Ice::Internal::MakeUniqueEnabler |
| 139 | |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 140 | typedef std::string IceString; |
Jim Stichnoth | 607e9f0 | 2014-11-06 13:32:05 -0800 | [diff] [blame] | 141 | typedef llvm::ilist<Inst> InstList; |
Jim Stichnoth | 1502e59 | 2014-12-11 09:22:45 -0800 | [diff] [blame] | 142 | // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for |
| 143 | // AssignList, but this runs into issues with SFINAE. |
| 144 | typedef InstList PhiList; |
| 145 | typedef InstList AssignList; |
Jim Stichnoth | 31c9559 | 2014-12-19 12:51:35 -0800 | [diff] [blame] | 146 | // VarList and NodeList are arena-allocated from the Cfg's allocator. |
| 147 | typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList; |
| 148 | typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList; |
Jim Stichnoth | f61d5b2 | 2014-05-23 13:31:24 -0700 | [diff] [blame] | 149 | typedef std::vector<Constant *> ConstantList; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 150 | |
Jan Voung | 72984d8 | 2015-01-29 14:42:38 -0800 | [diff] [blame] | 151 | typedef std::vector<VariableDeclaration *> VariableDeclarationList; |
| 152 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 153 | /// SizeT is for holding small-ish limits like number of source |
| 154 | /// operands in an instruction. It is used instead of size_t (which |
| 155 | /// may be 64-bits wide) when we want to save space. |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 156 | typedef uint32_t SizeT; |
| 157 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 158 | /// InstNumberT is for holding an instruction number. Instruction |
| 159 | /// numbers are used for representing Variable live ranges. |
Jim Stichnoth | d97c7df | 2014-06-04 11:57:08 -0700 | [diff] [blame] | 160 | typedef int32_t InstNumberT; |
| 161 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 162 | /// A LiveBeginEndMapEntry maps a Variable::Number value to an |
| 163 | /// Inst::Number value, giving the instruction number that begins or |
| 164 | /// ends a variable's live range. |
Jim Stichnoth | 4775255 | 2014-10-13 17:15:08 -0700 | [diff] [blame] | 165 | typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; |
Jim Stichnoth | c599e46 | 2015-01-08 16:56:49 -0800 | [diff] [blame] | 166 | typedef std::vector<LiveBeginEndMapEntry, |
Jim Stichnoth | e4a8f40 | 2015-01-20 12:52:51 -0800 | [diff] [blame] | 167 | CfgLocalAllocator<LiveBeginEndMapEntry>> LiveBeginEndMap; |
Jim Stichnoth | 4775255 | 2014-10-13 17:15:08 -0700 | [diff] [blame] | 168 | typedef llvm::BitVector LivenessBV; |
| 169 | |
Jim Stichnoth | 8363a06 | 2014-10-07 10:02:38 -0700 | [diff] [blame] | 170 | typedef uint32_t TimerStackIdT; |
Jim Stichnoth | c4554d7 | 2014-09-30 16:49:38 -0700 | [diff] [blame] | 171 | typedef uint32_t TimerIdT; |
| 172 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 173 | /// Use alignas(MaxCacheLineSize) to isolate variables/fields that |
| 174 | /// might be contended while multithreading. Assumes the maximum cache |
| 175 | /// line size is 64. |
Jim Stichnoth | dd842db | 2015-01-27 12:53:53 -0800 | [diff] [blame] | 176 | enum { MaxCacheLineSize = 64 }; |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 177 | // Use ICE_CACHELINE_BOUNDARY to force the next field in a declaration |
| 178 | // list to be aligned to the next cache line. |
JF Bastien | 867684e | 2015-01-28 15:07:38 -0800 | [diff] [blame] | 179 | // Note: zero is added to work around the following GCC 4.8 bug (fixed in 4.9): |
| 180 | // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55382 |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 181 | #define ICE_CACHELINE_BOUNDARY \ |
JF Bastien | 867684e | 2015-01-28 15:07:38 -0800 | [diff] [blame] | 182 | __attribute__((aligned(MaxCacheLineSize + 0))) int : 0 |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 183 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 184 | /// PNaCl is ILP32, so theoretically we should only need 32-bit offsets. |
Jan Voung | fe14fb8 | 2014-10-13 15:56:32 -0700 | [diff] [blame] | 185 | typedef int32_t RelocOffsetT; |
Jan Voung | c0d965f | 2014-11-04 16:55:01 -0800 | [diff] [blame] | 186 | enum { RelocAddrSize = 4 }; |
Jan Voung | fe14fb8 | 2014-10-13 15:56:32 -0700 | [diff] [blame] | 187 | |
Jim Stichnoth | d97c7df | 2014-06-04 11:57:08 -0700 | [diff] [blame] | 188 | enum LivenessMode { |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 189 | /// Basic version of live-range-end calculation. Marks the last uses |
| 190 | /// of variables based on dataflow analysis. Records the set of |
| 191 | /// live-in and live-out variables for each block. Identifies and |
| 192 | /// deletes dead instructions (primarily stores). |
Jim Stichnoth | d97c7df | 2014-06-04 11:57:08 -0700 | [diff] [blame] | 193 | Liveness_Basic, |
| 194 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 195 | /// In addition to Liveness_Basic, also calculate the complete |
| 196 | /// live range for each variable in a form suitable for interference |
| 197 | /// calculation and register allocation. |
Jim Stichnoth | d97c7df | 2014-06-04 11:57:08 -0700 | [diff] [blame] | 198 | Liveness_Intervals |
| 199 | }; |
| 200 | |
Jim Stichnoth | 70d0a05 | 2014-11-14 15:53:46 -0800 | [diff] [blame] | 201 | enum RegAllocKind { |
Jim Stichnoth | a3f57b9 | 2015-07-30 12:46:04 -0700 | [diff] [blame] | 202 | RAK_Unknown, |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 203 | RAK_Global, /// full, global register allocation |
Jim Stichnoth | a3f57b9 | 2015-07-30 12:46:04 -0700 | [diff] [blame] | 204 | RAK_Phi, /// infinite-weight Variables with active spilling/filling |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 205 | RAK_InfOnly /// allocation only for infinite-weight Variables |
Jim Stichnoth | 70d0a05 | 2014-11-14 15:53:46 -0800 | [diff] [blame] | 206 | }; |
| 207 | |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 208 | enum VerboseItem { |
| 209 | IceV_None = 0, |
| 210 | IceV_Instructions = 1 << 0, |
| 211 | IceV_Deleted = 1 << 1, |
| 212 | IceV_InstNumbers = 1 << 2, |
| 213 | IceV_Preds = 1 << 3, |
| 214 | IceV_Succs = 1 << 4, |
| 215 | IceV_Liveness = 1 << 5, |
Jim Stichnoth | 769be68 | 2015-01-15 09:05:08 -0800 | [diff] [blame] | 216 | IceV_RegOrigins = 1 << 6, |
| 217 | IceV_LinearScan = 1 << 7, |
| 218 | IceV_Frame = 1 << 8, |
| 219 | IceV_AddrOpt = 1 << 9, |
| 220 | IceV_Random = 1 << 10, |
Jim Stichnoth | a59ae6f | 2015-05-17 10:11:41 -0700 | [diff] [blame] | 221 | IceV_Folding = 1 << 11, |
Jim Stichnoth | e4f65d8 | 2015-06-17 22:16:02 -0700 | [diff] [blame] | 222 | IceV_RMW = 1 << 12, |
Jim Stichnoth | ad40353 | 2014-09-25 12:44:17 -0700 | [diff] [blame] | 223 | IceV_All = ~IceV_None, |
Jim Stichnoth | c4554d7 | 2014-09-30 16:49:38 -0700 | [diff] [blame] | 224 | IceV_Most = IceV_All & ~IceV_LinearScan |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 225 | }; |
| 226 | typedef uint32_t VerboseMask; |
| 227 | |
Jim Stichnoth | d442e7e | 2015-02-12 14:01:48 -0800 | [diff] [blame] | 228 | enum FileType { |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 229 | FT_Elf, /// ELF .o file |
| 230 | FT_Asm, /// Assembly .s file |
| 231 | FT_Iasm /// "Integrated assembler" .byte-style .s file |
Jim Stichnoth | d442e7e | 2015-02-12 14:01:48 -0800 | [diff] [blame] | 232 | }; |
| 233 | |
Jim Stichnoth | 78282f6 | 2014-07-27 23:14:00 -0700 | [diff] [blame] | 234 | typedef llvm::raw_ostream Ostream; |
Jan Voung | 08c3bcd | 2014-12-01 17:55:16 -0800 | [diff] [blame] | 235 | typedef llvm::raw_fd_ostream Fdstream; |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 236 | |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 237 | typedef std::mutex GlobalLockType; |
| 238 | |
Jim Stichnoth | dd842db | 2015-01-27 12:53:53 -0800 | [diff] [blame] | 239 | enum ErrorCodes { EC_None = 0, EC_Args, EC_Bitcode, EC_Translation }; |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 240 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 241 | /// Wrapper around std::error_code for allowing multiple errors to be |
| 242 | /// folded into one. The current implementation keeps track of the |
| 243 | /// first error, which is likely to be the most useful one, and this |
| 244 | /// could be extended to e.g. collect a vector of errors. |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 245 | class ErrorCode : public std::error_code { |
| 246 | ErrorCode(const ErrorCode &) = delete; |
| 247 | ErrorCode &operator=(const ErrorCode &) = delete; |
| 248 | |
| 249 | public: |
Jim Stichnoth | eafb56c | 2015-06-22 10:35:22 -0700 | [diff] [blame] | 250 | ErrorCode() = default; |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 251 | void assign(ErrorCodes Code) { |
| 252 | if (!HasError) { |
| 253 | HasError = true; |
| 254 | std::error_code::assign(Code, std::generic_category()); |
| 255 | } |
| 256 | } |
| 257 | void assign(int Code) { assign(static_cast<ErrorCodes>(Code)); } |
| 258 | |
| 259 | private: |
Jim Stichnoth | eafb56c | 2015-06-22 10:35:22 -0700 | [diff] [blame] | 260 | bool HasError = false; |
Jim Stichnoth | fa4efea | 2015-01-27 05:06:03 -0800 | [diff] [blame] | 261 | }; |
| 262 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 263 | /// Reverse range adaptors written in terms of llvm::make_range(). |
Jim Stichnoth | 7e57136 | 2015-01-09 11:43:26 -0800 | [diff] [blame] | 264 | template <typename T> |
| 265 | llvm::iterator_range<typename T::const_reverse_iterator> |
| 266 | reverse_range(const T &Container) { |
| 267 | return llvm::make_range(Container.rbegin(), Container.rend()); |
| 268 | } |
| 269 | template <typename T> |
| 270 | llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { |
| 271 | return llvm::make_range(Container.rbegin(), Container.rend()); |
| 272 | } |
| 273 | |
Andrew Scull | 9612d32 | 2015-07-06 14:53:25 -0700 | [diff] [blame] | 274 | /// Options for pooling and randomization of immediates. |
Qining Lu | 253dc8a | 2015-06-22 10:10:23 -0700 | [diff] [blame] | 275 | enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; |
| 276 | |
Jim Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 277 | } // end of namespace Ice |
| 278 | |
| 279 | #endif // SUBZERO_SRC_ICEDEFS_H |