[Mlir-commits] [mlir] [mlir][ptr] Add ConstantOp with NullAttr and AddressAttr support (PR #157347)
    Mehdi Amini 
    llvmlistbot at llvm.org
       
    Fri Sep 12 10:20:05 PDT 2025
    
    
  
================
@@ -22,6 +22,34 @@ class Ptr_Attr<string name, string attrMnemonic,
   let mnemonic = attrMnemonic;
 }
 
+//===----------------------------------------------------------------------===//
+// AddressAttr
+//===----------------------------------------------------------------------===//
+
+def Ptr_AddressAttr : Ptr_Attr<"Address", "address", [
+    DeclareAttrInterfaceMethods<TypedAttrInterface>
+  ]> {
+  let summary = "Address attribute";
+  let description = [{
+    The `address` attribute represents a raw memory address.
----------------
joker-eph wrote:
A recent discussion with @krzysz00 surfaced that there isn't a shared understanding of the granularity of an address: in particular they were looking into bit level alignment of pointers, so we ought to clarify the intent for the pointer dialect.
https://github.com/llvm/llvm-project/pull/157347
    
    
More information about the Mlir-commits
mailing list