MLIR
18.0.0git
|
Common storage used for LLVM dialect types that need an element type and a number: arrays, fixed and scalable vectors. More...
#include "Dialect/LLVMIR/IR/TypeDetail.h"
Public Types | |
using | KeyTy = std::tuple< Type, unsigned > |
Public Member Functions | |
LLVMTypeAndSizeStorage (const KeyTy &key) | |
bool | operator== (const KeyTy &key) const |
![]() | |
const AbstractType & | getAbstractType () |
Return the abstract type descriptor for this type. More... | |
Static Public Member Functions | |
static LLVMTypeAndSizeStorage * | construct (TypeStorageAllocator &allocator, const KeyTy &key) |
Public Attributes | |
Type | elementType |
unsigned | numElements |
Additional Inherited Members | |
![]() | |
TypeStorage () | |
This constructor is used by derived classes as part of the TypeUniquer. More... | |
![]() | |
BaseStorage ()=default | |
Common storage used for LLVM dialect types that need an element type and a number: arrays, fixed and scalable vectors.
The actual semantics of the type is defined by its kind.
Definition at line 367 of file TypeDetail.h.
using mlir::LLVM::detail::LLVMTypeAndSizeStorage::KeyTy = std::tuple<Type, unsigned> |
Definition at line 368 of file TypeDetail.h.
|
inline |
Definition at line 370 of file TypeDetail.h.
Referenced by construct().
|
inlinestatic |
Definition at line 373 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), and LLVMTypeAndSizeStorage().
|
inline |
Definition at line 379 of file TypeDetail.h.
References elementType, and numElements.
Type mlir::LLVM::detail::LLVMTypeAndSizeStorage::elementType |
Definition at line 383 of file TypeDetail.h.
Referenced by operator==().
unsigned mlir::LLVM::detail::LLVMTypeAndSizeStorage::numElements |
Definition at line 384 of file TypeDetail.h.
Referenced by operator==().