2 #include "llvm/Support/DebugLog.h"
4 #define DEBUG_TYPE "pattern-logging-listener"
10 LDBG() << patternName <<
" | notifyOperationInserted"
17 LDBG() << patternName <<
" | notifyOperationModified"
24 LDBG() << patternName <<
" | notifyOperationReplaced (with op)"
31 LDBG() << patternName <<
" | notifyOperationReplaced (with values)"
38 LDBG() << patternName <<
" | notifyOperationErased"
45 LDBG() << patternName <<
" | notifyPatternBegin"
This class represents a saved insertion point.
Operation is the basic unit of execution within MLIR.
OperationName getName()
The name of an operation is the key identifier for it.
This class contains all of the data related to a pattern, but does not contain any methods or logic f...
This class provides an abstraction over the different types of ranges over Values.
Include the generated interface declarations.
void notifyOperationInserted(Operation *op, InsertPoint previous) override
Notify the listener that the specified operation was inserted.
void notifyOperationModified(Operation *op) override
Notify the listener that the specified operation was modified in-place.
void notifyPatternBegin(const Pattern &pattern, Operation *op) override
Notify the listener that the specified pattern is about to be applied at the specified root operation...
void notifyOperationReplaced(Operation *op, Operation *newOp) override
Notify the listener that all uses of the specified operation's results are about to be replaced with ...
void notifyOperationErased(Operation *op) override
Notify the listener that the specified operation is about to be erased.
void notifyOperationModified(Operation *op) override
Notify the listener that the specified operation was modified in-place.
void notifyOperationErased(Operation *op) override
Notify the listener that the specified operation is about to be erased.
void notifyOperationReplaced(Operation *op, Operation *newOp) override
Notify the listener that all uses of the specified operation's results are about to be replaced with ...
void notifyOperationInserted(Operation *op, InsertPoint previous) override
Notify the listener that the specified operation was inserted.
void notifyPatternBegin(const Pattern &pattern, Operation *op) override
Notify the listener that the specified pattern is about to be applied at the specified root operation...