MLIR
20.0.0git
|
This class provides a storage uniquer that is used to allocate predicate instances. More...
#include "Conversion/PDLToPDLInterp/Predicate.h"
Public Member Functions | |
PredicateUniquer () | |
Public Member Functions inherited from mlir::StorageUniquer | |
StorageUniquer () | |
~StorageUniquer () | |
void | disableMultithreading (bool disable=true) |
Set the flag specifying if multi-threading is disabled within the uniquer. More... | |
template<typename Storage > | |
void | registerParametricStorageType (TypeID id) |
Register a new parametric storage class, this is necessary to create instances of this class type. More... | |
template<typename Storage > | |
void | registerParametricStorageType () |
Utility override when the storage type represents the type id. More... | |
template<typename Storage > | |
void | registerSingletonStorageType (TypeID id, function_ref< void(Storage *)> initFn) |
Register a new singleton storage class, this is necessary to get the singletone instance. More... | |
template<typename Storage > | |
void | registerSingletonStorageType (TypeID id) |
template<typename Storage > | |
void | registerSingletonStorageType (function_ref< void(Storage *)> initFn={}) |
Utility override when the storage type represents the type id. More... | |
template<typename Storage , typename... Args> | |
Storage * | get (function_ref< void(Storage *)> initFn, TypeID id, Args &&...args) |
Gets a uniqued instance of 'Storage'. More... | |
template<typename Storage , typename... Args> | |
Storage * | get (function_ref< void(Storage *)> initFn, Args &&...args) |
Utility override when the storage type represents the type id. More... | |
template<typename Storage > | |
Storage * | get (TypeID id) |
Gets a uniqued instance of 'Storage' which is a singleton storage type. More... | |
template<typename Storage > | |
Storage * | get () |
Utility override when the storage type represents the type id. More... | |
bool | isSingletonStorageInitialized (TypeID id) |
Test if there is a singleton storage uniquer initialized for the provided TypeID. More... | |
bool | isParametricStorageInitialized (TypeID id) |
Test if there is a parametric storage uniquer initialized for the provided TypeID. More... | |
template<typename Storage , typename... Args> | |
LogicalResult | mutate (TypeID id, Storage *storage, Args &&...args) |
Changes the mutable component of 'storage' by forwarding the trailing arguments to the 'mutate' function of the derived class. More... | |
This class provides a storage uniquer that is used to allocate predicate instances.
Definition at line 552 of file Predicate.h.
|
inline |
Definition at line 554 of file Predicate.h.