[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:55 PDT 2025


================
@@ -106,6 +106,16 @@ def AMDGPU_ExtPackedFp8Op :
     If the passed-in vector has fewer than four elements, or the input is scalar,
     the remaining values in the <4 x i8> will be filled with
     undefined values as needed.
+
+    #### Example
+    ```mlir
+    // Extract single FP8 element to scalar f32
----------------
efric wrote:

For me, it is more intuitive to use "extend" instead of "extract" here as that aligns more with the operation semantics.

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


More information about the Mlir-commits mailing list