[Mlir-commits] [mlir] [mlir][amdgpu] Add scaled_ext_packed{8, 16} operations (PR #159830)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Oct 17 07:49:51 PDT 2025
================
@@ -112,6 +112,73 @@ def AMDGPU_ExtPackedFp8Op :
}];
}
+def IsValidBlockSize: AttrConstraint<
+ CPred<"::llvm::cast<::mlir::IntegerAttr>($_self).getInt() == 16 || ::llvm::cast<::mlir::IntegerAttr>($_self).getInt() == 32">,
+ "whose value is 16 or 32">;
+
+
+def Vector4Scales :
+ AllOfType<[FixedVectorOfLengthAndType<[4], [F8E8M0FNU]>],
+ "vector of 4 F8E8M0FNU scales",
+ "::mlir::VectorType">,
+ BuildableType<"::mlir::VectorType::get({4}, $_builder.getType<::mlir::Float8E8M0FNUType>());">;
----------------
kuhar wrote:
For example, it used to be that `vector.extractelement` has no return type since this was inferred from the argument vector.
https://github.com/llvm/llvm-project/pull/159830
More information about the Mlir-commits
mailing list