| 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 "IceAssemblerARM32.h" | 18 #include "IceAssemblerARM32.h" |
| 19 #include "IceAssemblerX8632.h" | 19 #include "IceAssemblerX8632.h" |
| 20 #include "IceAssemblerX8664.h" |
| 20 #include "assembler_mips32.h" | 21 #include "assembler_mips32.h" |
| 21 #include "IceCfg.h" // setError() | 22 #include "IceCfg.h" // setError() |
| 22 #include "IceCfgNode.h" | 23 #include "IceCfgNode.h" |
| 23 #include "IceGlobalInits.h" | 24 #include "IceGlobalInits.h" |
| 24 #include "IceOperand.h" | 25 #include "IceOperand.h" |
| 25 #include "IceRegAlloc.h" | 26 #include "IceRegAlloc.h" |
| 26 #include "IceTargetLowering.h" | 27 #include "IceTargetLowering.h" |
| 27 #include "IceTargetLoweringARM32.h" | 28 #include "IceTargetLoweringARM32.h" |
| 28 #include "IceTargetLoweringMIPS32.h" | 29 #include "IceTargetLoweringMIPS32.h" |
| 29 #include "IceTargetLoweringX8632.h" | 30 #include "IceTargetLoweringX8632.h" |
| 31 #include "IceTargetLoweringX8664.h" |
| 30 | 32 |
| 31 namespace Ice { | 33 namespace Ice { |
| 32 | 34 |
| 33 void LoweringContext::init(CfgNode *N) { | 35 void LoweringContext::init(CfgNode *N) { |
| 34 Node = N; | 36 Node = N; |
| 35 End = getNode()->getInsts().end(); | 37 End = getNode()->getInsts().end(); |
| 36 rewind(); | 38 rewind(); |
| 37 advanceForward(Next); | 39 advanceForward(Next); |
| 38 } | 40 } |
| 39 | 41 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 if (Target == Target_##X) \ | 562 if (Target == Target_##X) \ |
| 561 return TargetHeader##X::create(Ctx); | 563 return TargetHeader##X::create(Ctx); |
| 562 #include "llvm/Config/SZTargets.def" | 564 #include "llvm/Config/SZTargets.def" |
| 563 | 565 |
| 564 llvm::report_fatal_error("Unsupported target header lowering"); | 566 llvm::report_fatal_error("Unsupported target header lowering"); |
| 565 } | 567 } |
| 566 | 568 |
| 567 TargetHeaderLowering::~TargetHeaderLowering() = default; | 569 TargetHeaderLowering::~TargetHeaderLowering() = default; |
| 568 | 570 |
| 569 } // end of namespace Ice | 571 } // end of namespace Ice |
| OLD | NEW |