MLIR
20.0.0git
|
Generic adaptor around the root op of this pattern using the converted operands. More...
#include "mlir/Transforms/OneToNTypeConversion.h"
Public Types | |
using | RangeT = ArrayRef< ValueRange > |
using | BaseT = typename SourceOp::template GenericAdaptor< RangeT > |
using | Properties = typename SourceOp::template InferredProperties< SourceOp > |
Public Member Functions | |
OpAdaptor (const OneToNTypeMapping *operandMapping, const OneToNTypeMapping *resultMapping, const ValueRange *convertedOperands, RangeT values, SourceOp op) | |
const OneToNTypeMapping & | getOperandMapping () const |
Get the type mapping of the original operands to the converted operands. More... | |
const OneToNTypeMapping & | getResultMapping () const |
Get the type mapping of the original results to the converted results. More... | |
ValueRange | getFlatOperands () const |
Get a flat range of all converted operands. More... | |
Generic adaptor around the root op of this pattern using the converted operands.
Importantly, each operand is represented as a range of values, namely the N values each original operand gets converted to. Concretely, this makes the result type of the accessor functions of the adaptor class be a ValueRange
.
Definition at line 183 of file OneToNTypeConversion.h.
using mlir::OneToNOpConversionPattern< SourceOp >::OpAdaptor::BaseT = typename SourceOp::template GenericAdaptor<RangeT> |
Definition at line 187 of file OneToNTypeConversion.h.
using mlir::OneToNOpConversionPattern< SourceOp >::OpAdaptor::Properties = typename SourceOp::template InferredProperties<SourceOp> |
Definition at line 188 of file OneToNTypeConversion.h.
using mlir::OneToNOpConversionPattern< SourceOp >::OpAdaptor::RangeT = ArrayRef<ValueRange> |
Definition at line 186 of file OneToNTypeConversion.h.
|
inline |
Definition at line 190 of file OneToNTypeConversion.h.
|
inline |
Get a flat range of all converted operands.
Unlike getOperands
, which returns an ArrayRef
with one ValueRange
for each original operand, this function returns a ValueRange
that contains all converted operands irrespectively of which operand they originated from.
Definition at line 208 of file OneToNTypeConversion.h.
|
inline |
Get the type mapping of the original operands to the converted operands.
Definition at line 197 of file OneToNTypeConversion.h.
|
inline |
Get the type mapping of the original results to the converted results.
Definition at line 202 of file OneToNTypeConversion.h.