[clang] [llvm] [AMDGPU] Implement builtin and intrinsic for s_wait_idle (PR #244238)

Sameer Sahasrabuddhe via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 20:23:13 PST 2026


================
@@ -1050,3 +1050,25 @@ to instruction memory, with the length specified by ``len``, which should be
 0-31 (1-32 chunks, units of 128 bytes).
 }];
 }
+
+//===----------------------------------------------------------------------===//
+// Wait Builtins
+//===----------------------------------------------------------------------===//
+
+def DocCatAMDGPUWait : DocumentationCategory<"Wait Builtins"> {
+  let Content = [{
+These builtins provide access to AMDGPU instructions that stall a wave until
+outstanding operations have completed.
+}];
+}
+
+def DocSWaitIdle : Documentation {
+  let Category = DocCatAMDGPUWait;
+  let Content = [{
+Stalls the wave until all of its dependency and memory counters have reached
----------------
ssahasra wrote:

```suggestion
Ensures that all of its dependency and memory counters have reached
```

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


More information about the cfe-commits mailing list