[Mlir-commits] [mlir] [mlir][core|ptr] Add `PtrLikeTypeInterface` and casting ops to the `ptr` dialect (PR #137469)

Mehdi Amini llvmlistbot at llvm.org
Sun Apr 27 06:03:05 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", [
----------------
joker-eph wrote:

This is by design, the documentation for `memref.extract_aligned_pointer_as_index` states it:

> A reverse operation that creates a memref from an index interpreted as a pointer is explicitly discouraged.

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


More information about the Mlir-commits mailing list