[Mlir-commits] [mlir] [mlir][ptr] Add load and store ops. (PR #156093)

Mehdi Amini llvmlistbot at llvm.org
Sun Aug 31 06:33:30 PDT 2025


================
@@ -118,6 +118,124 @@ def Ptr_PtrAddOp : Pointer_Op<"ptr_add", [
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// LoadOp
+//===----------------------------------------------------------------------===//
+
+def AlignmentProp : OptionalProp<I64Prop>;
+
+def Ptr_LoadOp : Pointer_Op<"load", [
+    DeclareOpInterfaceMethods<MemoryEffectsOpInterface>
+  ]> {
+  let description = [{
+    The `load` operation is used to read from memory. A load may be marked as
+    atomic, volatile, and/or nontemporal.
----------------
joker-eph wrote:

It may be, but I'm wary of the fact that the ptr dialect is meant to work on types not existing in LLVM?

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


More information about the Mlir-commits mailing list