MLIR
20.0.0git
|
Options used to control tile + fuse. More...
#include "mlir/Dialect/SCF/Transforms/TileUsingInterface.h"
Classes | |
struct | ControlFnResult |
Control function to check if a slice needs to be fused or not, The control function receives 1) the slice along which fusion is to be done, 2) the producer value that is to be fused 3) a boolean value set to true if the fusion is from a destination operand. More... | |
Public Types | |
using | ControlFnTy = std::function< std::optional< ControlFnResult >(tensor::ExtractSliceOp candidateSliceOp, OpResult originalProducer, bool isDestinationOperand)> |
Public Member Functions | |
SCFTileAndFuseOptions & | setTilingOptions (SCFTilingOptions options) |
SCFTileAndFuseOptions & | setFusionControlFn (ControlFnTy controlFn) |
Public Attributes | |
SCFTilingOptions | tilingOptions |
The tiling options used to control the tiling of the consumer. More... | |
ControlFnTy | fusionControlFn |
The default control function implements greedy fusion without yielding a replacement for any of the fused results. More... | |
std::optional< FrozenRewritePatternSet > | cleanupPatterns = std::nullopt |
An optional set of rewrite patterns to apply to the results of tiling before fusion. More... | |
Options used to control tile + fuse.
Definition at line 157 of file TileUsingInterface.h.
using mlir::scf::SCFTileAndFuseOptions::ControlFnTy = std::function<std::optional<ControlFnResult>( tensor::ExtractSliceOp candidateSliceOp, OpResult originalProducer, bool isDestinationOperand)> |
Definition at line 179 of file TileUsingInterface.h.
|
inline |
Definition at line 188 of file TileUsingInterface.h.
References fusionControlFn.
|
inline |
Definition at line 160 of file TileUsingInterface.h.
References options, and tilingOptions.
std::optional<FrozenRewritePatternSet> mlir::scf::SCFTileAndFuseOptions::cleanupPatterns = std::nullopt |
An optional set of rewrite patterns to apply to the results of tiling before fusion.
This will track deleted and newly inserted tensor.extract_slice
ops and update the worklist.
Definition at line 196 of file TileUsingInterface.h.
ControlFnTy mlir::scf::SCFTileAndFuseOptions::fusionControlFn |
The default control function implements greedy fusion without yielding a replacement for any of the fused results.
Definition at line 184 of file TileUsingInterface.h.
Referenced by setFusionControlFn().
SCFTilingOptions mlir::scf::SCFTileAndFuseOptions::tilingOptions |
The tiling options used to control the tiling of the consumer.
Definition at line 159 of file TileUsingInterface.h.
Referenced by setTilingOptions().