MLIR
20.0.0git
|
#include "mlir/IR/AttributeSupport.h"
Static Public Member Functions | |
template<typename T , typename... Args> | |
static T | get (MLIRContext *ctx, Args &&...args) |
Get an uniqued instance of an attribute T. More... | |
template<typename T , typename... Args> | |
static std::enable_if_t< !std::is_same< typename T::ImplType, AttributeStorage >::value, T > | getWithTypeID (MLIRContext *ctx, TypeID typeID, Args &&...args) |
Get an uniqued instance of a parametric attribute T. More... | |
template<typename T > | |
static std::enable_if_t< std::is_same< typename T::ImplType, AttributeStorage >::value, T > | getWithTypeID (MLIRContext *ctx, TypeID typeID) |
Get an uniqued instance of a singleton attribute T. More... | |
template<typename T , typename... Args> | |
static LogicalResult | mutate (MLIRContext *ctx, typename T::ImplType *impl, Args &&...args) |
template<typename T > | |
static void | registerAttribute (MLIRContext *ctx) |
Register an attribute instance T with the uniquer. More... | |
template<typename T > | |
static std::enable_if_t< !std::is_same< typename T::ImplType, AttributeStorage >::value > | registerAttribute (MLIRContext *ctx, TypeID typeID) |
Register a parametric attribute instance T with the uniquer. More... | |
template<typename T > | |
static std::enable_if_t< std::is_same< typename T::ImplType, AttributeStorage >::value > | registerAttribute (MLIRContext *ctx, TypeID typeID) |
Register a singleton attribute instance T with the uniquer. More... | |
Definition at line 215 of file AttributeSupport.h.
|
inlinestatic |
Get an uniqued instance of an attribute T.
Definition at line 219 of file AttributeSupport.h.
References getWithTypeID().
|
inlinestatic |
Get an uniqued instance of a singleton attribute T.
The use of this method is in general discouraged in favor of 'get<T, Args>(ctx, args)'.
Definition at line 255 of file AttributeSupport.h.
References mlir::StorageUniquer::get(), mlir::MLIRContext::getAttributeUniquer(), and mlir::StorageUniquer::isSingletonStorageInitialized().
|
inlinestatic |
Get an uniqued instance of a parametric attribute T.
The use of this method is in general discouraged in favor of 'get<T, Args>(ctx, args)'.
Definition at line 230 of file AttributeSupport.h.
References mlir::StorageUniquer::get(), mlir::MLIRContext::getAttributeUniquer(), and mlir::StorageUniquer::isParametricStorageInitialized().
Referenced by get().
|
inlinestatic |
Definition at line 268 of file AttributeSupport.h.
References mlir::MLIRContext::getAttributeUniquer(), and mlir::StorageUniquer::mutate().
|
inlinestatic |
Register an attribute instance T with the uniquer.
Definition at line 277 of file AttributeSupport.h.
|
inlinestatic |
Register a parametric attribute instance T with the uniquer.
The use of this method is in general discouraged in favor of 'registerAttribute<T>(ctx)'.
Definition at line 287 of file AttributeSupport.h.
References mlir::MLIRContext::getAttributeUniquer(), and mlir::StorageUniquer::registerParametricStorageType().
|
inlinestatic |
Register a singleton attribute instance T with the uniquer.
The use of this method is in general discouraged in favor of 'registerAttribute<T>(ctx)'.
Definition at line 297 of file AttributeSupport.h.
References mlir::MLIRContext::getAttributeUniquer(), and mlir::StorageUniquer::registerSingletonStorageType().