MLIR 23.0.0git
Passes.h File Reference
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "mlir/Transforms/LocationSnapshot.h"
#include "mlir/Transforms/ViewOpGraph.h"
#include "llvm/Support/Debug.h"
#include <limits>
#include <memory>
#include "mlir/Transforms/Passes.h.inc"

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.

Macros

#define GEN_PASS_DECL_BUBBLEDOWNMEMORYSPACECASTS
#define GEN_PASS_DECL_CSEPASS
#define GEN_PASS_DECL_CANONICALIZERPASS
#define GEN_PASS_DECL_COMPOSITEFIXEDPOINTPASS
#define GEN_PASS_DECL_CONTROLFLOWSINKPASS
#define GEN_PASS_DECL_GENERATERUNTIMEVERIFICATIONPASS
#define GEN_PASS_DECL_LOOPINVARIANTCODEMOTIONPASS
#define GEN_PASS_DECL_LOOPINVARIANTSUBSETHOISTINGPASS
#define GEN_PASS_DECL_INLINERPASS
#define GEN_PASS_DECL_MEM2REG
#define GEN_PASS_DECL_PRINTIRPASS
#define GEN_PASS_DECL_PRINTOPSTATSPASS
#define GEN_PASS_DECL_REMOVEDEADVALUESPASS
#define GEN_PASS_DECL_SCCPPASS
#define GEN_PASS_DECL_SROA
#define GEN_PASS_DECL_STRIPDEBUGINFOPASS
#define GEN_PASS_DECL_SYMBOLDCEPASS
#define GEN_PASS_DECL_SYMBOLPRIVATIZEPASS
#define GEN_PASS_DECL_TOPOLOGICALSORTPASS
#define GEN_PASS_REGISTRATION
 Generate the code for registering passes.

Functions

std::unique_ptr< Passmlir::createCanonicalizerPass (const GreedyRewriteConfig &config, ArrayRef< std::string > disabledPatterns={}, ArrayRef< std::string > enabledPatterns={})
 Creates an instance of the Canonicalizer pass with the specified config.
std::unique_ptr< Passmlir::createInlinerPass (llvm::StringMap< OpPassManager > opPipelines)
 Creates an instance of the inliner pass, and use the provided pass managers when optimizing callable operations with names matching the key type.
std::unique_ptr< Passmlir::createInlinerPass (llvm::StringMap< OpPassManager > opPipelines, std::function< void(OpPassManager &)> defaultPipelineBuilder)
 Creates an instance of the inliner pass, and use the provided pass managers when optimizing callable operations with names matching the key type.
std::unique_ptr< Passmlir::createPrintOpStatsPass (raw_ostream &os)
 Creates a pass which prints the list of ops and the number of occurrences in the module.
std::unique_ptr< Passmlir::createPrintOpStatsPass (raw_ostream &os, bool printAsJSON)
 Creates a pass which prints the list of ops and the number of occurrences in the module with the output format option.
std::unique_ptr< Passmlir::createCompositeFixedPointPass (std::string name, llvm::function_ref< void(OpPassManager &)> populateFunc, int maxIterations=10)
 Create composite pass, which runs provided set of passes until fixed point or maximum number of iterations reached.

Macro Definition Documentation

◆ GEN_PASS_DECL_BUBBLEDOWNMEMORYSPACECASTS

#define GEN_PASS_DECL_BUBBLEDOWNMEMORYSPACECASTS

Definition at line 34 of file Passes.h.

◆ GEN_PASS_DECL_CANONICALIZERPASS

#define GEN_PASS_DECL_CANONICALIZERPASS

Definition at line 36 of file Passes.h.

◆ GEN_PASS_DECL_COMPOSITEFIXEDPOINTPASS

#define GEN_PASS_DECL_COMPOSITEFIXEDPOINTPASS

Definition at line 37 of file Passes.h.

◆ GEN_PASS_DECL_CONTROLFLOWSINKPASS

#define GEN_PASS_DECL_CONTROLFLOWSINKPASS

Definition at line 38 of file Passes.h.

◆ GEN_PASS_DECL_CSEPASS

#define GEN_PASS_DECL_CSEPASS

Definition at line 35 of file Passes.h.

◆ GEN_PASS_DECL_GENERATERUNTIMEVERIFICATIONPASS

#define GEN_PASS_DECL_GENERATERUNTIMEVERIFICATIONPASS

Definition at line 39 of file Passes.h.

◆ GEN_PASS_DECL_INLINERPASS

#define GEN_PASS_DECL_INLINERPASS

Definition at line 42 of file Passes.h.

◆ GEN_PASS_DECL_LOOPINVARIANTCODEMOTIONPASS

#define GEN_PASS_DECL_LOOPINVARIANTCODEMOTIONPASS

Definition at line 40 of file Passes.h.

◆ GEN_PASS_DECL_LOOPINVARIANTSUBSETHOISTINGPASS

#define GEN_PASS_DECL_LOOPINVARIANTSUBSETHOISTINGPASS

Definition at line 41 of file Passes.h.

◆ GEN_PASS_DECL_MEM2REG

#define GEN_PASS_DECL_MEM2REG

Definition at line 43 of file Passes.h.

◆ GEN_PASS_DECL_PRINTIRPASS

#define GEN_PASS_DECL_PRINTIRPASS

Definition at line 44 of file Passes.h.

◆ GEN_PASS_DECL_PRINTOPSTATSPASS

#define GEN_PASS_DECL_PRINTOPSTATSPASS

Definition at line 45 of file Passes.h.

◆ GEN_PASS_DECL_REMOVEDEADVALUESPASS

#define GEN_PASS_DECL_REMOVEDEADVALUESPASS

Definition at line 46 of file Passes.h.

◆ GEN_PASS_DECL_SCCPPASS

#define GEN_PASS_DECL_SCCPPASS

Definition at line 47 of file Passes.h.

◆ GEN_PASS_DECL_SROA

#define GEN_PASS_DECL_SROA

Definition at line 48 of file Passes.h.

◆ GEN_PASS_DECL_STRIPDEBUGINFOPASS

#define GEN_PASS_DECL_STRIPDEBUGINFOPASS

Definition at line 49 of file Passes.h.

◆ GEN_PASS_DECL_SYMBOLDCEPASS

#define GEN_PASS_DECL_SYMBOLDCEPASS

Definition at line 50 of file Passes.h.

◆ GEN_PASS_DECL_SYMBOLPRIVATIZEPASS

#define GEN_PASS_DECL_SYMBOLPRIVATIZEPASS

Definition at line 51 of file Passes.h.

◆ GEN_PASS_DECL_TOPOLOGICALSORTPASS

#define GEN_PASS_DECL_TOPOLOGICALSORTPASS

Definition at line 52 of file Passes.h.

◆ GEN_PASS_REGISTRATION

#define GEN_PASS_REGISTRATION

Generate the code for registering passes.

Definition at line 101 of file Passes.h.