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 /// \file | 10 /// \file |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 for (CfgNode *Node : Func->getNodes()) { | 337 for (CfgNode *Node : Func->getNodes()) { |
338 Context.init(Node); | 338 Context.init(Node); |
339 while (!Context.atEnd()) { | 339 while (!Context.atEnd()) { |
340 PostIncrLoweringContext _(Context); | 340 PostIncrLoweringContext _(Context); |
341 genTargetHelperCallFor(iteratorToInst(Context.getCur())); | 341 genTargetHelperCallFor(iteratorToInst(Context.getCur())); |
342 } | 342 } |
343 } | 343 } |
344 } | 344 } |
345 | 345 |
346 void TargetLowering::doAddressOpt() { | 346 void TargetLowering::doAddressOpt() { |
| 347 doAddressOptOther(); |
347 if (llvm::isa<InstLoad>(*Context.getCur())) | 348 if (llvm::isa<InstLoad>(*Context.getCur())) |
348 doAddressOptLoad(); | 349 doAddressOptLoad(); |
349 else if (llvm::isa<InstStore>(*Context.getCur())) | 350 else if (llvm::isa<InstStore>(*Context.getCur())) |
350 doAddressOptStore(); | 351 doAddressOptStore(); |
351 Context.advanceCur(); | 352 Context.advanceCur(); |
352 Context.advanceNext(); | 353 Context.advanceNext(); |
353 } | 354 } |
354 | 355 |
355 void TargetLowering::doNopInsertion(RandomNumberGenerator &RNG) { | 356 void TargetLowering::doNopInsertion(RandomNumberGenerator &RNG) { |
356 Inst *I = iteratorToInst(Context.getCur()); | 357 Inst *I = iteratorToInst(Context.getCur()); |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 case TARGET_LOWERING_CLASS_FOR(X): \ | 904 case TARGET_LOWERING_CLASS_FOR(X): \ |
904 return ::X::createTargetHeaderLowering(Ctx); | 905 return ::X::createTargetHeaderLowering(Ctx); |
905 #include "SZTargets.def" | 906 #include "SZTargets.def" |
906 #undef SUBZERO_TARGET | 907 #undef SUBZERO_TARGET |
907 } | 908 } |
908 } | 909 } |
909 | 910 |
910 TargetHeaderLowering::~TargetHeaderLowering() = default; | 911 TargetHeaderLowering::~TargetHeaderLowering() = default; |
911 | 912 |
912 } // end of namespace Ice | 913 } // end of namespace Ice |
OLD | NEW |