[Mlir-commits] [mlir] 2f65a1a - [mlir] Add constBuilderCall to DictionaryAttr

Eugene Zhulenev llvmlistbot at llvm.org
Thu Dec 29 12:30:26 PST 2022


Author: Eugene Zhulenev
Date: 2022-12-29T12:30:22-08:00
New Revision: 2f65a1a479dd3151050f3603597c6e245be1a509

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

LOG: [mlir] Add constBuilderCall to DictionaryAttr

Reviewed By: ftynse

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

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 a14c8911d152a..3b3d4fd3b21de 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -1292,6 +1292,7 @@ def UnitAttr : Attr<CPred<"$_self.isa<::mlir::UnitAttr>()">, "unit attribute"> {
 class DictionaryAttrBase<Pred condition, string summary> :
     Attr<condition, summary> {
   let storageType = [{ ::mlir::DictionaryAttr }];
+  let constBuilderCall = "$_builder.getDictionaryAttr($0)";
   let returnType = [{ ::mlir::DictionaryAttr }];
   let valueType = NoneType;
   let convertFromStorage = "$_self";


        


More information about the Mlir-commits mailing list