MLIR  15.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::LLVM::detail::LLVMTypeAndSizeStorage Struct Reference

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"

+ Inheritance diagram for mlir::LLVM::detail::LLVMTypeAndSizeStorage:
+ Collaboration diagram for mlir::LLVM::detail::LLVMTypeAndSizeStorage:

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 AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...
 

Static Public Member Functions

static LLVMTypeAndSizeStorageconstruct (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
 

Detailed Description

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 414 of file TypeDetail.h.

Member Typedef Documentation

◆ KeyTy

Definition at line 415 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ LLVMTypeAndSizeStorage()

mlir::LLVM::detail::LLVMTypeAndSizeStorage::LLVMTypeAndSizeStorage ( const KeyTy key)
inline

Definition at line 417 of file TypeDetail.h.

Member Function Documentation

◆ construct()

static LLVMTypeAndSizeStorage* mlir::LLVM::detail::LLVMTypeAndSizeStorage::construct ( TypeStorageAllocator allocator,
const KeyTy key 
)
inlinestatic

Definition at line 420 of file TypeDetail.h.

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

◆ operator==()

bool mlir::LLVM::detail::LLVMTypeAndSizeStorage::operator== ( const KeyTy key) const
inline

Definition at line 426 of file TypeDetail.h.

Member Data Documentation

◆ elementType

Type mlir::LLVM::detail::LLVMTypeAndSizeStorage::elementType

Definition at line 430 of file TypeDetail.h.

◆ numElements

unsigned mlir::LLVM::detail::LLVMTypeAndSizeStorage::numElements

Definition at line 431 of file TypeDetail.h.


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