Skip to content

Commit 6bb6638

Browse files
committed
run clang-format
Format of GenericSchedulerBase::getReasonStr switch is preferred, so I've disabled clang-format there
1 parent 30e5322 commit 6bb6638

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

llvm/include/llvm/CodeGen/MachineScheduler.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,23 @@ class GenericSchedulerBase : public MachineSchedStrategy {
10781078
/// Represent the type of SchedCandidate found within a single queue.
10791079
/// pickNodeBidirectional depends on these listed by decreasing priority.
10801080
enum CandReason : uint8_t {
1081-
NoCand, Only1, PhysReg, RegExcess, RegCritical, Stall, Cluster, Weak,
1082-
RegMax, ResourceReduce, ResourceDemand, BotHeightReduce, BotPathReduce,
1083-
TopDepthReduce, TopPathReduce, NodeOrder};
1081+
NoCand,
1082+
Only1,
1083+
PhysReg,
1084+
RegExcess,
1085+
RegCritical,
1086+
Stall,
1087+
Cluster,
1088+
Weak,
1089+
RegMax,
1090+
ResourceReduce,
1091+
ResourceDemand,
1092+
BotHeightReduce,
1093+
BotPathReduce,
1094+
TopDepthReduce,
1095+
TopPathReduce,
1096+
NodeOrder
1097+
};
10841098

10851099
#ifndef NDEBUG
10861100
static const char *getReasonStr(GenericSchedulerBase::CandReason Reason);

llvm/lib/CodeGen/MachineScheduler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,6 +3220,7 @@ void GenericSchedulerBase::setPolicy(CandPolicy &Policy, bool IsPostRA,
32203220
#ifndef NDEBUG
32213221
const char *GenericSchedulerBase::getReasonStr(
32223222
GenericSchedulerBase::CandReason Reason) {
3223+
// clang-format off
32233224
switch (Reason) {
32243225
case NoCand: return "NOCAND ";
32253226
case Only1: return "ONLY1 ";
@@ -3238,6 +3239,7 @@ const char *GenericSchedulerBase::getReasonStr(
32383239
case BotPathReduce: return "BOT-PATH ";
32393240
case NodeOrder: return "ORDER ";
32403241
};
3242+
// clang-format on
32413243
llvm_unreachable("Unknown reason!");
32423244
}
32433245

0 commit comments

Comments
 (0)