[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Introduce WaitEventSet container for events (PR #178511)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 09:22:40 PST 2026


================
@@ -321,10 +340,88 @@ unsigned getWait(AMDGPU::Waitcnt &Wait, InstCounterType T) {
   return getCounterRef(Wait, T);
 }
 
+/// A small set of events.
+class WaitEventSet {
+  unsigned Mask = 0;
+
+public:
+  WaitEventSet() = default;
+  explicit constexpr WaitEventSet(WaitEventType Event) {
+    assert((size_t)Event < sizeof(Mask) * 8 && "Not enough bits in mask!");
----------------
vporpo wrote:

Yes, I prefer that too. Done.

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


More information about the llvm-commits mailing list