[Mlir-commits] [mlir] c85bcb4 - Adopt Properties to store operations inherent Attributes in the Shape dialect

Mehdi Amini llvmlistbot at llvm.org
Wed May 10 16:16:36 PDT 2023


Author: Mehdi Amini
Date: 2023-05-11T00:15:20+01:00
New Revision: c85bcb4751b248bff18c9c866204c4cf54d3772d

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

LOG: Adopt Properties to store operations inherent Attributes in the Shape dialect

This is part of an on-going migration to adopt Properties inside MLIR.

Differential Revision: https://reviews.llvm.org/D148934

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td b/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
index 9c0257954d3e8..77a86fe55c89e 100644
--- a/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
+++ b/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
@@ -41,6 +41,7 @@ def ShapeDialect : Dialect {
   let useDefaultTypePrinterParser = 1;
   let hasConstantMaterializer = 1;
   let hasOperationAttrVerify = 1;
+  let usePropertiesForAttributes = 1;
 }
 
 class Shape_Type<string name, string typeMnemonic> : TypeDef<ShapeDialect, name> {


        


More information about the Mlir-commits mailing list