MLIR  20.0.0git
Macros | Functions
PatternApplicator.cpp File Reference
#include "mlir/Rewrite/PatternApplicator.h"
#include "ByteCode.h"
#include "llvm/Support/Debug.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "pattern-application"
 

Functions

static void logImpossibleToMatch (const Pattern &pattern)
 Log a message for a pattern that is impossible to match. More...
 
static OperationgetDumpRootOp (Operation *op)
 Log IR after pattern application. More...
 
static void logSucessfulPatternApplication (Operation *op)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "pattern-application"

Definition at line 18 of file PatternApplicator.cpp.

Function Documentation

◆ getDumpRootOp()

static Operation* getDumpRootOp ( Operation op)
static

Log IR after pattern application.

Definition at line 42 of file PatternApplicator.cpp.

References mlir::Operation::getParentWithTrait().

Referenced by mlir::PatternApplicator::matchAndRewrite().

◆ logImpossibleToMatch()

static void logImpossibleToMatch ( const Pattern pattern)
static

Log a message for a pattern that is impossible to match.

Definition at line 35 of file PatternApplicator.cpp.

References mlir::Pattern::getRootKind().

Referenced by mlir::PatternApplicator::applyCostModel().

◆ logSucessfulPatternApplication()

static void logSucessfulPatternApplication ( Operation op)
static

Definition at line 49 of file PatternApplicator.cpp.

References mlir::Operation::dump().

Referenced by mlir::PatternApplicator::matchAndRewrite().