My Project
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::detail::FunctionTypeStorage Struct Reference

Function Type Storage and Uniquing. More...

#include <TypeDetail.h>

Inheritance diagram for mlir::detail::FunctionTypeStorage:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::FunctionTypeStorage:
Collaboration graph
[legend]

Public Types

using KeyTy = std::pair< ArrayRef< Type >, ArrayRef< Type > >
 The hash key used for uniquing. More...
 

Public Member Functions

 FunctionTypeStorage (unsigned numInputs, unsigned numResults, Type const *inputsAndResults)
 
bool operator== (const KeyTy &key) const
 
ArrayRef< TypegetInputs () const
 
ArrayRef< TypegetResults () const
 
- Public Member Functions inherited from mlir::TypeStorage
DialectgetDialect ()
 Get the dialect that this type is registered to. More...
 
unsigned getSubclassData () const
 Get the subclass data. More...
 
void setSubclassData (unsigned val)
 Set the subclass data. More...
 
- Public Member Functions inherited from mlir::StorageUniquer::BaseStorage
unsigned getKind () const
 Get the kind classification of this storage. More...
 

Static Public Member Functions

static FunctionTypeStorageconstruct (TypeStorageAllocator &allocator, const KeyTy &key)
 Construction. More...
 

Public Attributes

unsigned numResults
 
Type const * inputsAndResults
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::TypeStorage
 TypeStorage (unsigned subclassData=0)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()
 

Detailed Description

Function Type Storage and Uniquing.

Member Typedef Documentation

◆ KeyTy

The hash key used for uniquing.

Constructor & Destructor Documentation

◆ FunctionTypeStorage()

mlir::detail::FunctionTypeStorage::FunctionTypeStorage ( unsigned  numInputs,
unsigned  numResults,
Type const *  inputsAndResults 
)
inline

Member Function Documentation

◆ construct()

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

Construction.

◆ getInputs()

ArrayRef<Type> mlir::detail::FunctionTypeStorage::getInputs ( ) const
inline

◆ getResults()

ArrayRef<Type> mlir::detail::FunctionTypeStorage::getResults ( ) const
inline

◆ operator==()

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

Member Data Documentation

◆ inputsAndResults

Type const* mlir::detail::FunctionTypeStorage::inputsAndResults

◆ numResults

unsigned mlir::detail::FunctionTypeStorage::numResults

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