| 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 25 matching lines...) Expand all Loading... |
| 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", |
| 43 cl::desc("Nop insertion probability as percentage"), cl::init(10)); | 43 cl::desc("Nop insertion probability as percentage"), cl::init(10)); |
| 44 | 44 |
| 45 cl::opt<bool> | 45 cl::opt<bool> |
| 46 CLRandomizeRegisterAllocation("randomize-regalloc", | 46 CLRandomizeRegisterAllocation("randomize-regalloc", |
| 47 cl::desc("Randomize register allocation"), | 47 cl::desc("Randomize register allocation"), |
| 48 cl::init(false)); | 48 cl::init(false)); |
| 49 } // end of anonymous namespace | 49 } // end of anonymous namespace |
| 50 | 50 |
| 51 void LoweringContext::init(CfgNode *N) { | 51 void LoweringContext::init(CfgNode *N) { |
| 52 Node = N; | 52 Node = N; |
| 53 End = getNode()->getInsts().end(); | 53 End = getNode()->getInsts().end(); |
| 54 rewind(); | 54 rewind(); |
| 55 advanceForward(Next); | 55 advanceForward(Next); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void LoweringContext::rewind() { | 58 void LoweringContext::rewind() { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 if (Target == Target_ARM64) | 266 if (Target == Target_ARM64) |
| 267 return TargetGlobalARM64::create(Ctx); | 267 return TargetGlobalARM64::create(Ctx); |
| 268 #endif | 268 #endif |
| 269 llvm_unreachable("Unsupported target"); | 269 llvm_unreachable("Unsupported target"); |
| 270 return nullptr; | 270 return nullptr; |
| 271 } | 271 } |
| 272 | 272 |
| 273 TargetGlobalLowering::~TargetGlobalLowering() {} | 273 TargetGlobalLowering::~TargetGlobalLowering() {} |
| 274 | 274 |
| 275 } // end of namespace Ice | 275 } // end of namespace Ice |
| OLD | NEW |