[Mlir-commits] [mlir] [mlir][arith][transforms] Adds Truncf f32 to f4e2m1 (PR #144157)

Jakub Kuderski llvmlistbot at llvm.org
Tue Jun 17 09:17:18 PDT 2025


================
@@ -322,6 +334,74 @@ struct BFloat16TruncFOpConverter : public OpRewritePattern<arith::TruncFOp> {
   }
 };
 
+struct F4E2M1ExtFOpConverter : public OpRewritePattern<arith::ExtFOp> {
----------------
kuhar wrote:

With 8 values the value proposition for a lookup table is better because you can materialize it without worrying about storage -- just use a vector or a few selects.

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


More information about the Mlir-commits mailing list