MLIR  16.0.0git
Classes | Namespaces | Functions
GreedyPatternRewriteDriver.h File Reference
#include "mlir/Rewrite/FrozenRewritePatternSet.h"
+ Include dependency graph for GreedyPatternRewriteDriver.h:

Go to the source code of this file.

Classes

class  mlir::GreedyRewriteConfig
 This class allows control over how the GreedyPatternRewriteDriver works. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 

Functions

LogicalResult mlir::applyPatternsAndFoldGreedily (MutableArrayRef< Region > regions, const FrozenRewritePatternSet &patterns, GreedyRewriteConfig config=GreedyRewriteConfig())
 Rewrite the regions of the specified operation, which must be isolated from above, by repeatedly applying the highest benefit patterns in a greedy work-list driven manner. More...
 
LogicalResult mlir::applyPatternsAndFoldGreedily (Operation *op, const FrozenRewritePatternSet &patterns, GreedyRewriteConfig config=GreedyRewriteConfig())
 Rewrite the given regions, which must be isolated from above. More...
 
LogicalResult mlir::applyOpPatternsAndFold (Operation *op, const FrozenRewritePatternSet &patterns, bool *erased=nullptr)
 Applies the specified patterns on op alone while also trying to fold it, by selecting the highest benefits patterns in a greedy manner. More...
 
bool mlir::applyOpPatternsAndFold (ArrayRef< Operation *> ops, const FrozenRewritePatternSet &patterns, bool strict)
 Applies the specified rewrite patterns on ops while also trying to fold these ops as well as any other ops that were in turn created due to such rewrites. More...