[Mlir-commits] [mlir] [MLIR][Vector]Add constraints to vector.shape_cast(constant) -> constant (PR #147691)

Diego Caballero llvmlistbot at llvm.org
Fri Jul 11 10:53:18 PDT 2025


dcaballe wrote:

> %0 = llvm.mlir.constant(dense<0.000000e+00> : vector<12xf8E4M3FN>) : vector<12xi8>

The following question is unrelated but I've seen this popping up multiple times lately: why `llvm.mlir.constant` allows the attribute and the return type to mismatch?

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


More information about the Mlir-commits mailing list