[Mlir-commits] [mlir] 3e0ab6a - Adopt Properties to store operations inherent Attributes in the Memref dialect

Mehdi Amini llvmlistbot at llvm.org
Tue May 9 17:31:32 PDT 2023


Author: Mehdi Amini
Date: 2023-05-10T01:31:00+01:00
New Revision: 3e0ab6a21a3cca729ca9fbf720704a0e96a8207a

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

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

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

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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
    mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/MemRef/IR/MemRef.h b/mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
index 4c4515c6b6826..9e4f7e2d5c458 100644
--- a/mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
+++ b/mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
@@ -9,6 +9,7 @@
 #ifndef MLIR_DIALECT_MEMREF_IR_MEMREF_H_
 #define MLIR_DIALECT_MEMREF_IR_MEMREF_H_
 
+#include "mlir/Dialect/Arith/IR/Arith.h"
 #include "mlir/Dialect/Utils/ReshapeOpsUtils.h"
 #include "mlir/IR/Dialect.h"
 #include "mlir/Interfaces/CallInterfaces.h"

diff  --git a/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td b/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td
index 3be84ae654f6a..b3f2a31963702 100644
--- a/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td
+++ b/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td
@@ -21,6 +21,7 @@ def MemRef_Dialect : Dialect {
   }];
   let dependentDialects = ["arith::ArithDialect"];
   let hasConstantMaterializer = 1;
+  let usePropertiesForAttributes = 1;
 }
 
 #endif // MEMREF_BASE


        


More information about the Mlir-commits mailing list