My Project
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
mlir::detail::DictionaryAttributeStorage Struct Referencefinal

An attribute representing a dictionary of sorted named attributes. More...

#include <AttributeDetail.h>

Inheritance diagram for mlir::detail::DictionaryAttributeStorage:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::DictionaryAttributeStorage:
Collaboration graph
[legend]

Public Types

using KeyTy = ArrayRef< NamedAttribute >
 

Public Member Functions

bool operator== (const KeyTy &key) const
 Key equality function. More...
 
ArrayRef< NamedAttributegetElements () const
 Return the elements of this dictionary attribute. More...
 
- Public Member Functions inherited from mlir::AttributeStorage
Type getType () const
 Get the type of this attribute. More...
 
DialectgetDialect () const
 Get the dialect of this attribute. More...
 
- Public Member Functions inherited from mlir::StorageUniquer::BaseStorage
unsigned getKind () const
 Get the kind classification of this storage. More...
 

Static Public Member Functions

static DictionaryAttributeStorageget (ArrayRef< NamedAttribute > attrs)
 
static DictionaryAttributeStorageconstruct (AttributeStorageAllocator &allocator, const KeyTy &key)
 Construct a new storage instance. More...
 

Friends

class llvm::TrailingObjects< DictionaryAttributeStorage, NamedAttribute >
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::AttributeStorage
 AttributeStorage (Type type)
 
 AttributeStorage ()
 
void setType (Type type)
 Set the type of this attribute. More...
 
void initializeDialect (Dialect &newDialect)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()
 

Detailed Description

An attribute representing a dictionary of sorted named attributes.

Member Typedef Documentation

◆ KeyTy

Member Function Documentation

◆ construct()

static DictionaryAttributeStorage* mlir::detail::DictionaryAttributeStorage::construct ( AttributeStorageAllocator allocator,
const KeyTy key 
)
inlinestatic

Construct a new storage instance.

◆ get()

static DictionaryAttributeStorage* mlir::detail::DictionaryAttributeStorage::get ( ArrayRef< NamedAttribute attrs)
static

Given a list of NamedAttribute's, canonicalize the list (sorting by name) and return the unique'd result.

◆ getElements()

ArrayRef<NamedAttribute> mlir::detail::DictionaryAttributeStorage::getElements ( ) const
inline

Return the elements of this dictionary attribute.

◆ operator==()

bool mlir::detail::DictionaryAttributeStorage::operator== ( const KeyTy key) const
inline

Key equality function.

Friends And Related Function Documentation

◆ llvm::TrailingObjects< DictionaryAttributeStorage, NamedAttribute >

friend class llvm::TrailingObjects< DictionaryAttributeStorage, NamedAttribute >
friend

The documentation for this struct was generated from the following file: