[Mlir-commits] [mlir] [mlir][ptr] Add int_to_ptr && ptr_to_int ops (PR #190527)

Fabian Mora llvmlistbot at llvm.org
Fri Jun 19 04:31:55 PDT 2026


fabianmcg wrote:

> If ptr.constant could be extended to support dynamic cases, it would essentially achieve the same purpose as int_to_ptr.

If it were dynamic it would stop being a constant.

> I have a question I'd like to ask: why is there currently no lowering/conversion from ptr.constant to LLVM IR? I actually went ahead and implemented this conversion pattern

That might be an omission on my side. At the moment I cannot contribute, but I'd be happy to review.

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


More information about the Mlir-commits mailing list