My Project
|
#include <Attributes.h>
Public Member Functions | |
Identifier | getDialectNamespace () const |
Returns the dialect namespace of the opaque attribute. More... | |
StringRef | getAttrData () const |
Returns the raw attribute data of the opaque attribute. More... | |
Static Public Member Functions | |
static OpaqueAttr | get (Identifier dialect, StringRef attrData, Type type, MLIRContext *context) |
Get or create a new OpaqueAttr with the provided dialect and string data. More... | |
static OpaqueAttr | getChecked (Identifier dialect, StringRef attrData, Type type, Location location) |
static LogicalResult | verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, Identifier dialect, StringRef attrData, Type type) |
Verify the construction of an opaque attribute. More... | |
static bool | kindof (unsigned kind) |
Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
static ClassID * | getClassID () |
Return a unique identifier for the concrete type. More... | |
template<typename T > | |
static bool | classof (T val) |
Additional Inherited Members | |
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 |
Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
ImplType * | getImpl () 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... | |
Opaque attributes represent attributes of non-registered dialects. These are attribute represented in their raw string form, and can only usefully be tested for attribute equality.
|
static |
Get or create a new OpaqueAttr with the provided dialect and string data.
StringRef OpaqueAttr::getAttrData | ( | ) | const |
Returns the raw attribute data of the opaque attribute.
|
static |
Get or create a new OpaqueAttr with the provided dialect and string data. If the given identifier is not a valid namespace for a dialect, then a null attribute is returned.
Identifier OpaqueAttr::getDialectNamespace | ( | ) | const |
Returns the dialect namespace of the opaque attribute.
|
inlinestatic |
|
static |
Verify the construction of an opaque attribute.