|
My Project
|
#include <Attributes.h>


Public Types | |
| enum | Kind { DEFINE_SYM_KIND_RANGE, DEFINE_SYM_KIND_RANGE } |
| Integer identifier for all the concrete attribute kinds. More... | |
| template<typename ConcreteType , typename BaseType = Attribute, typename StorageType = AttributeStorage> | |
| using | AttrBase = detail::StorageUserBase< ConcreteType, BaseType, StorageType, detail::AttributeUniquer > |
| Utility class for implementing attributes. More... | |
| using | ImplType = AttributeStorage |
| using | ValueType = void |
Public Member Functions | |
| Attribute () | |
| Attribute (const ImplType *impl) | |
| Attribute (const Attribute &other)=default | |
| Attribute & | operator= (const Attribute &other)=default |
| bool | operator== (Attribute other) const |
| bool | operator!= (Attribute other) const |
| operator bool () const | |
| bool | operator! () const |
| template<typename U > | |
| bool | isa () const |
| template<typename U > | |
| U | dyn_cast () const |
| template<typename U > | |
| U | dyn_cast_or_null () const |
| template<typename U > | |
| U | cast () const |
| unsigned | getKind () const |
| Return the classification for this attribute. More... | |
| Type | getType () const |
| Return the type of this attribute. More... | |
| MLIRContext * | getContext () const |
| Return the context this attribute belongs to. More... | |
| Dialect & | getDialect () const |
| Get the dialect this attribute is registered to. More... | |
| void | print (raw_ostream &os) const |
| Print the attribute. More... | |
| void | dump () const |
| const void * | getAsOpaquePointer () const |
| Get an opaque pointer to the attribute. More... | |
Static Public Member Functions | |
| static bool | classof (Attribute) |
| static Attribute | getFromOpaquePointer (const void *ptr) |
| Construct an attribute from the opaque pointer representation. More... | |
Protected Attributes | |
| ImplType * | impl |
Friends | |
| ::llvm::hash_code | hash_value (Attribute arg) |
Attributes are known-constant values of operations and functions.
Instances of the Attribute class are references to immutable, uniqued, and immortal values owned by MLIRContext. As such, an Attribute is a thin wrapper around an underlying storage pointer. Attributes are usually passed by value.
| using mlir::Attribute::AttrBase = detail::StorageUserBase<ConcreteType, BaseType, StorageType, detail::AttributeUniquer> |
Utility class for implementing attributes.
| using mlir::Attribute::ValueType = void |
|
inline |
|
inline |
|
default |
| U mlir::Attribute::cast | ( | ) | const |
|
inlinestatic |
| void Attribute::dump | ( | ) | const |
| U mlir::Attribute::dyn_cast | ( | ) | const |
| U mlir::Attribute::dyn_cast_or_null | ( | ) | const |
|
inline |
Get an opaque pointer to the attribute.
| MLIRContext * Attribute::getContext | ( | ) | const |
Return the context this attribute belongs to.
| Dialect & Attribute::getDialect | ( | ) | const |
Get the dialect this attribute is registered to.
|
inlinestatic |
Construct an attribute from the opaque pointer representation.
|
inline |
Return the classification for this attribute.
| Type Attribute::getType | ( | ) | const |
Return the type of this attribute.
| bool mlir::Attribute::isa | ( | ) | const |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
| void Attribute::print | ( | raw_ostream & | os | ) | const |
Print the attribute.
|
friend |
|
protected |
1.8.13