[Mlir-commits] [mlir] [mlir][arith][transforms] Adds Truncf f32 to f4e2m1 (PR #144157)
Krzysztof Drewniak
llvmlistbot at llvm.org
Tue Jun 17 09:06:26 PDT 2025
================
@@ -322,6 +334,74 @@ struct BFloat16TruncFOpConverter : public OpRewritePattern<arith::TruncFOp> {
}
};
+struct F4E2M1ExtFOpConverter : public OpRewritePattern<arith::ExtFOp> {
----------------
krzysz00 wrote:
Part of me wants to just materialize a constant memref of the 8 (or 16) possible outputs and just do a lookup into it.
Or a `<16 x f32>`, even
https://github.com/llvm/llvm-project/pull/144157
More information about the Mlir-commits
mailing list