1 //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This header file defines prototypes for accessor functions that expose passes
11 // in the analysis libraries.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_ANALYSIS_PASSES_H
16 #define LLVM_ANALYSIS_PASSES_H
26 //===--------------------------------------------------------------------===//
28 // createGlobalsModRefPass - This pass provides alias and mod/ref info for
29 // global values that do not have their addresses taken.
31 Pass *createGlobalsModRefPass();
33 //===--------------------------------------------------------------------===//
35 // createAliasDebugger - This pass helps debug clients of AA
37 Pass *createAliasDebugger();
39 //===--------------------------------------------------------------------===//
41 // createAliasAnalysisCounterPass - This pass counts alias queries and how the
42 // alias analysis implementation responds.
44 ModulePass *createAliasAnalysisCounterPass();
46 //===--------------------------------------------------------------------===//
48 // createAAEvalPass - This pass implements a simple N^2 alias analysis
49 // accuracy evaluator.
51 FunctionPass *createAAEvalPass();
53 //===--------------------------------------------------------------------===//
55 // createNoAAPass - This pass implements a "I don't know" alias analysis.
57 ImmutablePass *createNoAAPass();
59 //===--------------------------------------------------------------------===//
61 // createBasicAliasAnalysisPass - This pass implements the default alias
64 ImmutablePass *createBasicAliasAnalysisPass();
66 //===--------------------------------------------------------------------===//
68 /// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
69 /// about the semantics of a set of libcalls specified by LCI. The newly
70 /// constructed pass takes ownership of the pointer that is provided.
72 FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
74 //===--------------------------------------------------------------------===//
76 // createAndersensPass - This pass implements Andersen's interprocedural alias
79 ModulePass *createAndersensPass();
81 //===--------------------------------------------------------------------===//
83 // createProfileLoaderPass - This pass loads information from a profile dump
86 ModulePass *createProfileLoaderPass();
88 //===--------------------------------------------------------------------===//
90 // createNoProfileInfoPass - This pass implements the default "no profile".
92 ImmutablePass *createNoProfileInfoPass();
94 //===--------------------------------------------------------------------===//
96 // createDSAAPass - This pass implements simple context sensitive alias
99 ModulePass *createDSAAPass();
101 //===--------------------------------------------------------------------===//
103 // createDSOptPass - This pass uses DSA to do a series of simple
106 ModulePass *createDSOptPass();
108 //===--------------------------------------------------------------------===//
110 // createSteensgaardPass - This pass uses the data structure graphs to do a
111 // simple context insensitive alias analysis.
113 ModulePass *createSteensgaardPass();
115 //===--------------------------------------------------------------------===//
117 // createLiveValuesPass - This creates an instance of the LiveValues pass.
119 FunctionPass *createLiveValuesPass();
121 //===--------------------------------------------------------------------===//
123 // createLoopDependenceAnalysisPass - This creates an instance of the
124 // LoopDependenceAnalysis pass.
126 LoopPass *createLoopDependenceAnalysisPass();
128 // Minor pass prototypes, allowing us to expose them through bugpoint and
130 FunctionPass *createInstCountPass();
132 // print debug info intrinsics in human readable form
133 FunctionPass *createDbgInfoPrinterPass();