| OLD | NEW | 
|---|
| 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 the TargetLowering and LoweringContext | 10 // This file declares the TargetLowering and LoweringContext | 
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 192   // StackAdjustment keeps track of the current stack offset from its | 192   // StackAdjustment keeps track of the current stack offset from its | 
| 193   // natural location, as arguments are pushed for a function call. | 193   // natural location, as arguments are pushed for a function call. | 
| 194   int32_t StackAdjustment; | 194   int32_t StackAdjustment; | 
| 195   LoweringContext Context; | 195   LoweringContext Context; | 
| 196 | 196 | 
| 197 private: | 197 private: | 
| 198   TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; | 198   TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; | 
| 199   TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; | 199   TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; | 
| 200 }; | 200 }; | 
| 201 | 201 | 
|  | 202 // TargetGlobalInitLowering is used for "lowering" global | 
|  | 203 // initializers.  It is separated out from TargetLowering because it | 
|  | 204 // does not require a Cfg. | 
|  | 205 class TargetGlobalInitLowering { | 
|  | 206 public: | 
|  | 207   static TargetGlobalInitLowering *createLowering(TargetArch Target, | 
|  | 208                                                   GlobalContext *Ctx); | 
|  | 209   // TODO: Allow relocations to be represented as part of the Data. | 
|  | 210   virtual void lower(const IceString &Name, SizeT Align, bool IsInternal, | 
|  | 211                      bool IsConst, bool IsZeroInitializer, SizeT Size, | 
|  | 212                      const char *Data, bool DisableTranslation) = 0; | 
|  | 213 | 
|  | 214 protected: | 
|  | 215   TargetGlobalInitLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 
|  | 216   GlobalContext *Ctx; | 
|  | 217 | 
|  | 218 private: | 
|  | 219   TargetGlobalInitLowering(const TargetGlobalInitLowering &) | 
|  | 220   LLVM_DELETED_FUNCTION; | 
|  | 221   TargetGlobalInitLowering & | 
|  | 222   operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; | 
|  | 223 }; | 
|  | 224 | 
| 202 } // end of namespace Ice | 225 } // end of namespace Ice | 
| 203 | 226 | 
| 204 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 227 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 
| OLD | NEW | 
|---|