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

Fabian Mora llvmlistbot at llvm.org
Sun Aug 31 04:58:24 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.
----------------
fabianmcg wrote:

Currently, all of these share the same semantics of the llvm load inst. What the LLVM dialect does is to refer users to the LLVM Lang Ref with a link. Would that be okay, or better to document then here?

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


More information about the Mlir-commits mailing list