[Mlir-commits] [mlir] 971e13d - [mlir][ods] Mark StructAttr as deprecated

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jun 8 20:23:46 PDT 2022


Author: Mogball
Date: 2022-06-09T03:23:31Z
New Revision: 971e13d69e3e7b687213fef22952be6a328c426c

URL: https://github.com/llvm/llvm-project/commit/971e13d69e3e7b687213fef22952be6a328c426c
DIFF: https://github.com/llvm/llvm-project/commit/971e13d69e3e7b687213fef22952be6a328c426c.diff

LOG: [mlir][ods] Mark StructAttr as deprecated

Added: 
    

Modified: 
    mlir/include/mlir/IR/OpBase.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td
index 9f2ae6fd8b804..4af64dfa75136 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -1437,7 +1437,8 @@ def IndexListArrayAttr :
   TypedArrayAttrBase<I64ArrayAttr, "Array of 64-bit integer array attributes">;
 
 // Attribute information for an Attribute field within a StructAttr.
-class StructFieldAttr<string thisName, Attr thisType> {
+class StructFieldAttr<string thisName, Attr thisType>
+    : Deprecated<"StructAttr is being removed on June 20"> {
   // Name of this field in the StructAttr.
   string name = thisName;
 
@@ -1450,6 +1451,7 @@ class StructFieldAttr<string thisName, Attr thisType> {
 // useful when representing data that would normally be in a structure.
 class StructAttr<string name, Dialect d,
                  list<StructFieldAttr> attributes> :
+    Deprecated<"StructAttr is being removed on June 20">,
     DictionaryAttrBase<CPred<"$_self.isa<" # d.cppNamespace
                                            # "::" # name # ">()">,
         "DictionaryAttr with field(s): " #


        


More information about the Mlir-commits mailing list