From: Eugene Zhulenev Date: Wed, 28 Dec 2022 20:45:17 +0000 (-0800) Subject: [mlir] Add constBuilderCall to DictionaryAttr X-Git-Tag: upstream/17.0.6~22474 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f65a1a479dd3151050f3603597c6e245be1a509;p=platform%2Fupstream%2Fllvm.git [mlir] Add constBuilderCall to DictionaryAttr Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D140740 --- diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td index a14c891..3b3d4fd 100644 --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -1292,6 +1292,7 @@ def UnitAttr : Attr()">, "unit attribute"> { class DictionaryAttrBase : Attr { let storageType = [{ ::mlir::DictionaryAttr }]; + let constBuilderCall = "$_builder.getDictionaryAttr($0)"; let returnType = [{ ::mlir::DictionaryAttr }]; let valueType = NoneType; let convertFromStorage = "$_self";