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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 /// getConstantPool() returns a copy of the constant pool for constants of a | 210 /// getConstantPool() returns a copy of the constant pool for constants of a |
211 /// given type. | 211 /// given type. |
212 ConstantList getConstantPool(Type Ty); | 212 ConstantList getConstantPool(Type Ty); |
213 /// Returns a copy of the list of external symbols. | 213 /// Returns a copy of the list of external symbols. |
214 ConstantList getConstantExternSyms(); | 214 ConstantList getConstantExternSyms(); |
215 /// @} | 215 /// @} |
216 | 216 |
217 /// Return a locked pointer to the registered jump tables. | 217 /// Return a locked pointer to the registered jump tables. |
218 JumpTableDataList getJumpTables(); | 218 JumpTableDataList getJumpTables(); |
219 /// Create a new jump table entry and return a reference to it. | 219 /// Create a new jump table entry and return a reference to it. |
220 JumpTableData &addJumpTable(IceString FuncName, SizeT Id, SizeT NumTargets); | 220 JumpTableData &addJumpTable(IceString FuncName, SizeT Id, |
| 221 const JumpTableData::TargetList &TargetList); |
221 | 222 |
222 const ClFlags &getFlags() const { return Flags; } | 223 const ClFlags &getFlags() const { return Flags; } |
223 | 224 |
224 bool isIRGenerationDisabled() const { | 225 bool isIRGenerationDisabled() const { |
225 return getFlags().getDisableIRGeneration(); | 226 return getFlags().getDisableIRGeneration(); |
226 } | 227 } |
227 | 228 |
228 /// Allocate data of type T using the global allocator. We allow entities | 229 /// Allocate data of type T using the global allocator. We allow entities |
229 /// allocated from this global allocator to be either trivially or | 230 /// allocated from this global allocator to be either trivially or |
230 /// non-trivially destructible. We optimize the case when T is trivially | 231 /// non-trivially destructible. We optimize the case when T is trivially |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 602 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
602 ~OstreamLocker() { Ctx->unlockStr(); } | 603 ~OstreamLocker() { Ctx->unlockStr(); } |
603 | 604 |
604 private: | 605 private: |
605 GlobalContext *const Ctx; | 606 GlobalContext *const Ctx; |
606 }; | 607 }; |
607 | 608 |
608 } // end of namespace Ice | 609 } // end of namespace Ice |
609 | 610 |
610 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 611 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
OLD | NEW |