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

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 23:12:56 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index f41a3dd61..fa9e1bcee 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -104,35 +104,33 @@ struct HardwareLimits {
   unsigned KmcntMax;     // gfx12+ only.
 };
 
-#define AMDGPU_DECLARE_WAIT_EVENTS(DECL)                                    \
-  DECL(VMEM_ACCESS)              /* vmem read & write */                    \
-  DECL(VMEM_READ_ACCESS)         /* vmem read */                            \
-  DECL(VMEM_SAMPLER_READ_ACCESS) /* vmem SAMPLER read (gfx12+ only) */      \
-  DECL(VMEM_BVH_READ_ACCESS)     /* vmem BVH read (gfx12+ only) */          \
-  DECL(VMEM_WRITE_ACCESS)        /* vmem write that is not scratch */       \
-  DECL(SCRATCH_WRITE_ACCESS)     /* vmem write that may be scratch */       \
-  DECL(LDS_ACCESS)               /* lds read & write */                     \
-  DECL(GDS_ACCESS)               /* gds read & write */                     \
-  DECL(SQ_MESSAGE)               /* send message */                         \
-  DECL(SMEM_ACCESS)              /* scalar-memory read & write */           \
-  DECL(EXP_GPR_LOCK)             /* export holding on its data src */       \
-  DECL(GDS_GPR_LOCK)             /* GDS holding on its data and addr src */ \
-  DECL(EXP_POS_ACCESS)           /* write to export position */             \
-  DECL(EXP_PARAM_ACCESS)         /* write to export parameter */            \
-  DECL(VMW_GPR_LOCK)             /* vmem write holding on its data src */   \
+#define AMDGPU_DECLARE_WAIT_EVENTS(DECL)                                       \
+  DECL(VMEM_ACCESS)              /* vmem read & write */                       \
+  DECL(VMEM_READ_ACCESS)         /* vmem read */                               \
+  DECL(VMEM_SAMPLER_READ_ACCESS) /* vmem SAMPLER read (gfx12+ only) */         \
+  DECL(VMEM_BVH_READ_ACCESS)     /* vmem BVH read (gfx12+ only) */             \
+  DECL(VMEM_WRITE_ACCESS)        /* vmem write that is not scratch */          \
+  DECL(SCRATCH_WRITE_ACCESS)     /* vmem write that may be scratch */          \
+  DECL(LDS_ACCESS)               /* lds read & write */                        \
+  DECL(GDS_ACCESS)               /* gds read & write */                        \
+  DECL(SQ_MESSAGE)               /* send message */                            \
+  DECL(SMEM_ACCESS)              /* scalar-memory read & write */              \
+  DECL(EXP_GPR_LOCK)             /* export holding on its data src */          \
+  DECL(GDS_GPR_LOCK)             /* GDS holding on its data and addr src */    \
+  DECL(EXP_POS_ACCESS)           /* write to export position */                \
+  DECL(EXP_PARAM_ACCESS)         /* write to export parameter */               \
+  DECL(VMW_GPR_LOCK)             /* vmem write holding on its data src */      \
   DECL(EXP_LDS_ACCESS)           /* read by ldsdir counting as export */
 
 #define AMDGPU_EVENT_ENUM(Name) Name,
 enum WaitEventType {
-  AMDGPU_DECLARE_WAIT_EVENTS(AMDGPU_EVENT_ENUM)
-  NUM_WAIT_EVENTS
+  AMDGPU_DECLARE_WAIT_EVENTS(AMDGPU_EVENT_ENUM) NUM_WAIT_EVENTS
 };
 #undef AMDGPU_EVENT_ENUM
 
 #define AMDGPU_EVENT_NAME(Name) #Name,
 static constexpr StringLiteral WaitEventTypeName[] = {
-  AMDGPU_DECLARE_WAIT_EVENTS(AMDGPU_EVENT_NAME)
-};
+    AMDGPU_DECLARE_WAIT_EVENTS(AMDGPU_EVENT_NAME)};
 #undef AMDGPU_EVENT_NAME
 
 // The mapping is:

``````````

</details>


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


More information about the llvm-commits mailing list