[Mlir-commits] [mlir] [mlir][amdgpu] Add scaled_ext_packed{8, 16} operations (PR #159830)
Erick Ochoa Lopez
llvmlistbot at llvm.org
Fri Sep 19 12:31:45 PDT 2025
================
@@ -112,6 +112,48 @@ def AMDGPU_ExtPackedFp8Op :
}];
}
+def AMDGPU_ScaledExtPacked8Op
+ : AMDGPU_Op<"scaled_ext_packed8", [Pure]>,
+ Arguments<(
+ ins VectorOfLengthAndType<[8], [F4E2M1FN,F8E4M3FN,F8E5M2]>:$source,
+ F32:$scale,
+ ConfinedAttr<I32Attr, [IntNonNegative, IntMaxValue<7>]>:$index)>,
+ Results<(
+ outs AnyTypeOf<[FixedVectorOfLengthAndType<[8], [F32]>,
+ FixedVectorOfLengthAndType<[8], [F16]>,
+ FixedVectorOfLengthAndType<[8], [BF16]>]>:$res)> {
+ let summary = "Extend a vector of packed floating point values";
+
+ let description = [{
+ Extend and scale eight packed floats in to eight floats and return them.
+ }];
+
+ let assemblyFormat = [{
+ attr-dict $source `,` $scale `[` $index `]` `:` type($source) `to` type($res)
+ }];
+}
+
+def AMDGPU_ScaledExtPacked16Op
----------------
amd-eochoalo wrote:
I did it here https://github.com/llvm/llvm-project/pull/159830/commits/c3832b09bed55cbcaa40d6643ce56f0398ddcab4 . Is the assembly format acceptable for you?
https://github.com/llvm/llvm-project/pull/159830
More information about the Mlir-commits
mailing list