MLIR
20.0.0git
|
A utility CRTP base class that defines many of the necessary utilities for defining a PDLL AST Type. More...
#include "Tools/PDLL/AST/TypeDetail.h"
Public Types | |
using | KeyTy = KeyT |
using | Base = TypeStorageBase< ConcreteT, KeyT > |
Public Member Functions | |
TypeStorageBase (KeyTy key) | |
bool | operator== (const KeyTy &key) const |
Utility methods required by the storage allocator. More... | |
const KeyTy & | getValue () const |
Return the key value of this storage class. More... | |
Public Member Functions inherited from mlir::pdll::ast::Type::Storage | |
Storage (TypeID typeID) | |
Static Public Member Functions | |
static ConcreteT * | construct (StorageUniquer::StorageAllocator &alloc, const KeyTy &key) |
Construct an instance with the given storage allocator. More... | |
Protected Attributes | |
KeyTy | key |
Additional Inherited Members | |
Public Attributes inherited from mlir::pdll::ast::Type::Storage | |
TypeID | typeID |
The type identifier for the derived type class. More... | |
Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage | |
BaseStorage ()=default | |
A utility CRTP base class that defines many of the necessary utilities for defining a PDLL AST Type.
Definition at line 33 of file TypeDetail.h.
using mlir::pdll::ast::detail::TypeStorageBase< ConcreteT, KeyT >::Base = TypeStorageBase<ConcreteT, KeyT> |
Definition at line 35 of file TypeDetail.h.
using mlir::pdll::ast::detail::TypeStorageBase< ConcreteT, KeyT >::KeyTy = KeyT |
Definition at line 34 of file TypeDetail.h.
|
inline |
Definition at line 36 of file TypeDetail.h.
|
inlinestatic |
Construct an instance with the given storage allocator.
Definition at line 40 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), and mlir::pdll::ast::detail::TypeStorageBase< ConcreteT, KeyT >::key.
|
inline |
Return the key value of this storage class.
Definition at line 49 of file TypeDetail.h.
References mlir::pdll::ast::detail::TypeStorageBase< ConcreteT, KeyT >::key.
|
inline |
Utility methods required by the storage allocator.
Definition at line 46 of file TypeDetail.h.
References mlir::pdll::ast::detail::TypeStorageBase< ConcreteT, KeyT >::key.
|
protected |