| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 141 }; |
| 142 typedef uint32_t RegSetMask; | 142 typedef uint32_t RegSetMask; |
| 143 | 143 |
| 144 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, | 144 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, |
| 145 RegSetMask Exclude) const = 0; | 145 RegSetMask Exclude) const = 0; |
| 146 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; | 146 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; |
| 147 void regAlloc(); | 147 void regAlloc(); |
| 148 | 148 |
| 149 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; | 149 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; |
| 150 | 150 |
| 151 // Performs target-specific argument lowering. |
| 152 virtual void lowerArguments() = 0; |
| 153 |
| 151 virtual void addProlog(CfgNode *Node) = 0; | 154 virtual void addProlog(CfgNode *Node) = 0; |
| 152 virtual void addEpilog(CfgNode *Node) = 0; | 155 virtual void addEpilog(CfgNode *Node) = 0; |
| 153 | 156 |
| 154 virtual void emitConstants() const = 0; | 157 virtual void emitConstants() const = 0; |
| 155 | 158 |
| 156 virtual ~TargetLowering() {} | 159 virtual ~TargetLowering() {} |
| 157 | 160 |
| 158 protected: | 161 protected: |
| 159 TargetLowering(Cfg *Func) | 162 TargetLowering(Cfg *Func) |
| 160 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), | 163 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 private: | 221 private: |
| 219 TargetGlobalInitLowering(const TargetGlobalInitLowering &) | 222 TargetGlobalInitLowering(const TargetGlobalInitLowering &) |
| 220 LLVM_DELETED_FUNCTION; | 223 LLVM_DELETED_FUNCTION; |
| 221 TargetGlobalInitLowering & | 224 TargetGlobalInitLowering & |
| 222 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; | 225 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; |
| 223 }; | 226 }; |
| 224 | 227 |
| 225 } // end of namespace Ice | 228 } // end of namespace Ice |
| 226 | 229 |
| 227 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 230 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |