2014-04-21 08:08:50 +00:00
|
|
|
//===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is used as the registry of passes that are part of the core LLVM
|
|
|
|
// libraries. This file describes both transformation passes and analyses
|
|
|
|
// Analyses are registered while transformation passes have names registered
|
|
|
|
// that can be used when providing a textual pass pipeline.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// NOTE: NO INCLUDE GUARD DESIRED!
|
|
|
|
|
2014-04-21 08:20:10 +00:00
|
|
|
#ifndef MODULE_ANALYSIS
|
|
|
|
#define MODULE_ANALYSIS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
|
|
|
MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
|
2015-01-06 02:50:06 +00:00
|
|
|
MODULE_ANALYSIS("no-op-module", NoOpModuleAnalysis())
|
2014-04-21 08:20:10 +00:00
|
|
|
#undef MODULE_ANALYSIS
|
|
|
|
|
2014-04-21 08:08:50 +00:00
|
|
|
#ifndef MODULE_PASS
|
|
|
|
#define MODULE_PASS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
2015-01-06 09:06:35 +00:00
|
|
|
MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
|
2015-01-06 02:37:55 +00:00
|
|
|
MODULE_PASS("no-op-module", NoOpModulePass())
|
2014-04-21 08:08:50 +00:00
|
|
|
MODULE_PASS("print", PrintModulePass(dbgs()))
|
|
|
|
MODULE_PASS("print-cg", LazyCallGraphPrinterPass(dbgs()))
|
2015-01-05 00:08:53 +00:00
|
|
|
MODULE_PASS("verify", VerifierPass())
|
2014-04-21 08:08:50 +00:00
|
|
|
#undef MODULE_PASS
|
|
|
|
|
2014-04-21 11:12:00 +00:00
|
|
|
#ifndef CGSCC_ANALYSIS
|
|
|
|
#define CGSCC_ANALYSIS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
2015-01-06 02:50:06 +00:00
|
|
|
CGSCC_ANALYSIS("no-op-cgscc", NoOpCGSCCAnalysis())
|
2014-04-21 11:12:00 +00:00
|
|
|
#undef CGSCC_ANALYSIS
|
|
|
|
|
|
|
|
#ifndef CGSCC_PASS
|
|
|
|
#define CGSCC_PASS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
2015-01-06 09:06:35 +00:00
|
|
|
CGSCC_PASS("invalidate<all>", InvalidateAllAnalysesPass())
|
2015-01-06 02:37:55 +00:00
|
|
|
CGSCC_PASS("no-op-cgscc", NoOpCGSCCPass())
|
2014-04-21 11:12:00 +00:00
|
|
|
#undef CGSCC_PASS
|
|
|
|
|
2014-04-21 08:20:10 +00:00
|
|
|
#ifndef FUNCTION_ANALYSIS
|
|
|
|
#define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
2015-01-06 02:50:06 +00:00
|
|
|
FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
|
2014-04-21 08:20:10 +00:00
|
|
|
#undef FUNCTION_ANALYSIS
|
|
|
|
|
2014-04-21 08:08:50 +00:00
|
|
|
#ifndef FUNCTION_PASS
|
|
|
|
#define FUNCTION_PASS(NAME, CREATE_PASS)
|
|
|
|
#endif
|
2015-01-06 09:06:35 +00:00
|
|
|
FUNCTION_PASS("invalidate<all>", InvalidateAllAnalysesPass())
|
2015-01-06 02:37:55 +00:00
|
|
|
FUNCTION_PASS("no-op-function", NoOpFunctionPass())
|
2014-04-21 08:08:50 +00:00
|
|
|
FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
|
2015-01-05 00:08:53 +00:00
|
|
|
FUNCTION_PASS("verify", VerifierPass())
|
2014-04-21 08:08:50 +00:00
|
|
|
#undef FUNCTION_PASS
|