Skip to content

Commit 6763fc3

Browse files
committed
move stuff around to keep the diffs smaller
1 parent 2c8eb58 commit 6763fc3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/include/llvm/IR/PassTimingInfo.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class TimePassesHandler {
4646
/// to all the instance of a given pass) + sequential invocation counter.
4747
using PassInvocationID = std::pair<StringRef, unsigned>;
4848

49+
/// Groups of timers for passes and analyses.
50+
TimerGroup &PassTG =
51+
NamedRegionTimer::getNamedTimerGroup(PassGroupName, PassGroupDesc);
52+
TimerGroup &AnalysisTG = NamedRegionTimer::getNamedTimerGroup(
53+
AnalysisGroupName, AnalysisGroupDesc);
54+
4955
using TimerVector = llvm::SmallVector<Timer *, 4>;
5056
/// Map of timers for pass invocations
5157
StringMap<TimerVector> TimingData;
@@ -65,11 +71,6 @@ class TimePassesHandler {
6571
bool Enabled;
6672
bool PerRun;
6773

68-
TimerGroup &PassTG =
69-
NamedRegionTimer::getNamedTimerGroup(PassGroupName, PassGroupDesc);
70-
TimerGroup &AnalysisTG = NamedRegionTimer::getNamedTimerGroup(
71-
AnalysisGroupName, AnalysisGroupDesc);
72-
7374
public:
7475
static constexpr StringRef PassGroupName = "pass";
7576
static constexpr StringRef AnalysisGroupName = "analysis";

0 commit comments

Comments
 (0)