MLIR  19.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:

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

Member Typedef Documentation

◆ KeyTy

Definition at line 368 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ LLVMTypeAndSizeStorage()

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

Definition at line 370 of file TypeDetail.h.

Referenced by construct().

Member Function Documentation

◆ construct()

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

◆ operator==()

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

Definition at line 379 of file TypeDetail.h.

References elementType, and numElements.

Member Data Documentation

◆ elementType

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

Definition at line 383 of file TypeDetail.h.

Referenced by operator==().

◆ numElements

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

Definition at line 384 of file TypeDetail.h.

Referenced by operator==().


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