My Project
|
#include <Attributes.h>
Public Types | |
using | ValueType = StringRef |
![]() | |
using | Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > |
Utility declarations for the concrete attribute class. More... | |
using | ImplType = StorageT |
Public Member Functions | |
StringRef | getValue () const |
Attribute | getValue (ArrayRef< uint64_t > index) const |
bool | decode (ElementsAttr &result) |
Dialect * | getDialect () const |
Returns dialect associated with this opaque constant. More... | |
Static Public Member Functions | |
static OpaqueElementsAttr | get (Dialect *dialect, ShapedType type, StringRef bytes) |
static bool | kindof (unsigned kind) |
Method for support type inquiry through isa, cast and dyn_cast. More... | |
![]() | |
static ClassID * | getClassID () |
Return a unique identifier for the concrete type. More... | |
template<typename T > | |
static bool | classof (T val) |
Additional Inherited Members | |
![]() | |
ImplType * | getImpl () const |
Utility for easy access to the storage instance. More... | |
![]() | |
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... | |
An opaque attribute that represents a reference to a vector or tensor constant with opaque content. This representation is for tensor constants which the compiler may not need to interpret. This attribute is always associated with a particular dialect, which provides a method to convert tensor representation to a non-opaque format.
using mlir::OpaqueElementsAttr::ValueType = StringRef |
bool OpaqueElementsAttr::decode | ( | ElementsAttr & | result | ) |
Decodes the attribute value using dialect-specific decoding hook. Returns false if decoding is successful. If not, returns true and leaves 'result' argument unspecified.
|
static |
Dialect * OpaqueElementsAttr::getDialect | ( | ) | const |
Returns dialect associated with this opaque constant.
StringRef OpaqueElementsAttr::getValue | ( | ) | const |
Return the value at the given index. The 'index' is expected to refer to a valid element.
Return the value at the given index. If index does not refer to a valid element, then a null attribute is returned.
|
inlinestatic |
Method for support type inquiry through isa, cast and dyn_cast.