| 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 "llvm/Support/CommandLine.h" |
| 19 |
| 18 #include "assembler_ia32.h" | 20 #include "assembler_ia32.h" |
| 19 #include "IceCfg.h" // setError() | 21 #include "IceCfg.h" // setError() |
| 20 #include "IceCfgNode.h" | 22 #include "IceCfgNode.h" |
| 21 #include "IceOperand.h" | 23 #include "IceOperand.h" |
| 22 #include "IceRegAlloc.h" | 24 #include "IceRegAlloc.h" |
| 23 #include "IceTargetLowering.h" | 25 #include "IceTargetLowering.h" |
| 24 #include "IceTargetLoweringX8632.h" | 26 #include "IceTargetLoweringX8632.h" |
| 25 | 27 |
| 26 #include "llvm/Support/CommandLine.h" | |
| 27 | |
| 28 namespace Ice { | 28 namespace Ice { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 namespace cl = llvm::cl; | 32 namespace cl = llvm::cl; |
| 33 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"), | 33 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"), |
| 34 cl::init(false)); | 34 cl::init(false)); |
| 35 | 35 |
| 36 cl::opt<int> MaxNopsPerInstruction( | 36 cl::opt<int> MaxNopsPerInstruction( |
| 37 "max-nops-per-instruction", | 37 "max-nops-per-instruction", |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if (Target == Target_ARM64) | 257 if (Target == Target_ARM64) |
| 258 return IceTargetGlobalInitARM64::create(Ctx); | 258 return IceTargetGlobalInitARM64::create(Ctx); |
| 259 #endif | 259 #endif |
| 260 llvm_unreachable("Unsupported target"); | 260 llvm_unreachable("Unsupported target"); |
| 261 return NULL; | 261 return NULL; |
| 262 } | 262 } |
| 263 | 263 |
| 264 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} | 264 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} |
| 265 | 265 |
| 266 } // end of namespace Ice | 266 } // end of namespace Ice |
| OLD | NEW |