|
MLIR 23.0.0git
|
Type-safe wrapper around a void* for passing properties, including the properties structs of operations, generically through APIs. More...
#include "mlir/IR/OperationSupport.h"
Public Member Functions | |
| PropertyRef ()=default | |
| PropertyRef (TypeID typeID, void *data) | |
| operator bool () const | |
| template<typename Dest> | |
| Dest | as () const |
| TypeID | getTypeID () const |
Type-safe wrapper around a void* for passing properties, including the properties structs of operations, generically through APIs.
Pairs data with a TypeID for assert-based type checking. Note that the type in the type ID is the storage type of the property, and that the default object has a null data pointer and a type ID equal to the type ID for void.
Definition at line 74 of file OperationSupport.h.
|
default |
Definition at line 77 of file OperationSupport.h.
|
inline |
Definition at line 80 of file OperationSupport.h.
References mlir::TypeID::get().
Referenced by mlir::OperationName::UnregisteredOpModel::deleteProperties(), mlir::OperationState::getOrAddProperties(), mlir::OperationName::UnregisteredOpModel::getPropertiesAsAttr(), mlir::Operation::getPropertiesAsAttribute(), mlir::OperationName::UnregisteredOpModel::hashProperties(), mlir::OperationName::UnregisteredOpModel::initProperties(), mlir::OperationName::UnregisteredOpModel::setInherentAttr(), mlir::OperationName::UnregisteredOpModel::setPropertiesFromAttr(), mlir::RegisteredOperationName::Model< ConcreteOp >::setPropertiesFromAttr(), mlir::Operation::setPropertiesFromAttribute(), and mlir::OperationState::useProperties().
|
inline |
Definition at line 88 of file OperationSupport.h.
|
inline |
Definition at line 78 of file OperationSupport.h.