[Mlir-commits] [mlir] [mlir][ptr] Add ConstantOp with NullAttr and AddressAttr support (PR #157347)
Mehdi Amini
llvmlistbot at llvm.org
Sun Sep 14 08:14:23 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:
```suggestion
The `address` attribute represents a raw memory address, expressed in bytes.
```
https://github.com/llvm/llvm-project/pull/157347
More information about the Mlir-commits
mailing list