@@ -41,17 +41,18 @@ using namespace llvm;
41
41
42
42
#define DEBUG_TYPE " si-insert-waitcnts"
43
43
44
- DEBUG_COUNTER (ForceExpCounter, DEBUG_TYPE" -forceexp" ,
44
+ DEBUG_COUNTER (ForceExpCounter, DEBUG_TYPE " -forceexp" ,
45
45
" Force emit s_waitcnt expcnt(0) instrs" );
46
- DEBUG_COUNTER (ForceLgkmCounter, DEBUG_TYPE" -forcelgkm" ,
46
+ DEBUG_COUNTER (ForceLgkmCounter, DEBUG_TYPE " -forcelgkm" ,
47
47
" Force emit s_waitcnt lgkmcnt(0) instrs" );
48
- DEBUG_COUNTER (ForceVMCounter, DEBUG_TYPE" -forcevm" ,
48
+ DEBUG_COUNTER (ForceVMCounter, DEBUG_TYPE " -forcevm" ,
49
49
" Force emit s_waitcnt vmcnt(0) instrs" );
50
50
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);
55
56
56
57
namespace {
57
58
// Class of object that encapsulates latest instruction counter score
@@ -1596,9 +1597,7 @@ static bool callWaitsOnFunctionEntry(const MachineInstr &MI) {
1596
1597
1597
1598
// / \returns true if the callee is expected to wait for any outstanding waits
1598
1599
// / before returning.
1599
- static bool callWaitsOnFunctionReturn (const MachineInstr &MI) {
1600
- return true ;
1601
- }
1600
+ static bool callWaitsOnFunctionReturn (const MachineInstr &MI) { return true ; }
1602
1601
1603
1602
// / Generate s_waitcnt instruction to be placed before cur_Inst.
1604
1603
// / Instructions of a given type are returned in order,
0 commit comments