[Mlir-commits] [mlir] [mlir][amdgpu][docs] Add op examples to dialect docs (PR #146848)

Eric Feng llvmlistbot at llvm.org
Sun Jul 6 21:51:54 PDT 2025


================
@@ -711,6 +791,14 @@ def AMDGPU_SchedBarrierOp :
     `amdgpu.sched_barrier` serves as a barrier that could be
     configured to restrict movements of instructions through it as
     defined by sched_barrier_opts.
+
+    #### Example
+    ```mlir
+    // Barrier allowing no dependent instructions
+    amdgpu.sched_barrier allow = <none>
+    // Barrier allowing specific execution units
----------------
efric wrote:

Similarly, I find the use of execution units here confusing. I think something like "barrier allowing VALU and VMEM instructions to be scheduled across it" to be more straightforward. 

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


More information about the Mlir-commits mailing list