MLIR  16.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::spirv::detail::ArrayTypeStorage Struct Reference
+ Inheritance diagram for mlir::spirv::detail::ArrayTypeStorage:
+ Collaboration diagram for mlir::spirv::detail::ArrayTypeStorage:

Public Types

using KeyTy = std::tuple< Type, unsigned, unsigned >
 

Public Member Functions

bool operator== (const KeyTy &key) const
 
 ArrayTypeStorage (const KeyTy &key)
 
- Public Member Functions inherited from mlir::TypeStorage
const AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...
 

Static Public Member Functions

static ArrayTypeStorageconstruct (TypeStorageAllocator &allocator, const KeyTy &key)
 

Public Attributes

Type elementType
 
unsigned elementCount
 
unsigned stride
 

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
 

Detailed Description

Definition at line 29 of file SPIRVTypes.cpp.

Member Typedef Documentation

◆ KeyTy

using mlir::spirv::detail::ArrayTypeStorage::KeyTy = std::tuple<Type, unsigned, unsigned>

Definition at line 30 of file SPIRVTypes.cpp.

Constructor & Destructor Documentation

◆ ArrayTypeStorage()

mlir::spirv::detail::ArrayTypeStorage::ArrayTypeStorage ( const KeyTy key)
inline

Definition at line 41 of file SPIRVTypes.cpp.

Member Function Documentation

◆ construct()

static ArrayTypeStorage* mlir::spirv::detail::ArrayTypeStorage::construct ( TypeStorageAllocator allocator,
const KeyTy key 
)
inlinestatic

Definition at line 32 of file SPIRVTypes.cpp.

References mlir::StorageUniquer::StorageAllocator::allocate().

◆ operator==()

bool mlir::spirv::detail::ArrayTypeStorage::operator== ( const KeyTy key) const
inline

Definition at line 37 of file SPIRVTypes.cpp.

Member Data Documentation

◆ elementCount

unsigned mlir::spirv::detail::ArrayTypeStorage::elementCount

Definition at line 46 of file SPIRVTypes.cpp.

◆ elementType

Type mlir::spirv::detail::ArrayTypeStorage::elementType

Definition at line 45 of file SPIRVTypes.cpp.

◆ stride

unsigned mlir::spirv::detail::ArrayTypeStorage::stride

Definition at line 47 of file SPIRVTypes.cpp.


The documentation for this struct was generated from the following file: