MLIR
20.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 |
Public Member Functions inherited from mlir::TypeStorage | |
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 | |
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 | |
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 366 of file TypeDetail.h.
using mlir::LLVM::detail::LLVMTypeAndSizeStorage::KeyTy = std::tuple<Type, unsigned> |
Definition at line 367 of file TypeDetail.h.
|
inline |
Definition at line 369 of file TypeDetail.h.
Referenced by construct().
|
inlinestatic |
Definition at line 372 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), and LLVMTypeAndSizeStorage().
|
inline |
Definition at line 378 of file TypeDetail.h.
References elementType, and numElements.
Type mlir::LLVM::detail::LLVMTypeAndSizeStorage::elementType |
Definition at line 382 of file TypeDetail.h.
Referenced by operator==().
unsigned mlir::LLVM::detail::LLVMTypeAndSizeStorage::numElements |
Definition at line 383 of file TypeDetail.h.
Referenced by operator==().