[Mlir-commits] [mlir] [mlir][core|ptr] Add `PtrLikeTypeInterface` and casting ops to the `ptr` dialect (PR #137469)
Matthias Springer
llvmlistbot at llvm.org
Sun Apr 27 04:20:20 PDT 2025
================
@@ -52,6 +121,36 @@ def Ptr_PtrAddOp : Pointer_Op<"ptr_add", [
}];
}
+//===----------------------------------------------------------------------===//
+// ToPtrOp
+//===----------------------------------------------------------------------===//
+
+def Ptr_ToPtrOp : Pointer_Op<"to_ptr", [Pure]> {
----------------
matthias-springer wrote:
Can this be a replacement for `memref.extract_aligned_pointer_as_index`? Do we have ways to "cast" a `!ptr.ptr` to an `index`/`i64`/...?
https://github.com/llvm/llvm-project/pull/137469
More information about the Mlir-commits
mailing list