[Mlir-commits] [mlir] [mlir][ptr] Add int_to_ptr && ptr_to_int ops (PR #190527)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 6 09:48:39 PDT 2026
enjustli wrote:
> > As I mentioned above, LLVM dialect allows int to ptr, and I think this existence indicates that there are still some real-world scenarios that require such an operation.
>
>
>
> It's not clear that these use-cases justify adding to the ptr dialect though, there are alternative, like keeping these ops in the LLVM dialect (or your custom dialect), outside of the pointer dialect for now.
In PyTorch gou/npu scenarios, int-to-ptr is required. I submitted this PR because I felt that ptr dialect was not comprehensive enough in terms of semantic expression.
https://github.com/llvm/llvm-project/pull/190527
More information about the Mlir-commits
mailing list