MLIR
18.0.0git
|
Local mapping between values defined by a specific op implementing the TransformOpInterface and the payload IR ops they correspond to. More...
#include "mlir/Dialect/Transform/IR/TransformInterfaces.h"
Public Member Functions | |
template<typename Range > | |
void | set (OpResult value, Range &&ops) |
Indicates that the result of the transform IR op at the given position corresponds to the given list of payload IR ops. More... | |
void | set (OpResult value, std::initializer_list< Operation * > ops) |
Indicates that the result of the transform IR op at the given position corresponds to the given list of payload IR ops. More... | |
void | setParams (OpResult value, ArrayRef< TransformState::Param > params) |
Indicates that the result of the transform IR op at the given position corresponds to the given list of parameters. More... | |
template<typename Range > | |
void | setValues (OpResult handle, Range &&values) |
Indicates that the result of the transform IR op at the given position corresponds to the given range of payload IR values. More... | |
void | setValues (OpResult handle, std::initializer_list< Value > values) |
Indicates that the result of the transform IR op at the given position corresponds to the given range of payload IR values. More... | |
void | setMappedValues (OpResult handle, ArrayRef< MappedValue > values) |
Indicates that the result of the transform IR op at the given position corresponds to the given range of mapped values. More... | |
void | setRemainingToEmpty (TransformOpInterface transform) |
Sets the currently unset results to empty lists of the kind expected by the corresponding results of the given transform op. More... | |
Friends | |
class | TransformState |
Local mapping between values defined by a specific op implementing the TransformOpInterface and the payload IR ops they correspond to.
Definition at line 798 of file TransformInterfaces.h.
|
inline |
Indicates that the result of the transform IR op at the given position corresponds to the given list of payload IR ops.
Each result must be set by the transformation exactly once in case of transformation succeeding. The value must have a type implementing TransformHandleTypeInterface.
Definition at line 807 of file TransformInterfaces.h.
References mlir::OpResult::getResultNumber().
Referenced by applyTilingToAll(), set(), and mlir::transform::detail::setApplyToOneResults().
|
inline |
Indicates that the result of the transform IR op at the given position corresponds to the given list of payload IR ops.
Each result must be set by the transformation exactly once in case of transformation succeeding. The value must have a type implementing TransformHandleTypeInterface.
Definition at line 823 of file TransformInterfaces.h.
References set().
void transform::TransformResults::setMappedValues | ( | OpResult | handle, |
ArrayRef< MappedValue > | values | ||
) |
Indicates that the result of the transform IR op at the given position corresponds to the given range of mapped values.
All mapped values are expected to be compatible with the type of the result, e.g., if the result is an operation handle, all mapped values are expected to be payload operations.
Definition at line 1104 of file TransformInterfaces.cpp.
References diag(), dispatchMappedValues(), and mlir::success().
void transform::TransformResults::setParams | ( | OpResult | value, |
ArrayRef< TransformState::Param > | params | ||
) |
Indicates that the result of the transform IR op at the given position corresponds to the given list of parameters.
Each result must be set by the transformation exactly once in case of transformation succeeding. The value must have a type implementing TransformParamTypeInterface.
Definition at line 1091 of file TransformInterfaces.cpp.
References mlir::OpResult::getResultNumber().
Referenced by mlir::transform::detail::setApplyToOneResults().
void transform::TransformResults::setRemainingToEmpty | ( | TransformOpInterface | transform | ) |
Sets the currently unset results to empty lists of the kind expected by the corresponding results of the given transform
op.
Definition at line 1125 of file TransformInterfaces.cpp.
|
inline |
Indicates that the result of the transform IR op at the given position corresponds to the given range of payload IR values.
Each result must be set by the transformation exactly once in case of transformation succeeding. The value must have a type implementing TransformValueHandleTypeInterface.
Definition at line 839 of file TransformInterfaces.h.
References mlir::OpResult::getResultNumber().
Referenced by mlir::transform::detail::setApplyToOneResults(), and setValues().
|
inline |
Indicates that the result of the transform IR op at the given position corresponds to the given range of payload IR values.
Each result must be set by the transformation exactly once in case of transformation succeeding. The value must have a type implementing TransformValueHandleTypeInterface.
Definition at line 856 of file TransformInterfaces.h.
References setValues().
|
friend |
Definition at line 799 of file TransformInterfaces.h.