MLIR  19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::detail::TupleTypeStorage Struct Referencefinal

A type representing a collection of other types. More...

#include "IR/TypeDetail.h"

+ Inheritance diagram for mlir::detail::TupleTypeStorage:

Public Types

using KeyTy = TypeRange
 

Public Member Functions

 TupleTypeStorage (unsigned numTypes)
 
bool operator== (const KeyTy &key) const
 
unsigned size () const
 Return the number of held types. More...
 
ArrayRef< TypegetTypes () const
 Return the held types. More...
 
KeyTy getAsKey () const
 
- Public Member Functions inherited from mlir::TypeStorage
const AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...
 

Static Public Member Functions

static TupleTypeStorageconstruct (TypeStorageAllocator &allocator, TypeRange key)
 Construction. More...
 

Public Attributes

unsigned numElements
 The number of tuple elements. More...
 

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

A type representing a collection of other types.

Definition at line 103 of file TypeDetail.h.

Member Typedef Documentation

◆ KeyTy

Definition at line 106 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ TupleTypeStorage()

mlir::detail::TupleTypeStorage::TupleTypeStorage ( unsigned  numTypes)
inline

Definition at line 108 of file TypeDetail.h.

Referenced by construct().

Member Function Documentation

◆ construct()

static TupleTypeStorage* mlir::detail::TupleTypeStorage::construct ( TypeStorageAllocator allocator,
TypeRange  key 
)
inlinestatic

Construction.

Definition at line 111 of file TypeDetail.h.

References mlir::StorageUniquer::StorageAllocator::allocate(), and TupleTypeStorage().

◆ getAsKey()

KeyTy mlir::detail::TupleTypeStorage::getAsKey ( ) const
inline

Definition at line 134 of file TypeDetail.h.

References getTypes().

◆ getTypes()

ArrayRef<Type> mlir::detail::TupleTypeStorage::getTypes ( ) const
inline

Return the held types.

Definition at line 130 of file TypeDetail.h.

References size().

Referenced by getAsKey(), and operator==().

◆ operator==()

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

Definition at line 124 of file TypeDetail.h.

References getTypes().

◆ size()

unsigned mlir::detail::TupleTypeStorage::size ( ) const
inline

Return the number of held types.

Definition at line 127 of file TypeDetail.h.

References numElements.

Referenced by getTypes().

Member Data Documentation

◆ numElements

unsigned mlir::detail::TupleTypeStorage::numElements

The number of tuple elements.

Definition at line 137 of file TypeDetail.h.

Referenced by size().


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