[clang] [llvm] [mlir] [AMDGPU] Introduce waitcounter padding builtin/intrinsic (PR #243204)

Dan Zimmerman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 06:55:05 PST 2026


================
@@ -1050,3 +1050,24 @@ to instruction memory, with the length specified by ``len``, which should be
 0-31 (1-32 chunks, units of 128 bytes).
 }];
 }
+
+//===----------------------------------------------------------------------===//
+// Pseudo-Instruction/Hint Builtins
+//===----------------------------------------------------------------------===//
+
+def DocCatAMDGPUHints : DocumentationCategory<"Pseudo-Instruction/Hint Builtins"> {
+  let Content = [{
+These builtins do not correspond to a hardware instruction. They provide hints
+to configure code generation. The backend may ignore them, and they emit at most
+an assembly comment themselves.
----------------
danzimm wrote:

Yes that's true, apologies. The original plan / idea was to pull in sched.barrier / sched.group.barrier / iglp.opt under this category, but forgot to comment that.

Now that I write this out, IIRC, none of those hints fit this definition really. The `they emit at most an assembly comment` seems to nearly disagree with `configure code generation`. I'll rewrite this, thanks for the flag.

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


More information about the cfe-commits mailing list