Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Add DictionaryAttr to OpBase.td
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 264262369
  • Loading branch information
rsuderman authored and tensorflower-gardener committed Aug 19, 2019
1 parent 8cdafdd commit f80fad2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/mlir/IR/OpBase.td
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,13 @@ class I64EnumAttr<string name, string description,
//===----------------------------------------------------------------------===//
// Composite attribute kinds

def DictionaryAttr : Attr<CPred<"$_self.isa<DictionaryAttr>()">,
"dictionary of named attribute values"> {
let storageType = [{ DictionaryAttr }];
let returnType = [{ DictionaryAttr }];
let convertFromStorage = "$_self";
}

class ElementsAttrBase<Pred condition, string description> :
Attr<condition, description> {
let storageType = [{ ElementsAttr }];
Expand Down

0 comments on commit f80fad2

Please sign in to comment.