| 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, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "IceCfgNode.h" | 22 #include "IceCfgNode.h" |
| 23 #include "IceOperand.h" | 23 #include "IceOperand.h" |
| 24 #include "IceRegAlloc.h" | 24 #include "IceRegAlloc.h" |
| 25 #include "IceTargetLowering.h" | 25 #include "IceTargetLowering.h" |
| 26 #include "IceTargetLoweringX8632.h" | 26 #include "IceTargetLoweringX8632.h" |
| 27 | 27 |
| 28 namespace Ice { | 28 namespace Ice { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // TODO(stichnot): Move this machinery into llvm2ice.cpp. | 32 // TODO(stichnot): Move this machinery into main.cpp. |
| 33 namespace cl = llvm::cl; | 33 namespace cl = llvm::cl; |
| 34 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"), | 34 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"), |
| 35 cl::init(false)); | 35 cl::init(false)); |
| 36 | 36 |
| 37 cl::opt<int> MaxNopsPerInstruction( | 37 cl::opt<int> MaxNopsPerInstruction( |
| 38 "max-nops-per-instruction", | 38 "max-nops-per-instruction", |
| 39 cl::desc("Max number of nops to insert per instruction"), cl::init(1)); | 39 cl::desc("Max number of nops to insert per instruction"), cl::init(1)); |
| 40 | 40 |
| 41 cl::opt<int> NopProbabilityAsPercentage( | 41 cl::opt<int> NopProbabilityAsPercentage( |
| 42 "nop-insertion-percentage", | 42 "nop-insertion-percentage", |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 if (Target == Target_ARM64) | 269 if (Target == Target_ARM64) |
| 270 return std::unique_ptr<TargetDataLowering>(TargetDataARM64::create(Ctx)); | 270 return std::unique_ptr<TargetDataLowering>(TargetDataARM64::create(Ctx)); |
| 271 #endif | 271 #endif |
| 272 llvm_unreachable("Unsupported target"); | 272 llvm_unreachable("Unsupported target"); |
| 273 return nullptr; | 273 return nullptr; |
| 274 } | 274 } |
| 275 | 275 |
| 276 TargetDataLowering::~TargetDataLowering() {} | 276 TargetDataLowering::~TargetDataLowering() {} |
| 277 | 277 |
| 278 } // end of namespace Ice | 278 } // end of namespace Ice |
| OLD | NEW |