[llvm] [AMDGPU] Add eventMask function in WaitcntGenerator class (NFC) (PR #85210)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 07:24:37 PDT 2024


================
@@ -485,6 +485,15 @@ class WaitcntGenerator {
   virtual AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const = 0;
 
   virtual ~WaitcntGenerator() = default;
+
+  // Create a mask value from the initializer list of wait event types.
+  unsigned eventMask(std::initializer_list<WaitEventType> Events) const {
----------------
cdevadas wrote:

Changed the function to a constexpr.

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


More information about the llvm-commits mailing list