My Project
Classes | Public Member Functions | List of all members
mlir::TypeConverter::SignatureConversion Class Reference

#include <DialectConversion.h>

Classes

struct  InputMapping
 

Public Member Functions

 SignatureConversion (unsigned numOrigInputs)
 
ArrayRef< TypegetConvertedTypes () const
 Return the argument types for the new signature. More...
 
Optional< InputMappinggetInputMapping (unsigned input) const
 Get the input mapping for the given argument. More...
 
void addInputs (unsigned origInputNo, ArrayRef< Type > types)
 
void addInputs (ArrayRef< Type > types)
 
void remapInput (unsigned origInputNo, unsigned newInputNo, unsigned newInputCount=1)
 
void remapInput (unsigned origInputNo, Value replacement)
 

Detailed Description

This class provides all of the information necessary to convert a type signature.

Constructor & Destructor Documentation

◆ SignatureConversion()

mlir::TypeConverter::SignatureConversion::SignatureConversion ( unsigned  numOrigInputs)
inline

Member Function Documentation

◆ addInputs() [1/2]

void TypeConverter::SignatureConversion::addInputs ( unsigned  origInputNo,
ArrayRef< Type types 
)

Remap an input of the original signature with a new set of types. The new types are appended to the new signature conversion.

◆ addInputs() [2/2]

void TypeConverter::SignatureConversion::addInputs ( ArrayRef< Type types)

Append new input types to the signature conversion, this should only be used if the new types are not intended to remap an existing input.

◆ getConvertedTypes()

ArrayRef<Type> mlir::TypeConverter::SignatureConversion::getConvertedTypes ( ) const
inline

Return the argument types for the new signature.

◆ getInputMapping()

Optional<InputMapping> mlir::TypeConverter::SignatureConversion::getInputMapping ( unsigned  input) const
inline

Get the input mapping for the given argument.

◆ remapInput() [1/2]

void TypeConverter::SignatureConversion::remapInput ( unsigned  origInputNo,
unsigned  newInputNo,
unsigned  newInputCount = 1 
)

Remap an input of the original signature with a range of types in the new signature.

◆ remapInput() [2/2]

void TypeConverter::SignatureConversion::remapInput ( unsigned  origInputNo,
Value  replacementValue 
)

Remap an input of the original signature to another replacement value. This drops the original argument.

Remap an input of the original signature to another replacementValue value. This would make the signature converter drop this argument.


The documentation for this class was generated from the following files: