|
constexpr | Attribute ()=default |
|
| Attribute (const ImplType *impl) |
|
| Attribute (const Attribute &other)=default |
|
constexpr | Attribute ()=default |
|
| 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... Tys> |
bool | isa () const |
| Casting utility functions. More...
|
|
template<typename... Tys> |
bool | isa_and_nonnull () const |
|
template<typename U > |
U | dyn_cast () const |
|
template<typename U > |
U | dyn_cast_or_null () const |
|
template<typename U > |
U | cast () const |
|
TypeID | getTypeID () |
| Return a unique identifier for the concrete attribute type. 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, bool elideType=false) const |
| Print the attribute. More...
|
|
void | print (raw_ostream &os, AsmState &state, bool elideType=false) const |
|
void | dump () const |
|
void | printStripped (raw_ostream &os) const |
| Print the attribute without dialect wrapping. More...
|
|
void | printStripped (raw_ostream &os, AsmState &state) const |
|
const void * | getAsOpaquePointer () const |
| Get an opaque pointer to the attribute. More...
|
|
template<typename InterfaceT > |
bool | hasPromiseOrImplementsInterface () |
| Returns true if InterfaceT has been promised by the dialect or implemented. More...
|
|
template<template< typename T > class Trait> |
bool | hasTrait () |
| Returns true if the type was registered with a particular trait. More...
|
|
const AbstractTy & | getAbstractAttribute () const |
| Return the abstract descriptor for this attribute. More...
|
|
void | walkImmediateSubElements (function_ref< void(Attribute)> walkAttrsFn, function_ref< void(Type)> walkTypesFn) const |
| Walk all of the immediately nested sub-attributes and sub-types. More...
|
|
auto | replaceImmediateSubElements (ArrayRef< Attribute > replAttrs, ArrayRef< Type > replTypes) const |
| Replace the immediately nested sub-attributes and sub-types with those provided. More...
|
|
template<WalkOrder Order = WalkOrder::PostOrder, typename... WalkFns> |
auto | walk (WalkFns &&...walkFns) |
| Walk this attribute and all attibutes/types nested within using the provided walk functions. More...
|
|
template<typename... ReplacementFns> |
auto | replace (ReplacementFns &&...replacementFns) |
| Recursively replace all of the nested sub-attributes and sub-types using the provided map functions. More...
|
|
ImplType * | getImpl () const |
| Return the internal Attribute implementation. More...
|
|