[Mlir-commits] [flang] [llvm] [mlir] [mlir][IR] Rename `DenseIntOrFPElementsAttr` to `DenseTypedElementsAttr` (PR #185687)
Jacques Pienaar
llvmlistbot at llvm.org
Wed Mar 11 10:28:20 PDT 2026
================
@@ -436,6 +436,19 @@ class ElementsAttrBase<Pred condition, string summary> :
def ElementsAttr : ElementsAttrBase<CPred<"::llvm::isa<::mlir::ElementsAttr>($_self)">,
"constant vector/tensor attribute">;
+class DenseTypedElementsAttrBase : ElementsAttrBase<
+ CPred<"::llvm::isa<::mlir::DenseTypedElementsAttr>($_self)">,
+ "dense typed elements attribute"> {
+ let storageType = [{ ::mlir::DenseTypedElementsAttr }];
+ let returnType = [{ ::mlir::DenseTypedElementsAttr }];
+ let convertFromStorage = "$_self";
+}
+
+def DenseTypedElementsAttr : DenseTypedElementsAttrBase;
+
+// Compatibility alias for old ODS constraints name.
----------------
jpienaar wrote:
This one does have the additional constraint of type, but if you didn't hit any of that when changing the isa before, then probably nobody was checking for that.
https://github.com/llvm/llvm-project/pull/185687
More information about the Mlir-commits
mailing list