|
MLIR 22.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. | |
Public Member Functions | |
| IntegerTypeStorage (unsigned width, IntegerType::SignednessSemantics signedness) | |
| bool | operator== (const KeyTy &key) const |
| KeyTy | getAsKey () const |
| Public Member Functions inherited from mlir::TypeStorage | |
| const AbstractType & | getAbstractType () |
| Return the abstract type descriptor for this type. | |
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 | |
| Protected Member Functions inherited from mlir::TypeStorage | |
| TypeStorage () | |
| This constructor is used by derived classes as part of the TypeUniquer. | |
| Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage | |
| 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.
References signedness, and width.
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.
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(), IntegerTypeStorage(), and operator==().
| unsigned mlir::detail::IntegerTypeStorage::width |
Definition at line 52 of file TypeDetail.h.
Referenced by getAsKey(), IntegerTypeStorage(), and operator==().