[llvm] [AMDGPU] Model WMMA co-execution windows in the scheduler for gfx1250 (PR #204077)

Austin Kerbow via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 13:03:30 PDT 2026


================
@@ -26,6 +26,18 @@
 using namespace llvm;
 
 #define DEBUG_TYPE "gcn-hazard-recognizer"
+#define DEBUG_TYPE_VERBOSE "gcn-hazard-recognizer-verbose"
+
+// Verbose debug type implies normal debug output. LLVM_DEBUG only fires for
+// DEBUG_TYPE, so we replace it with this macro in preRA code. This fires when
+// either -debug-only=gcn-hazard-recognizer or
+// -debug-only=gcn-hazard-recognizer-verbose is passed.
+#define LLVM_DEBUG_HR(X)                                                       \
+  do {                                                                         \
+    LLVM_DEBUG(X);                                                             \
+    DEBUG_WITH_TYPE(                                                           \
+        DEBUG_TYPE_VERBOSE, if (!isCurrentDebugType(DEBUG_TYPE)) { X; });      \
----------------
kerbowa wrote:

It was needed so we didn't get double output with the verbose flag. I swapped to using two debug flags that both need to be added to get verbose output which is more idiomatic in LLVM.

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


More information about the llvm-commits mailing list