MLIR
20.0.0git
|
Function Type Storage and Uniquing. More...
#include "IR/TypeDetail.h"
Public Types | |
using | KeyTy = std::tuple< TypeRange, TypeRange > |
The hash key used for uniquing. More... | |
Public Member Functions | |
FunctionTypeStorage (unsigned numInputs, unsigned numResults, Type const *inputsAndResults) | |
bool | operator== (const KeyTy &key) const |
ArrayRef< Type > | getInputs () const |
ArrayRef< Type > | getResults () const |
KeyTy | getAsKey () const |
Public Member Functions inherited from mlir::TypeStorage | |
const AbstractType & | getAbstractType () |
Return the abstract type descriptor for this type. More... | |
Static Public Member Functions | |
static FunctionTypeStorage * | construct (TypeStorageAllocator &allocator, const KeyTy &key) |
Construction. More... | |
Public Attributes | |
unsigned | numInputs |
unsigned | numResults |
Type const * | inputsAndResults |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::TypeStorage | |
TypeStorage () | |
This constructor is used by derived classes as part of the TypeUniquer. More... | |
Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage | |
BaseStorage ()=default | |
Function Type Storage and Uniquing.
Definition at line 57 of file TypeDetail.h.
using mlir::detail::FunctionTypeStorage::KeyTy = std::tuple<TypeRange, TypeRange> |
The hash key used for uniquing.
Definition at line 64 of file TypeDetail.h.
|
inline |
Definition at line 58 of file TypeDetail.h.
Referenced by construct().
|
inlinestatic |
Construction.
Definition at line 72 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), mlir::StorageUniquer::StorageAllocator::copyInto(), and FunctionTypeStorage().
|
inline |
Definition at line 95 of file TypeDetail.h.
References getInputs(), and getResults().
Definition at line 88 of file TypeDetail.h.
References inputsAndResults, and numInputs.
Referenced by getAsKey(), and operator==().
Definition at line 91 of file TypeDetail.h.
References inputsAndResults, numInputs, and numResults.
Referenced by getAsKey(), and operator==().
|
inline |
Definition at line 65 of file TypeDetail.h.
References getInputs(), and getResults().
Type const* mlir::detail::FunctionTypeStorage::inputsAndResults |
Definition at line 99 of file TypeDetail.h.
Referenced by getInputs(), and getResults().
unsigned mlir::detail::FunctionTypeStorage::numInputs |
Definition at line 97 of file TypeDetail.h.
Referenced by getInputs(), and getResults().
unsigned mlir::detail::FunctionTypeStorage::numResults |
Definition at line 98 of file TypeDetail.h.
Referenced by getResults().