MLIR  19.0.0git
Public Member Functions | Friends | List of all members
mlir::transform::TransformResults Class Reference

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/Interfaces/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
 

Detailed Description

Local mapping between values defined by a specific op implementing the TransformOpInterface and the payload IR ops they correspond to.

Definition at line 812 of file TransformInterfaces.h.

Member Function Documentation

◆ set() [1/2]

template<typename Range >
void mlir::transform::TransformResults::set ( OpResult  value,
Range &&  ops 
)
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 821 of file TransformInterfaces.h.

References mlir::OpResult::getResultNumber().

Referenced by applyTilingToAll(), set(), and mlir::transform::detail::setApplyToOneResults().

◆ set() [2/2]

void mlir::transform::TransformResults::set ( OpResult  value,
std::initializer_list< Operation * >  ops 
)
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 837 of file TransformInterfaces.h.

References set().

◆ setMappedValues()

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 1113 of file TransformInterfaces.cpp.

References diag(), dispatchMappedValues(), and mlir::success().

◆ setParams()

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 1100 of file TransformInterfaces.cpp.

References mlir::OpResult::getResultNumber().

Referenced by mlir::transform::detail::setApplyToOneResults().

◆ setRemainingToEmpty()

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 1134 of file TransformInterfaces.cpp.

◆ setValues() [1/2]

template<typename Range >
void mlir::transform::TransformResults::setValues ( OpResult  handle,
Range &&  values 
)
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 853 of file TransformInterfaces.h.

References mlir::OpResult::getResultNumber().

Referenced by mlir::transform::detail::setApplyToOneResults(), and setValues().

◆ setValues() [2/2]

void mlir::transform::TransformResults::setValues ( OpResult  handle,
std::initializer_list< Value values 
)
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 870 of file TransformInterfaces.h.

References setValues().

Friends And Related Function Documentation

◆ TransformState

friend class TransformState
friend

Definition at line 813 of file TransformInterfaces.h.


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