MLIR
15.0.0git
|
Type storage for LLVM dialect function types. More...
#include "Dialect/LLVMIR/IR/TypeDetail.h"
Public Types | |
using | KeyTy = std::tuple< Type, ArrayRef< Type >, bool > |
Public Member Functions | |
LLVMFunctionTypeStorage (Type result, ArrayRef< Type > arguments, bool variadic) | |
Construct a storage from the given components. More... | |
bool | operator== (const KeyTy &key) const |
ArrayRef< Type > | getArgumentTypes () const |
Returns the list of function argument types. More... | |
bool | isVariadic () const |
Checks whether the function type is variadic. More... | |
const Type & | getReturnType () const |
Returns the function result type. More... | |
![]() | |
const AbstractType & | getAbstractType () |
Return the abstract type descriptor for this type. More... | |
Static Public Member Functions | |
static LLVMFunctionTypeStorage * | construct (TypeStorageAllocator &allocator, const KeyTy &key) |
Hook into the type uniquing infrastructure. More... | |
static unsigned | hashKey (const KeyTy &key) |
Additional Inherited Members | |
![]() | |
TypeStorage () | |
This constructor is used by derived classes as part of the TypeUniquer. More... | |
![]() | |
BaseStorage ()=default | |
Type storage for LLVM dialect function types.
These are uniqued using the list of types they contain and the vararg bit.
Definition at line 330 of file TypeDetail.h.
using mlir::LLVM::detail::LLVMFunctionTypeStorage::KeyTy = std::tuple<Type, ArrayRef<Type>, bool> |
Definition at line 331 of file TypeDetail.h.
|
inline |
Construct a storage from the given components.
The list is expected to be allocated in the context.
Definition at line 335 of file TypeDetail.h.
|
inlinestatic |
Hook into the type uniquing infrastructure.
Definition at line 340 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), and mlir::StorageUniquer::StorageAllocator::copyInto().
Returns the list of function argument types.
Definition at line 360 of file TypeDetail.h.
|
inline |
Returns the function result type.
Definition at line 368 of file TypeDetail.h.
|
inlinestatic |
Definition at line 348 of file TypeDetail.h.
|
inline |
Checks whether the function type is variadic.
Definition at line 365 of file TypeDetail.h.
|
inline |
Definition at line 354 of file TypeDetail.h.