14#ifndef MLIR_TRANSFORMS_PASSES_H
15#define MLIR_TRANSFORMS_PASSES_H
23#include "llvm/Support/Debug.h"
35#define GEN_PASS_DECL_BUBBLEDOWNMEMORYSPACECASTS
36#define GEN_PASS_DECL_CSEPASS
37#define GEN_PASS_DECL_TRIVIALDEADCODEELIMINATIONPASS
38#define GEN_PASS_DECL_CANONICALIZERPASS
39#define GEN_PASS_DECL_COMPOSITEFIXEDPOINTPASS
40#define GEN_PASS_DECL_CONTROLFLOWSINKPASS
41#define GEN_PASS_DECL_GENERATERUNTIMEVERIFICATIONPASS
42#define GEN_PASS_DECL_LOOPINVARIANTCODEMOTIONPASS
43#define GEN_PASS_DECL_LOOPINVARIANTSUBSETHOISTINGPASS
44#define GEN_PASS_DECL_INLINERPASS
45#define GEN_PASS_DECL_MEM2REG
46#define GEN_PASS_DECL_PRINTIRPASS
47#define GEN_PASS_DECL_PRINTOPSTATSPASS
48#define GEN_PASS_DECL_REMOVEDEADVALUESPASS
49#define GEN_PASS_DECL_SCCPPASS
50#define GEN_PASS_DECL_SROA
51#define GEN_PASS_DECL_STRIPDEBUGINFOPASS
52#define GEN_PASS_DECL_SYMBOLDCEPASS
53#define GEN_PASS_DECL_SYMBOLPRIVATIZEPASS
54#define GEN_PASS_DECL_TOPOLOGICALSORTPASS
55#include "mlir/Transforms/Passes.h.inc"
67 ArrayRef<std::string> disabledPatterns = {},
95 std::string name, llvm::function_ref<
void(
OpPassManager &)> populateFunc,
96 int maxIterations = 10,
105#define GEN_PASS_REGISTRATION
106#include "mlir/Transforms/Passes.h.inc"
This class allows control over how the GreedyPatternRewriteDriver works.
This class represents a pass manager that runs passes on either a specific operation type,...
Include the generated interface declarations.
std::unique_ptr< Pass > createInlinerPass(llvm::StringMap< OpPassManager > opPipelines)
Creates an instance of the inliner pass, and use the provided pass managers when optimizing callable ...
std::unique_ptr< Pass > 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< Pass > createCompositeFixedPointPass(std::string name, llvm::function_ref< void(OpPassManager &)> populateFunc, int maxIterations=10, ConvergenceFailureAction convergenceFailureAction=ConvergenceFailureAction::Warn)
Create composite pass, which runs provided set of passes until fixed point or maximum number of itera...
ConvergenceFailureAction
Action to take when CompositeFixedPointPass fails to converge within its configured maximum number of...
std::unique_ptr< Pass > createPrintOpStatsPass(raw_ostream &os)
Creates a pass which prints the list of ops and the number of occurrences in the module.