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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 case TARGET_LOWERING_CLASS_FOR(X): \ | 938 case TARGET_LOWERING_CLASS_FOR(X): \ |
938 return ::X::createTargetHeaderLowering(Ctx); | 939 return ::X::createTargetHeaderLowering(Ctx); |
939 #include "SZTargets.def" | 940 #include "SZTargets.def" |
940 #undef SUBZERO_TARGET | 941 #undef SUBZERO_TARGET |
941 } | 942 } |
942 } | 943 } |
943 | 944 |
944 TargetHeaderLowering::~TargetHeaderLowering() = default; | 945 TargetHeaderLowering::~TargetHeaderLowering() = default; |
945 | 946 |
946 } // end of namespace Ice | 947 } // end of namespace Ice |
OLD | NEW |