My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::DictionaryAttr Class Reference

#include <Attributes.h>

Inheritance diagram for mlir::DictionaryAttr:
Inheritance graph
[legend]
Collaboration diagram for mlir::DictionaryAttr:
Collaboration graph
[legend]

Public Types

using ValueType = ArrayRef< NamedAttribute >
 
using iterator = llvm::ArrayRef< NamedAttribute >::iterator
 Support range iteration. More...
 
- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 

Public Member Functions

ArrayRef< NamedAttributegetValue () const
 
Attribute get (StringRef name) const
 Return the specified attribute if present, null otherwise. More...
 
Attribute get (Identifier name) const
 
iterator begin () const
 
iterator end () const
 
bool empty () const
 
size_t size () const
 

Static Public Member Functions

static DictionaryAttr get (ArrayRef< NamedAttribute > value, MLIRContext *context)
 
static bool kindof (unsigned kind)
 Methods for supporting type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
template<typename... Args>
static ConcreteT get (MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static ConcreteT getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static LogicalResult verifyConstructionInvariants (Args... args)
 Default implementation that just returns success. More...
 

Detailed Description

Dictionary attribute is an attribute that represents a sorted collection of named attribute values. The elements are sorted by name, and each name must be unique within the collection.

Member Typedef Documentation

◆ iterator

Support range iteration.

◆ ValueType

Member Function Documentation

◆ begin()

DictionaryAttr::iterator DictionaryAttr::begin ( ) const

◆ empty()

bool mlir::DictionaryAttr::empty ( ) const
inline

◆ end()

DictionaryAttr::iterator DictionaryAttr::end ( ) const

◆ get() [1/3]

DictionaryAttr DictionaryAttr::get ( ArrayRef< NamedAttribute value,
MLIRContext context 
)
static

◆ get() [2/3]

Attribute DictionaryAttr::get ( StringRef  name) const

Return the specified attribute if present, null otherwise.

◆ get() [3/3]

Attribute DictionaryAttr::get ( Identifier  name) const

◆ getValue()

ArrayRef< NamedAttribute > DictionaryAttr::getValue ( ) const

◆ kindof()

static bool mlir::DictionaryAttr::kindof ( unsigned  kind)
inlinestatic

Methods for supporting type inquiry through isa, cast, and dyn_cast.

◆ size()

size_t DictionaryAttr::size ( ) const

The documentation for this class was generated from the following files: