[Mlir-commits] [mlir] [MLIR][LLVMIR] Add elementtype attribute (PR #129918)

Tobias Gysi llvmlistbot at llvm.org
Wed Mar 5 11:37:52 PST 2025


================
@@ -44,6 +44,7 @@ def LLVM_Dialect : Dialect {
     static StringRef getNoUndefAttrName() { return "llvm.noundef"; }
     static StringRef getDereferenceableAttrName() { return "llvm.dereferenceable"; }
     static StringRef getDereferenceableOrNullAttrName() { return "llvm.dereferenceable_or_null"; }
+    static StringRef getElementTypeAttrName() { return "llvm.element_type"; }
----------------
gysit wrote:

```suggestion
    static StringRef getElementTypeAttrName() { return "llvm.elementtype"; }
```
nit: it seems like LLVM proper uses elementtype without underscore, so I would use the same convention here.  

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


More information about the Mlir-commits mailing list