[Mlir-commits] [mlir] [mlir][emitc] Fix creating pointer from constant array (PR #162083)
Simon Camphausen
llvmlistbot at llvm.org
Wed Oct 15 09:03:53 PDT 2025
simon-camp wrote:
Hi @Jimmy2027 sorry for the delay. I'm not sure about this change here, as in mlir the result of get global is not constant compared to the C version now. So I'm Not Sure if WE Run into Problems with Users of the get_global. Is casting away the constness of the pointer a viable alternative. I think writing to this pointer will be UB in C, but that is also what's Said in the documentation If memrefs.global.
@aniragil What are your thoughts in this?
https://github.com/llvm/llvm-project/pull/162083
More information about the Mlir-commits
mailing list