[llvm-branch-commits] [clang] [llvm] [AMDGPU] Introduce asyncmark/wait intrinsics (PR #180467)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 9 01:09:28 PST 2026


================
@@ -1395,6 +1450,53 @@ void WaitcntBrackets::print(raw_ostream &OS) const {
   }
   OS << '\n';
 
+  OS << "Async score: ";
+  if (AsyncScore.empty())
+    OS << "none";
+  else
+    llvm::interleaveComma(AsyncScore, OS);
+  OS << '\n';
+
+  OS << "Async marks: " << AsyncMarks.size() << '\n';
+
+  for (const auto &Mark : AsyncMarks) {
+    for (auto T : inst_counter_types()) {
+      unsigned MarkedScore = Mark[T];
+      switch (T) {
+      case LOAD_CNT:
----------------
Pierre-vh wrote:

Perhaps not for this patch, but we really ought to refactor this so we don't need to copy-paste the entire switch everytime we want to print something.

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


More information about the llvm-branch-commits mailing list