| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 const llvm::SmallBitVector &ExcludeRegisters) const = 0; | 195 const llvm::SmallBitVector &ExcludeRegisters) const = 0; |
| 196 | 196 |
| 197 virtual void emitVariable(const Variable *Var) const = 0; | 197 virtual void emitVariable(const Variable *Var) const = 0; |
| 198 | 198 |
| 199 // Performs target-specific argument lowering. | 199 // Performs target-specific argument lowering. |
| 200 virtual void lowerArguments() = 0; | 200 virtual void lowerArguments() = 0; |
| 201 | 201 |
| 202 virtual void addProlog(CfgNode *Node) = 0; | 202 virtual void addProlog(CfgNode *Node) = 0; |
| 203 virtual void addEpilog(CfgNode *Node) = 0; | 203 virtual void addEpilog(CfgNode *Node) = 0; |
| 204 | 204 |
| 205 virtual void emitConstants() const = 0; | 205 static void emitConstants(GlobalContext *Ctx); |
| 206 | 206 |
| 207 virtual ~TargetLowering() {} | 207 virtual ~TargetLowering() {} |
| 208 | 208 |
| 209 protected: | 209 protected: |
| 210 TargetLowering(Cfg *Func); | 210 TargetLowering(Cfg *Func); |
| 211 virtual void lowerAlloca(const InstAlloca *Inst) = 0; | 211 virtual void lowerAlloca(const InstAlloca *Inst) = 0; |
| 212 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; | 212 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; |
| 213 virtual void lowerAssign(const InstAssign *Inst) = 0; | 213 virtual void lowerAssign(const InstAssign *Inst) = 0; |
| 214 virtual void lowerBr(const InstBr *Inst) = 0; | 214 virtual void lowerBr(const InstBr *Inst) = 0; |
| 215 virtual void lowerCall(const InstCall *Inst) = 0; | 215 virtual void lowerCall(const InstCall *Inst) = 0; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 virtual void lower(const VariableDeclaration &Var) = 0; | 261 virtual void lower(const VariableDeclaration &Var) = 0; |
| 262 | 262 |
| 263 protected: | 263 protected: |
| 264 TargetGlobalInitLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 264 TargetGlobalInitLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 265 GlobalContext *Ctx; | 265 GlobalContext *Ctx; |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 } // end of namespace Ice | 268 } // end of namespace Ice |
| 269 | 269 |
| 270 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 270 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |