[Mlir-commits] [mlir] [mlir][arith.constant]Fix element type of the dense attributes in target attributes to be consistent with result type in LLVM::detail::oneToOneRewrite() (PR #149787)
Tobias Gysi
llvmlistbot at llvm.org
Tue Jul 22 22:32:01 PDT 2025
gysit wrote:
> @gysit , could you share a code example? I'm having difficult time visualising that.
Sure this is an example for the array case:
`llvm.mlir.constant(dense<-8.900000e+01> : tensor<2xf64>) : !llvm.array<2 x f64>`
For string we use a string attribute though:
`llvm.mlir.constant("hello") : !llvm.array<5 x i8>`
https://github.com/llvm/llvm-project/pull/149787
More information about the Mlir-commits
mailing list