[Mlir-commits] [mlir] [mlir][emitc] Fix creating pointer from constant array (PR #162083)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Dec 7 05:01:40 PST 2025


Jimmy2027 wrote:

I decided that its probably better to handle this in the emitter for now, casting away the constness, since that adheres better to the [MLIR constness rationale](https://mlir.llvm.org/docs/Rationale/UsageOfConst/).
I updated this PR accordingly, also adding a syntax check in `mlir/test/Target/Cpp/global.mlir` of the generated C code. Happy to move that to another PR though if this is controversial.

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


More information about the Mlir-commits mailing list