[llvm] [AMDGPU][SIInsertWaitcnts] Cleanup: Remove WaitEventMaskForInst member variable (PR #178030)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 09:04:38 PST 2026


================
@@ -652,6 +651,7 @@ class SIInsertWaitcnts {
                          bool ExpertMode) const;
   AtomicRMWState getAtomicRMWState(MachineInstr &MI,
                                    AtomicRMWState PrevState) const;
+  const WaitcntGenerator &getWCG() const { return *WCG; }
----------------
vporpo wrote:

Agreed `getWCGWaitEventMask()` is not a great name. I also don't like the fact that `getWCG()` provides public access to WCG which is not great.

https://github.com/llvm/llvm-project/pull/178030


More information about the llvm-commits mailing list