| OLD | NEW |
| 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// | 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// |
| 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 implements the skeleton of the TargetLowering class, | 10 // This file implements the skeleton of the TargetLowering class, |
| 11 // specifically invoking the appropriate lowering method for a given | 11 // specifically invoking the appropriate lowering method for a given |
| 12 // instruction kind and driving global register allocation. It also | 12 // instruction kind and driving global register allocation. It also |
| 13 // implements the non-deleted instruction iteration in | 13 // implements the non-deleted instruction iteration in |
| 14 // LoweringContext. | 14 // LoweringContext. |
| 15 // | 15 // |
| 16 //===----------------------------------------------------------------------===// | 16 //===----------------------------------------------------------------------===// |
| 17 | 17 |
| 18 #include "assembler_arm32.h" | 18 #include "assembler_arm32.h" |
| 19 #include "assembler_ia32.h" | 19 #include "assembler_ia32.h" |
| 20 #include "assembler_mips32.h" |
| 20 #include "IceCfg.h" // setError() | 21 #include "IceCfg.h" // setError() |
| 21 #include "IceCfgNode.h" | 22 #include "IceCfgNode.h" |
| 22 #include "IceOperand.h" | 23 #include "IceOperand.h" |
| 23 #include "IceRegAlloc.h" | 24 #include "IceRegAlloc.h" |
| 24 #include "IceTargetLowering.h" | 25 #include "IceTargetLowering.h" |
| 25 #include "IceTargetLoweringARM32.h" | 26 #include "IceTargetLoweringARM32.h" |
| 27 #include "IceTargetLoweringMIPS32.h" |
| 26 #include "IceTargetLoweringX8632.h" | 28 #include "IceTargetLoweringX8632.h" |
| 27 | 29 |
| 28 namespace Ice { | 30 namespace Ice { |
| 29 | 31 |
| 30 void LoweringContext::init(CfgNode *N) { | 32 void LoweringContext::init(CfgNode *N) { |
| 31 Node = N; | 33 Node = N; |
| 32 End = getNode()->getInsts().end(); | 34 End = getNode()->getInsts().end(); |
| 33 rewind(); | 35 rewind(); |
| 34 advanceForward(Next); | 36 advanceForward(Next); |
| 35 } | 37 } |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 return std::unique_ptr<TargetDataLowering>(TargetData##X::create(Ctx)); | 287 return std::unique_ptr<TargetDataLowering>(TargetData##X::create(Ctx)); |
| 286 #include "llvm/Config/SZTargets.def" | 288 #include "llvm/Config/SZTargets.def" |
| 287 | 289 |
| 288 llvm_unreachable("Unsupported target data lowering"); | 290 llvm_unreachable("Unsupported target data lowering"); |
| 289 return nullptr; | 291 return nullptr; |
| 290 } | 292 } |
| 291 | 293 |
| 292 TargetDataLowering::~TargetDataLowering() {} | 294 TargetDataLowering::~TargetDataLowering() {} |
| 293 | 295 |
| 294 } // end of namespace Ice | 296 } // end of namespace Ice |
| OLD | NEW |