Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: src/IceTargetLowering.cpp

Issue 1784243006: Subzero: Improve the use of timers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698