[Mlir-commits] [mlir] [mlir][arith][transforms] Adds Truncf f32 to f4e2m1 (PR #144157)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Jun 17 09:19:38 PDT 2025
================
@@ -322,6 +334,74 @@ struct BFloat16TruncFOpConverter : public OpRewritePattern<arith::TruncFOp> {
}
};
+struct F4E2M1ExtFOpConverter : public OpRewritePattern<arith::ExtFOp> {
----------------
kuhar wrote:
The issue with more complicated schemes is that they are not expressible by all targets (like spirv) and need to live at a lower level closer to llvm.
https://github.com/llvm/llvm-project/pull/144157
More information about the Mlir-commits
mailing list