From 2277b9fb5c235dccfbfb803fd81f3ffe3c09872a Mon Sep 17 00:00:00 2001 From: Rob Suderman Date: Mon, 19 Aug 2019 15:56:55 -0700 Subject: [PATCH] Add DictionaryAttr to OpBase.td PiperOrigin-RevId: 264262369 --- mlir/include/mlir/IR/OpBase.td | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td index 1cd61463455b..fc909c5f0ea3 100644 --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -807,6 +807,13 @@ class I64EnumAttr()">, + "dictionary of named attribute values"> { + let storageType = [{ DictionaryAttr }]; + let returnType = [{ DictionaryAttr }]; + let convertFromStorage = "$_self"; +} + class ElementsAttrBase : Attr { let storageType = [{ ElementsAttr }];