[Mlir-commits] [mlir] [mlir][vector] Avoid setting padding by default to `0` in `vector.transfer_read` prefer `ub.poison` (PR #146088)

Jakub Kuderski llvmlistbot at llvm.org
Mon Jun 30 08:58:37 PDT 2025


================
@@ -154,6 +154,9 @@ Value getReductionOp(AtomicRMWKind op, OpBuilder &builder, Location loc,
                      Value lhs, Value rhs);
 
 arith::CmpIPredicate invertPredicate(arith::CmpIPredicate pred);
+
+/// Creates an `arith.constant` operation with a zero value of type `type`.
+Value getZeroConstant(OpBuilder &builder, Location loc, Type type);
----------------
kuhar wrote:

Should we specify what happens in the failure case? I'm thinking about f8E8M0 specifically which doesn't have a zero value. But there's also memrefs/tensors/ptrs/etc.
I assume this should assert?

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


More information about the Mlir-commits mailing list