1 //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source 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
24 //===--------------------------------------------------------------------===//
26 // createGlobalsModRefPass - This pass provides alias and mod/ref info for
27 // global values that do not have their addresses taken.
29 Pass *createGlobalsModRefPass();
31 //===--------------------------------------------------------------------===//
33 // createAliasDebugger - This pass helps debug clients of AA
35 Pass *createAliasDebugger();
37 //===--------------------------------------------------------------------===//
39 // createAliasAnalysisCounterPass - This pass counts alias queries and how the
40 // alias analysis implementation responds.
42 ModulePass *createAliasAnalysisCounterPass();
44 //===--------------------------------------------------------------------===//
46 // createAAEvalPass - This pass implements a simple N^2 alias analysis
47 // accuracy evaluator.
49 FunctionPass *createAAEvalPass();
51 //===--------------------------------------------------------------------===//
53 // createNoAAPass - This pass implements a "I don't know" alias analysis.
55 ImmutablePass *createNoAAPass();
57 //===--------------------------------------------------------------------===//
59 // createBasicAliasAnalysisPass - This pass implements the default alias
62 ImmutablePass *createBasicAliasAnalysisPass();
64 //===--------------------------------------------------------------------===//
66 // createAndersensPass - This pass implements Andersen's interprocedural alias
69 ModulePass *createAndersensPass();
71 //===--------------------------------------------------------------------===//
73 // createBasicVNPass - This pass walks SSA def-use chains to trivially
74 // identify lexically identical expressions.
76 ImmutablePass *createBasicVNPass();
78 //===--------------------------------------------------------------------===//
80 // createProfileLoaderPass - This pass loads information from a profile dump
83 ModulePass *createProfileLoaderPass();
85 //===--------------------------------------------------------------------===//
87 // createNoProfileInfoPass - This pass implements the default "no profile".
89 ImmutablePass *createNoProfileInfoPass();
91 //===--------------------------------------------------------------------===//
93 // createDSAAPass - This pass implements simple context sensitive alias
96 ModulePass *createDSAAPass();
98 //===--------------------------------------------------------------------===//
100 // createDSOptPass - This pass uses DSA to do a series of simple
103 ModulePass *createDSOptPass();
105 //===--------------------------------------------------------------------===//
107 // createSteensgaardPass - This pass uses the data structure graphs to do a
108 // simple context insensitive alias analysis.
110 ModulePass *createSteensgaardPass();
112 // Minor pass prototypes, allowing us to expose them through bugpoint and
114 FunctionPass *createInstCountPass();