[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 07:41:15 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:

The way it's written, it sounds to me like "there's nothing wrong with having an op that creates a memref out of thin air, but until we have a better way than interpreting an index as a pointer, we shouldn't do it".



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


More information about the Mlir-commits mailing list