14#ifndef MLIR_TRANSFORMS_PASSES_H
15#define MLIR_TRANSFORMS_PASSES_H
22#include "llvm/Support/Debug.h"
34#define GEN_PASS_DECL_BUBBLEDOWNMEMORYSPACECASTS
35#define GEN_PASS_DECL_CSEPASS
36#define GEN_PASS_DECL_CANONICALIZERPASS
37#define GEN_PASS_DECL_COMPOSITEFIXEDPOINTPASS
38#define GEN_PASS_DECL_CONTROLFLOWSINKPASS
39#define GEN_PASS_DECL_GENERATERUNTIMEVERIFICATIONPASS
40#define GEN_PASS_DECL_LOOPINVARIANTCODEMOTIONPASS
41#define GEN_PASS_DECL_LOOPINVARIANTSUBSETHOISTINGPASS
42#define GEN_PASS_DECL_INLINERPASS
43#define GEN_PASS_DECL_MEM2REG
44#define GEN_PASS_DECL_PRINTIRPASS
45#define GEN_PASS_DECL_PRINTOPSTATSPASS
46#define GEN_PASS_DECL_REMOVEDEADVALUESPASS
47#define GEN_PASS_DECL_SCCPPASS
48#define GEN_PASS_DECL_SROA
49#define GEN_PASS_DECL_STRIPDEBUGINFOPASS
50#define GEN_PASS_DECL_SYMBOLDCEPASS
51#define GEN_PASS_DECL_SYMBOLPRIVATIZEPASS
52#define GEN_PASS_DECL_TOPOLOGICALSORTPASS
53#include "mlir/Transforms/Passes.h.inc"
65 ArrayRef<std::string> disabledPatterns = {},
93 std::string name, llvm::function_ref<
void(
OpPassManager &)> populateFunc,
94 int maxIterations = 10);
101#define GEN_PASS_REGISTRATION
102#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)
Create composite pass, which runs provided set of passes until fixed point or maximum number of itera...
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.