[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Common InstCounterType printer (PR #187559)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 11:50:07 PDT 2026


================
@@ -1613,7 +1540,8 @@ AMDGPU::Waitcnt WaitcntBrackets::determineAsyncWait(unsigned N) {
   });
   AsyncMarks.erase(AsyncMarks.begin(), AsyncMarks.begin() + MarkIndex + 1);
 
-  LLVM_DEBUG(dbgs() << "Waits to add: " << Wait);
+  LLVM_DEBUG(dbgs() << "Waits to add: ";
+             Wait.print(dbgs(), Context->ST.hasExtendedWaitCounts()););
----------------
vporpo wrote:

I created a separate print() and getPrintable(), the first one returns void but does the printing when called and the second one returns a Printable that you need to `OS << ` to get it to print.

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


More information about the llvm-commits mailing list