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

Diego Caballero llvmlistbot at llvm.org
Fri Jun 27 09:19:12 PDT 2025


================
@@ -292,6 +292,11 @@ bool arith::ConstantIndexOp::classof(Operation *op) {
   return false;
 }
 
+Value mlir::arith::getZeroConstant(OpBuilder &builder, Location loc,
+                                   Type type) {
+  return builder.create<arith::ConstantOp>(loc, builder.getZeroAttr(type));
+}
----------------
dcaballe wrote:

do we need this utility? It's kind of wrapping a single line statement

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


More information about the Mlir-commits mailing list