mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-17 15:10:07 +00:00

Ported DA to the new PM by splitting the former DependenceAnalysis Pass into a DependenceInfo result type and DependenceAnalysisWrapperPass type and adding a new PM-style DependenceAnalysis analysis pass returning the DependenceInfo. Patch by Philip Pfaffe, most of the review by Justin. Differential Revision: http://reviews.llvm.org/D18834 llvm-svn: 269370
102 lines
3.3 KiB
C++
102 lines
3.3 KiB
C++
//===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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 {
|
|
class FunctionPass;
|
|
class ImmutablePass;
|
|
class LoopPass;
|
|
class ModulePass;
|
|
class Pass;
|
|
class PassInfo;
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createObjCARCAAWrapperPass - This pass implements ObjC-ARC-based
|
|
// alias analysis.
|
|
//
|
|
ImmutablePass *createObjCARCAAWrapperPass();
|
|
|
|
FunctionPass *createPAEvalPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
/// createLazyValueInfoPass - This creates an instance of the LazyValueInfo
|
|
/// pass.
|
|
FunctionPass *createLazyValueInfoPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createDependenceAnalysisWrapperPass - This creates an instance of the
|
|
// DependenceAnalysisWrapper pass.
|
|
//
|
|
FunctionPass *createDependenceAnalysisWrapperPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createCostModelAnalysisPass - This creates an instance of the
|
|
// CostModelAnalysis pass.
|
|
//
|
|
FunctionPass *createCostModelAnalysisPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createDelinearizationPass - This pass implements attempts to restore
|
|
// multidimensional array indices from linearized expressions.
|
|
//
|
|
FunctionPass *createDelinearizationPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createDivergenceAnalysisPass - This pass determines which branches in a GPU
|
|
// program are divergent.
|
|
//
|
|
FunctionPass *createDivergenceAnalysisPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// Minor pass prototypes, allowing us to expose them through bugpoint and
|
|
// analyze.
|
|
FunctionPass *createInstCountPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createRegionInfoPass - This pass finds all single entry single exit regions
|
|
// in a function and builds the region hierarchy.
|
|
//
|
|
FunctionPass *createRegionInfoPass();
|
|
|
|
// Print module-level debug info metadata in human-readable form.
|
|
ModulePass *createModuleDebugInfoPrinterPass();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createMemDepPrinter - This pass exhaustively collects all memdep
|
|
// information and prints it with -analyze.
|
|
//
|
|
FunctionPass *createMemDepPrinter();
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
//
|
|
// createMemDerefPrinter - This pass collects memory dereferenceability
|
|
// information and prints it with -analyze.
|
|
//
|
|
FunctionPass *createMemDerefPrinter();
|
|
|
|
}
|
|
|
|
#endif
|