My Project
|
#include <DialectConversion.h>
Classes | |
struct | InputMapping |
Public Member Functions | |
SignatureConversion (unsigned numOrigInputs) | |
ArrayRef< Type > | getConvertedTypes () const |
Return the argument types for the new signature. More... | |
Optional< InputMapping > | getInputMapping (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) |
This class provides all of the information necessary to convert a type signature.
|
inline |
Remap an input of the original signature with a new set of types. The new types are appended to the new signature conversion.
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.
Return the argument types for the new signature.
|
inline |
Get the input mapping for the given argument.
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.
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.