14 #ifndef MLIR_REWRITE_PATTERNAPPLICATOR_H 15 #define MLIR_REWRITE_PATTERNAPPLICATOR_H 20 class PatternRewriter;
23 class PDLByteCodeMutableState;
75 std::unique_ptr<detail::PDLByteCodeMutableState> mutableByteCodeState;
80 #endif // MLIR_REWRITE_PATTERNAPPLICATOR_H Include the generated interface declarations.
A special type of RewriterBase that coordinates the application of a rewrite pattern on the current I...
Operation is a basic unit of execution within MLIR.
This class represents a frozen set of patterns that can be processed by a pattern applicator...
This class contains all of the data related to a pattern, but does not contain any methods or logic f...
This class represents an efficient way to signal success or failure.
void applyDefaultCostModel()
Apply the default cost model that solely uses the pattern's static benefit.
void walk(Operation *op, function_ref< void(Region *)> callback, WalkOrder order)
Walk all of the regions, blocks, or operations nested under (and including) the given operation...
This class manages the application of a group of rewrite patterns, with a user-provided cost model...
PatternBenefit getBenefit() const
Return the benefit (the inverse of "cost") of matching this pattern.