MLIR
21.0.0git
|
Integer Type Storage and Uniquing. More...
#include "IR/TypeDetail.h"
Public Types | |
using | KeyTy = std::tuple< unsigned, IntegerType::SignednessSemantics > |
The hash key used for uniquing. More... | |
Public Member Functions | |
IntegerTypeStorage (unsigned width, IntegerType::SignednessSemantics signedness) | |
bool | operator== (const KeyTy &key) const |
KeyTy | getAsKey () const |
![]() | |
const AbstractType & | getAbstractType () |
Return the abstract type descriptor for this type. More... | |
Static Public Member Functions | |
static llvm::hash_code | hashKey (const KeyTy &key) |
static IntegerTypeStorage * | construct (TypeStorageAllocator &allocator, KeyTy key) |
Public Attributes | |
unsigned | width: 30 |
IntegerType::SignednessSemantics | signedness: 2 |
Additional Inherited Members | |
![]() | |
TypeStorage () | |
This constructor is used by derived classes as part of the TypeUniquer. More... | |
![]() | |
BaseStorage ()=default | |
Integer Type Storage and Uniquing.
Definition at line 28 of file TypeDetail.h.
using mlir::detail::IntegerTypeStorage::KeyTy = std::tuple<unsigned, IntegerType::SignednessSemantics> |
The hash key used for uniquing.
Definition at line 34 of file TypeDetail.h.
|
inline |
Definition at line 29 of file TypeDetail.h.
Referenced by construct().
|
inlinestatic |
Definition at line 44 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), and IntegerTypeStorage().
|
inline |
Definition at line 50 of file TypeDetail.h.
References signedness, and width.
|
inlinestatic |
Definition at line 36 of file TypeDetail.h.
References mlir::polynomial::hash_value().
|
inline |
Definition at line 40 of file TypeDetail.h.
References signedness, and width.
IntegerType::SignednessSemantics mlir::detail::IntegerTypeStorage::signedness |
Definition at line 53 of file TypeDetail.h.
Referenced by getAsKey(), and operator==().
unsigned mlir::detail::IntegerTypeStorage::width |
Definition at line 52 of file TypeDetail.h.
Referenced by getAsKey(), and operator==().