2004-06-28 08:31:26 +02:00
|
|
|
//===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
|
2005-04-21 22:19:05 +02:00
|
|
|
//
|
2004-06-28 08:31:26 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:59:42 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2005-04-21 22:19:05 +02:00
|
|
|
//
|
2004-06-28 08:31:26 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This header file defines prototypes for accessor functions that expose passes
|
|
|
|
// in the analysis libraries.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_ANALYSIS_PASSES_H
|
|
|
|
#define LLVM_ANALYSIS_PASSES_H
|
|
|
|
|
|
|
|
namespace llvm {
|
2005-01-08 23:01:16 +01:00
|
|
|
class FunctionPass;
|
|
|
|
class ImmutablePass;
|
2009-06-24 23:29:13 +02:00
|
|
|
class LoopPass;
|
2005-01-08 23:01:16 +01:00
|
|
|
class ModulePass;
|
2004-06-28 08:31:26 +02:00
|
|
|
class Pass;
|
2009-08-08 20:44:18 +02:00
|
|
|
class PassInfo;
|
2008-05-07 21:53:05 +02:00
|
|
|
class LibCallInfo;
|
2004-06-28 08:31:26 +02:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
2005-01-08 23:01:16 +01:00
|
|
|
// createGlobalsModRefPass - This pass provides alias and mod/ref info for
|
|
|
|
// global values that do not have their addresses taken.
|
2004-06-28 08:31:26 +02:00
|
|
|
//
|
|
|
|
Pass *createGlobalsModRefPass();
|
2005-01-08 23:01:16 +01:00
|
|
|
|
2006-11-14 06:21:04 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createAliasDebugger - This pass helps debug clients of AA
|
|
|
|
//
|
|
|
|
Pass *createAliasDebugger();
|
|
|
|
|
2005-01-08 23:01:16 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createAliasAnalysisCounterPass - This pass counts alias queries and how the
|
|
|
|
// alias analysis implementation responds.
|
|
|
|
//
|
|
|
|
ModulePass *createAliasAnalysisCounterPass();
|
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createAAEvalPass - This pass implements a simple N^2 alias analysis
|
|
|
|
// accuracy evaluator.
|
|
|
|
//
|
|
|
|
FunctionPass *createAAEvalPass();
|
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createNoAAPass - This pass implements a "I don't know" alias analysis.
|
|
|
|
//
|
|
|
|
ImmutablePass *createNoAAPass();
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2005-01-08 23:01:16 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createBasicAliasAnalysisPass - This pass implements the default alias
|
|
|
|
// analysis.
|
|
|
|
//
|
|
|
|
ImmutablePass *createBasicAliasAnalysisPass();
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2008-05-07 21:53:05 +02:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
|
|
|
|
/// about the semantics of a set of libcalls specified by LCI. The newly
|
|
|
|
/// constructed pass takes ownership of the pointer that is provided.
|
|
|
|
///
|
|
|
|
FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
|
|
|
|
|
2009-08-26 16:53:06 +02:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createScalarEvolutionAliasAnalysisPass - This pass implements a simple
|
|
|
|
// alias analysis using ScalarEvolution queries.
|
|
|
|
//
|
|
|
|
FunctionPass *createScalarEvolutionAliasAnalysisPass();
|
|
|
|
|
2005-01-08 23:01:16 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
2005-01-10 04:56:27 +01:00
|
|
|
// createProfileLoaderPass - This pass loads information from a profile dump
|
|
|
|
// file.
|
2005-01-08 23:01:16 +01:00
|
|
|
//
|
2005-01-10 04:56:27 +01:00
|
|
|
ModulePass *createProfileLoaderPass();
|
2009-12-03 12:00:37 +01:00
|
|
|
extern const PassInfo *ProfileLoaderPassID;
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2005-01-08 23:01:16 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createNoProfileInfoPass - This pass implements the default "no profile".
|
|
|
|
//
|
|
|
|
ImmutablePass *createNoProfileInfoPass();
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2009-08-08 20:44:18 +02:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createProfileEstimatorPass - This pass estimates profiling information
|
|
|
|
// instead of loading it from a previous run.
|
|
|
|
//
|
|
|
|
FunctionPass *createProfileEstimatorPass();
|
|
|
|
extern const PassInfo *ProfileEstimatorPassID;
|
|
|
|
|
2009-09-01 10:48:42 +02:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createProfileVerifierPass - This pass verifies profiling information.
|
|
|
|
//
|
|
|
|
FunctionPass *createProfileVerifierPass();
|
|
|
|
|
2005-01-09 21:42:52 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createDSAAPass - This pass implements simple context sensitive alias
|
|
|
|
// analysis.
|
|
|
|
//
|
|
|
|
ModulePass *createDSAAPass();
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2005-01-09 21:42:52 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createDSOptPass - This pass uses DSA to do a series of simple
|
|
|
|
// optimizations.
|
|
|
|
//
|
|
|
|
ModulePass *createDSOptPass();
|
2005-04-21 22:19:05 +02:00
|
|
|
|
2005-01-09 21:42:52 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createSteensgaardPass - This pass uses the data structure graphs to do a
|
|
|
|
// simple context insensitive alias analysis.
|
|
|
|
//
|
|
|
|
ModulePass *createSteensgaardPass();
|
2009-03-19 18:29:04 +01:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createLiveValuesPass - This creates an instance of the LiveValues pass.
|
|
|
|
//
|
|
|
|
FunctionPass *createLiveValuesPass();
|
2009-11-11 01:22:30 +01:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// createLazyValueInfoPass - This creates an instance of the LazyValueInfo
|
|
|
|
/// pass.
|
|
|
|
FunctionPass *createLazyValueInfoPass();
|
2009-06-24 23:29:13 +02:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// createLoopDependenceAnalysisPass - This creates an instance of the
|
|
|
|
// LoopDependenceAnalysis pass.
|
|
|
|
//
|
|
|
|
LoopPass *createLoopDependenceAnalysisPass();
|
2005-10-24 03:00:32 +02:00
|
|
|
|
|
|
|
// Minor pass prototypes, allowing us to expose them through bugpoint and
|
|
|
|
// analyze.
|
|
|
|
FunctionPass *createInstCountPass();
|
2008-12-16 10:09:19 +01:00
|
|
|
|
|
|
|
// print debug info intrinsics in human readable form
|
|
|
|
FunctionPass *createDbgInfoPrinterPass();
|
2010-05-07 18:22:32 +02:00
|
|
|
|
|
|
|
// Print module-level debug info metadata in human-readable form.
|
|
|
|
ModulePass *createModuleDebugInfoPrinterPass();
|
2004-06-28 08:31:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|