@@ -41,17 +41,18 @@ using namespace llvm;
4141
4242#define DEBUG_TYPE " si-insert-waitcnts"
4343
44- DEBUG_COUNTER (ForceExpCounter, DEBUG_TYPE" -forceexp" ,
44+ DEBUG_COUNTER (ForceExpCounter, DEBUG_TYPE " -forceexp" ,
4545 " Force emit s_waitcnt expcnt(0) instrs" );
46- DEBUG_COUNTER (ForceLgkmCounter, DEBUG_TYPE" -forcelgkm" ,
46+ DEBUG_COUNTER (ForceLgkmCounter, DEBUG_TYPE " -forcelgkm" ,
4747 " Force emit s_waitcnt lgkmcnt(0) instrs" );
48- DEBUG_COUNTER (ForceVMCounter, DEBUG_TYPE" -forcevm" ,
48+ DEBUG_COUNTER (ForceVMCounter, DEBUG_TYPE " -forcevm" ,
4949 " Force emit s_waitcnt vmcnt(0) instrs" );
5050
51- static cl::opt<bool > ForceEmitZeroFlag (
52- " amdgpu-waitcnt-forcezero" ,
53- cl::desc (" Force all waitcnt instrs to be emitted as s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)" ),
54- cl::init(false ), cl::Hidden);
51+ static cl::opt<bool >
52+ ForceEmitZeroFlag (" amdgpu-waitcnt-forcezero" ,
53+ cl::desc (" Force all waitcnt instrs to be emitted as "
54+ " s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)" ),
55+ cl::init(false ), cl::Hidden);
5556
5657namespace {
5758// Class of object that encapsulates latest instruction counter score
@@ -1596,9 +1597,7 @@ static bool callWaitsOnFunctionEntry(const MachineInstr &MI) {
15961597
15971598// / \returns true if the callee is expected to wait for any outstanding waits
15981599// / before returning.
1599- static bool callWaitsOnFunctionReturn (const MachineInstr &MI) {
1600- return true ;
1601- }
1600+ static bool callWaitsOnFunctionReturn (const MachineInstr &MI) { return true ; }
16021601
16031602// / Generate s_waitcnt instruction to be placed before cur_Inst.
16041603// / Instructions of a given type are returned in order,
0 commit comments