| 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 /// \file | 10 /// \file |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // the constant pool. | 193 // the constant pool. |
| 194 Constant *getConstantInt(Type Ty, int64_t Value); | 194 Constant *getConstantInt(Type Ty, int64_t Value); |
| 195 Constant *getConstantInt1(int8_t ConstantInt1); | 195 Constant *getConstantInt1(int8_t ConstantInt1); |
| 196 Constant *getConstantInt8(int8_t ConstantInt8); | 196 Constant *getConstantInt8(int8_t ConstantInt8); |
| 197 Constant *getConstantInt16(int16_t ConstantInt16); | 197 Constant *getConstantInt16(int16_t ConstantInt16); |
| 198 Constant *getConstantInt32(int32_t ConstantInt32); | 198 Constant *getConstantInt32(int32_t ConstantInt32); |
| 199 Constant *getConstantInt64(int64_t ConstantInt64); | 199 Constant *getConstantInt64(int64_t ConstantInt64); |
| 200 Constant *getConstantFloat(float Value); | 200 Constant *getConstantFloat(float Value); |
| 201 Constant *getConstantDouble(double Value); | 201 Constant *getConstantDouble(double Value); |
| 202 /// Returns a symbolic constant. | 202 /// Returns a symbolic constant. |
| 203 Constant *getConstantSym(const RelocOffsetArray &Offset, |
| 204 const IceString &Name, const IceString &EmitString, |
| 205 bool SuppressMangling); |
| 203 Constant *getConstantSym(RelocOffsetT Offset, const IceString &Name, | 206 Constant *getConstantSym(RelocOffsetT Offset, const IceString &Name, |
| 204 bool SuppressMangling); | 207 bool SuppressMangling); |
| 205 Constant *getConstantExternSym(const IceString &Name); | 208 Constant *getConstantExternSym(const IceString &Name); |
| 206 /// Returns an undef. | 209 /// Returns an undef. |
| 207 Constant *getConstantUndef(Type Ty); | 210 Constant *getConstantUndef(Type Ty); |
| 208 /// Returns a zero value. | 211 /// Returns a zero value. |
| 209 Constant *getConstantZero(Type Ty); | 212 Constant *getConstantZero(Type Ty); |
| 210 /// getConstantPool() returns a copy of the constant pool for constants of a | 213 /// getConstantPool() returns a copy of the constant pool for constants of a |
| 211 /// given type. | 214 /// given type. |
| 212 ConstantList getConstantPool(Type Ty); | 215 ConstantList getConstantPool(Type Ty); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 601 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
| 599 ~OstreamLocker() { Ctx->unlockStr(); } | 602 ~OstreamLocker() { Ctx->unlockStr(); } |
| 600 | 603 |
| 601 private: | 604 private: |
| 602 GlobalContext *const Ctx; | 605 GlobalContext *const Ctx; |
| 603 }; | 606 }; |
| 604 | 607 |
| 605 } // end of namespace Ice | 608 } // end of namespace Ice |
| 606 | 609 |
| 607 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 610 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |