MLIR  20.0.0git
Namespaces | Macros | Functions
InlinerPass.cpp File Reference
#include "mlir/Transforms/Passes.h"
#include "mlir/Analysis/CallGraph.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Transforms/Inliner.h"
#include "mlir/Transforms/Passes.h.inc"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 

Macros

#define GEN_PASS_DEF_INLINER
 
#define DEBUG_TYPE   "inliner-pass"
 

Functions

static void defaultInlinerOptPipeline (OpPassManager &pm)
 This function implements the inliner optimization pipeline. More...
 
static bool isProfitableToInline (const Inliner::ResolvedCall &resolvedCall, unsigned inliningThreshold)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inliner-pass"

Definition at line 27 of file InlinerPass.cpp.

◆ GEN_PASS_DEF_INLINER

#define GEN_PASS_DEF_INLINER

Definition at line 23 of file InlinerPass.cpp.

Function Documentation

◆ defaultInlinerOptPipeline()

static void defaultInlinerOptPipeline ( OpPassManager pm)
static

This function implements the inliner optimization pipeline.

Definition at line 32 of file InlinerPass.cpp.

References mlir::OpPassManager::addPass(), and mlir::createCanonicalizerPass().

Referenced by mlir::createInlinerPass().

◆ isProfitableToInline()

static bool isProfitableToInline ( const Inliner::ResolvedCall resolvedCall,
unsigned  inliningThreshold 
)
static