| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, | 142 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, |
| 143 RegSetMask Exclude) const = 0; | 143 RegSetMask Exclude) const = 0; |
| 144 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; | 144 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; |
| 145 void regAlloc(); | 145 void regAlloc(); |
| 146 | 146 |
| 147 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; | 147 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; |
| 148 | 148 |
| 149 virtual void addProlog(CfgNode *Node) = 0; | 149 virtual void addProlog(CfgNode *Node) = 0; |
| 150 virtual void addEpilog(CfgNode *Node) = 0; | 150 virtual void addEpilog(CfgNode *Node) = 0; |
| 151 | 151 |
| 152 virtual void emitConstants() const = 0; |
| 153 |
| 152 virtual ~TargetLowering() {} | 154 virtual ~TargetLowering() {} |
| 153 | 155 |
| 154 protected: | 156 protected: |
| 155 TargetLowering(Cfg *Func) | 157 TargetLowering(Cfg *Func) |
| 156 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), | 158 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), |
| 157 StackAdjustment(0) {} | 159 StackAdjustment(0) {} |
| 158 virtual void lowerAlloca(const InstAlloca *Inst) = 0; | 160 virtual void lowerAlloca(const InstAlloca *Inst) = 0; |
| 159 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; | 161 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; |
| 160 virtual void lowerAssign(const InstAssign *Inst) = 0; | 162 virtual void lowerAssign(const InstAssign *Inst) = 0; |
| 161 virtual void lowerBr(const InstBr *Inst) = 0; | 163 virtual void lowerBr(const InstBr *Inst) = 0; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 188 LoweringContext Context; | 190 LoweringContext Context; |
| 189 | 191 |
| 190 private: | 192 private: |
| 191 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; | 193 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; |
| 192 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; | 194 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 } // end of namespace Ice | 197 } // end of namespace Ice |
| 196 | 198 |
| 197 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 199 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |