| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 // Manage Constants. | 103 // Manage Constants. |
| 104 // getConstant*() functions are not const because they might add | 104 // getConstant*() functions are not const because they might add |
| 105 // something to the constant pool. | 105 // something to the constant pool. |
| 106 Constant *getConstantInt32(Type Ty, uint32_t ConstantInt32); | 106 Constant *getConstantInt32(Type Ty, uint32_t ConstantInt32); |
| 107 Constant *getConstantInt64(Type Ty, uint64_t ConstantInt64); | 107 Constant *getConstantInt64(Type Ty, uint64_t ConstantInt64); |
| 108 Constant *getConstantFloat(float Value); | 108 Constant *getConstantFloat(float Value); |
| 109 Constant *getConstantDouble(double Value); | 109 Constant *getConstantDouble(double Value); |
| 110 // Returns a symbolic constant. | 110 // Returns a symbolic constant. |
| 111 Constant *getConstantSym(Type Ty, int64_t Offset, const IceString &Name = "", | 111 Constant *getConstantSym(Type Ty, RelocOffsetT Offset, |
| 112 const IceString &Name = "", |
| 112 bool SuppressMangling = false); | 113 bool SuppressMangling = false); |
| 113 // Returns an undef. | 114 // Returns an undef. |
| 114 Constant *getConstantUndef(Type Ty); | 115 Constant *getConstantUndef(Type Ty); |
| 115 // Returns a zero value. | 116 // Returns a zero value. |
| 116 Constant *getConstantZero(Type Ty); | 117 Constant *getConstantZero(Type Ty); |
| 117 // getConstantPool() returns a copy of the constant pool for | 118 // getConstantPool() returns a copy of the constant pool for |
| 118 // constants of a given type. | 119 // constants of a given type. |
| 119 ConstantList getConstantPool(Type Ty) const; | 120 ConstantList getConstantPool(Type Ty) const; |
| 120 | 121 |
| 121 const ClFlags &getFlags() const { return Flags; } | 122 const ClFlags &getFlags() const { return Flags; } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 private: | 218 private: |
| 218 TimerIdT ID; | 219 TimerIdT ID; |
| 219 GlobalContext *const Ctx; | 220 GlobalContext *const Ctx; |
| 220 const bool Active; | 221 const bool Active; |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 } // end of namespace Ice | 224 } // end of namespace Ice |
| 224 | 225 |
| 225 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 226 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |