[llvm] [NFC][AMDGPU] print more info when debugging InsertWaitCnts pass (PR #144629)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 01:36:43 PDT 2025


================
@@ -0,0 +1,32 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// An enumeration of all the event types handled by SIInsertWaitcnts.cpp
+//
+//===----------------------------------------------------------------------===//
+
+// NOTE: NO INCLUDE GUARD DESIRED!
+
+AMDGPU_WAIT_EVENT(VMEM_ACCESS)              // vector-memory read & write
----------------
jayfoad wrote:

There's no need to move this list into a separate file if you define it like:
```
#define AMDGPU_WAIT_EVENTS(AMDGPU_WAIT_EVENT) \
  AMDGPU_WAIT_EVENT(VMEM_ACCESS) \
  AMDGPU_WAIT_EVENT(VMEM_READ_ACCESS) \
  ...
```

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


More information about the llvm-commits mailing list