mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Add DictionaryAttr to OpBase.td
PiperOrigin-RevId: 264262369
This commit is contained in:
committed by
A. Unique TensorFlower
parent
305516fcd3
commit
2277b9fb5c
@@ -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 }];
|
||||
|
||||
Reference in New Issue
Block a user