OLD | NEW |
1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// | 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- 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 aspects of the compilation that persist across | 10 // This file declares aspects of the compilation that persist across |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 // Manage Constants. | 105 // Manage Constants. |
106 // getConstant*() functions are not const because they might add | 106 // getConstant*() functions are not const because they might add |
107 // something to the constant pool. | 107 // something to the constant pool. |
108 Constant *getConstantInt32(Type Ty, uint32_t ConstantInt32); | 108 Constant *getConstantInt32(Type Ty, uint32_t ConstantInt32); |
109 Constant *getConstantInt64(Type Ty, uint64_t ConstantInt64); | 109 Constant *getConstantInt64(Type Ty, uint64_t ConstantInt64); |
110 Constant *getConstantFloat(float Value); | 110 Constant *getConstantFloat(float Value); |
111 Constant *getConstantDouble(double Value); | 111 Constant *getConstantDouble(double Value); |
112 // Returns a symbolic constant. | 112 // Returns a symbolic constant. |
113 Constant *getConstantSym(Type Ty, int64_t Offset, const IceString &Name = "", | 113 Constant *getConstantSym(Type Ty, RelocOffsetT Offset, |
| 114 const IceString &Name = "", |
114 bool SuppressMangling = false); | 115 bool SuppressMangling = false); |
115 // Returns an undef. | 116 // Returns an undef. |
116 Constant *getConstantUndef(Type Ty); | 117 Constant *getConstantUndef(Type Ty); |
117 // Returns a zero value. | 118 // Returns a zero value. |
118 Constant *getConstantZero(Type Ty); | 119 Constant *getConstantZero(Type Ty); |
119 // getConstantPool() returns a copy of the constant pool for | 120 // getConstantPool() returns a copy of the constant pool for |
120 // constants of a given type. | 121 // constants of a given type. |
121 ConstantList getConstantPool(Type Ty) const; | 122 ConstantList getConstantPool(Type Ty) const; |
122 // Returns a new function declaration, allocated in an internal | 123 // Returns a new function declaration, allocated in an internal |
123 // memory pool. Ownership of the function is maintained by this | 124 // memory pool. Ownership of the function is maintained by this |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 231 |
231 private: | 232 private: |
232 TimerIdT ID; | 233 TimerIdT ID; |
233 GlobalContext *const Ctx; | 234 GlobalContext *const Ctx; |
234 const bool Active; | 235 const bool Active; |
235 }; | 236 }; |
236 | 237 |
237 } // end of namespace Ice | 238 } // end of namespace Ice |
238 | 239 |
239 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 240 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
OLD | NEW |