| 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, LoweringContext, and | 10 // This file declares the TargetLowering, LoweringContext, and |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 virtual void emit(const ConstantUndef *C) const = 0; | 215 virtual void emit(const ConstantUndef *C) const = 0; |
| 216 virtual void emit(const ConstantInteger32 *C) const = 0; | 216 virtual void emit(const ConstantInteger32 *C) const = 0; |
| 217 virtual void emit(const ConstantInteger64 *C) const = 0; | 217 virtual void emit(const ConstantInteger64 *C) const = 0; |
| 218 virtual void emit(const ConstantFloat *C) const = 0; | 218 virtual void emit(const ConstantFloat *C) const = 0; |
| 219 virtual void emit(const ConstantDouble *C) const = 0; | 219 virtual void emit(const ConstantDouble *C) const = 0; |
| 220 | 220 |
| 221 // Performs target-specific argument lowering. | 221 // Performs target-specific argument lowering. |
| 222 virtual void lowerArguments() = 0; | 222 virtual void lowerArguments() = 0; |
| 223 | 223 |
| 224 virtual void initNodeForLowering(CfgNode *) {} |
| 224 virtual void addProlog(CfgNode *Node) = 0; | 225 virtual void addProlog(CfgNode *Node) = 0; |
| 225 virtual void addEpilog(CfgNode *Node) = 0; | 226 virtual void addEpilog(CfgNode *Node) = 0; |
| 226 | 227 |
| 227 virtual ~TargetLowering() {} | 228 virtual ~TargetLowering() {} |
| 228 | 229 |
| 229 protected: | 230 protected: |
| 230 explicit TargetLowering(Cfg *Func); | 231 explicit TargetLowering(Cfg *Func); |
| 231 virtual void lowerAlloca(const InstAlloca *Inst) = 0; | 232 virtual void lowerAlloca(const InstAlloca *Inst) = 0; |
| 232 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; | 233 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; |
| 233 virtual void lowerAssign(const InstAssign *Inst) = 0; | 234 virtual void lowerAssign(const InstAssign *Inst) = 0; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 virtual void lowerConstants() const = 0; | 324 virtual void lowerConstants() const = 0; |
| 324 | 325 |
| 325 protected: | 326 protected: |
| 326 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 327 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 327 GlobalContext *Ctx; | 328 GlobalContext *Ctx; |
| 328 }; | 329 }; |
| 329 | 330 |
| 330 } // end of namespace Ice | 331 } // end of namespace Ice |
| 331 | 332 |
| 332 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 333 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |