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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 TargetLowering::AutoBundle::~AutoBundle() { | 307 TargetLowering::AutoBundle::~AutoBundle() { |
308 assert(Target->AutoBundling); | 308 assert(Target->AutoBundling); |
309 Target->AutoBundling = false; | 309 Target->AutoBundling = false; |
310 if (NeedSandboxing) { | 310 if (NeedSandboxing) { |
311 Target->_bundle_unlock(); | 311 Target->_bundle_unlock(); |
312 } | 312 } |
313 } | 313 } |
314 | 314 |
315 void TargetLowering::genTargetHelperCalls() { | 315 void TargetLowering::genTargetHelperCalls() { |
| 316 TimerMarker T(TimerStack::TT_genHelpers, Func); |
316 Utils::BoolFlagSaver _(GeneratingTargetHelpers, true); | 317 Utils::BoolFlagSaver _(GeneratingTargetHelpers, true); |
317 for (CfgNode *Node : Func->getNodes()) { | 318 for (CfgNode *Node : Func->getNodes()) { |
318 Context.init(Node); | 319 Context.init(Node); |
319 while (!Context.atEnd()) { | 320 while (!Context.atEnd()) { |
320 PostIncrLoweringContext _(Context); | 321 PostIncrLoweringContext _(Context); |
321 genTargetHelperCallFor(Context.getCur()); | 322 genTargetHelperCallFor(Context.getCur()); |
322 } | 323 } |
323 } | 324 } |
324 } | 325 } |
325 | 326 |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 case Target_##X: \ | 880 case Target_##X: \ |
880 return ::X::createTargetHeaderLowering(Ctx); | 881 return ::X::createTargetHeaderLowering(Ctx); |
881 #include "llvm/Config/SZTargets.def" | 882 #include "llvm/Config/SZTargets.def" |
882 #undef SUBZERO_TARGET | 883 #undef SUBZERO_TARGET |
883 } | 884 } |
884 } | 885 } |
885 | 886 |
886 TargetHeaderLowering::~TargetHeaderLowering() = default; | 887 TargetHeaderLowering::~TargetHeaderLowering() = default; |
887 | 888 |
888 } // end of namespace Ice | 889 } // end of namespace Ice |
OLD | NEW |