Lines Matching refs:PassID
92 Timer *newPassTimer(StringRef PassID, StringRef PassDesc);
121 Timer *PassTimingInfo::newPassTimer(StringRef PassID, StringRef PassDesc) {
122 unsigned &num = PassIDCountMap[PassID];
127 return new Timer(PassID, PassDescNumbered, TG);
170 /// Returns the timer for the specified pass invocation of \p PassID.
172 Timer &TimePassesHandler::getPassTimer(StringRef PassID, bool IsPass) {
175 TimerVector &Timers = TimingData[PassID];
177 Timers.emplace_back(new Timer(PassID, PassID, TG));
181 // Take a vector of Timers created for this \p PassID and append
183 TimerVector &Timers = TimingData[PassID];
186 std::string FullDesc = formatv("{0} #{1}", PassID, Count).str();
188 Timer *T = new Timer(PassID, FullDesc, TG);
226 StringRef PassID = I.getKey();
231 dbgs() << "\tTimer " << MyTimer << " for pass " << PassID << "(" << idx << ")\n";
236 StringRef PassID = I.getKey();
241 dbgs() << "\tTimer " << MyTimer << " for pass " << PassID << "(" << idx << ")\n";
246 static bool shouldIgnorePass(StringRef PassID) {
247 return isSpecialPass(PassID,
252 void TimePassesHandler::startPassTimer(StringRef PassID) {
253 if (shouldIgnorePass(PassID))
261 Timer &MyTimer = getPassTimer(PassID, /*IsPass*/ true);
267 void TimePassesHandler::stopPassTimer(StringRef PassID) {
268 if (shouldIgnorePass(PassID))
283 void TimePassesHandler::startAnalysisTimer(StringRef PassID) {
291 Timer &MyTimer = getPassTimer(PassID, /*IsPass*/ false);
297 void TimePassesHandler::stopAnalysisTimer(StringRef PassID) {