[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:21 PDT 2025
================
@@ -17,6 +17,75 @@ include "mlir/Interfaces/SideEffectInterfaces.td"
include "mlir/Interfaces/ViewLikeInterface.td"
include "mlir/IR/OpAsmInterface.td"
+//===----------------------------------------------------------------------===//
+// FromPtrOp
+//===----------------------------------------------------------------------===//
+
+def Ptr_FromPtrOp : Pointer_Op<"from_ptr", [
----------------
matthias-springer wrote:
I was talking about this with a colleague the other day. We noticed that the memref dialect has `memref.extract_aligned_pointer_as_index`, but it's missing the inverse operation. There's currently no way to construct a memref from a given pointer + metadata. It's good to see some some progress on this.
https://github.com/llvm/llvm-project/pull/137469
More information about the Mlir-commits
mailing list