mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Add initialization routines for Analysis and IPA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115946 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b17830980
commit
861f4c38de
@ -25,6 +25,8 @@ extern "C" {
|
||||
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPA(LLVMPassRegistryRef R);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -30,6 +30,12 @@ void initializeScalarOpts(PassRegistry&);
|
||||
/// initializeIPO - Initialize all passes linked into the IPO library.
|
||||
void initializeIPO(PassRegistry&);
|
||||
|
||||
/// initializeAnalysis - Initialize all passes linked into the Analysis library.
|
||||
void initializeAnalysis(PassRegistry&);
|
||||
|
||||
/// initializeIPA - Initialize all passes linked into the IPA library.
|
||||
void initializeIPA(PassRegistry&);
|
||||
|
||||
void initializeAAEvalPass(PassRegistry&);
|
||||
void initializeADCEPass(PassRegistry&);
|
||||
void initializeAliasAnalysisAnalysisGroup(PassRegistry&);
|
||||
|
@ -8,11 +8,67 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm-c/Analysis.h"
|
||||
#include "llvm/InitializePasses.h"
|
||||
#include "llvm/Analysis/Verifier.h"
|
||||
#include <cstring>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
/// initializeAnalysis - Initialize all passes linked into the Analysis library.
|
||||
void llvm::initializeAnalysis(PassRegistry &Registry) {
|
||||
initializeAliasAnalysisAnalysisGroup(Registry);
|
||||
initializeAliasAnalysisCounterPass(Registry);
|
||||
initializeAAEvalPass(Registry);
|
||||
initializeAliasDebuggerPass(Registry);
|
||||
initializeAliasSetPrinterPass(Registry);
|
||||
initializeNoAAPass(Registry);
|
||||
initializeBasicAliasAnalysisPass(Registry);
|
||||
initializeCFGViewerPass(Registry);
|
||||
initializeCFGPrinterPass(Registry);
|
||||
initializeCFGOnlyViewerPass(Registry);
|
||||
initializeCFGOnlyPrinterPass(Registry);
|
||||
initializePrintDbgInfoPass(Registry);
|
||||
initializeDomViewerPass(Registry);
|
||||
initializeDomPrinterPass(Registry);
|
||||
initializeDomOnlyViewerPass(Registry);
|
||||
initializePostDomViewerPass(Registry);
|
||||
initializeDomOnlyPrinterPass(Registry);
|
||||
initializePostDomPrinterPass(Registry);
|
||||
initializePostDomOnlyViewerPass(Registry);
|
||||
initializePostDomOnlyPrinterPass(Registry);
|
||||
initializeIVUsersPass(Registry);
|
||||
initializeInstCountPass(Registry);
|
||||
initializeIntervalPartitionPass(Registry);
|
||||
initializeLazyValueInfoPass(Registry);
|
||||
initializeLibCallAliasAnalysisPass(Registry);
|
||||
initializeLintPass(Registry);
|
||||
initializeLiveValuesPass(Registry);
|
||||
initializeLoopDependenceAnalysisPass(Registry);
|
||||
initializeLoopInfoPass(Registry);
|
||||
initializeMemDepPrinterPass(Registry);
|
||||
initializeMemoryDependenceAnalysisPass(Registry);
|
||||
initializeModuleDebugInfoPrinterPass(Registry);
|
||||
initializePostDominatorTreePass(Registry);
|
||||
initializePostDominanceFrontierPass(Registry);
|
||||
initializeProfileEstimatorPassPass(Registry);
|
||||
initializeNoProfileInfoPass(Registry);
|
||||
initializeProfileInfoAnalysisGroup(Registry);
|
||||
initializeLoaderPassPass(Registry);
|
||||
initializeProfileVerifierPassPass(Registry);
|
||||
initializeRegionInfoPass(Registry);
|
||||
initializeRegionViewerPass(Registry);
|
||||
initializeRegionPrinterPass(Registry);
|
||||
initializeRegionOnlyViewerPass(Registry);
|
||||
initializeRegionOnlyPrinterPass(Registry);
|
||||
initializeScalarEvolutionPass(Registry);
|
||||
initializeScalarEvolutionAliasAnalysisPass(Registry);
|
||||
initializeTypeBasedAliasAnalysisPass(Registry);
|
||||
}
|
||||
|
||||
void LLVMInitializeAnalysis(LLVMPassRegistryRef R) {
|
||||
initializeAnalysis(*unwrap(R));
|
||||
}
|
||||
|
||||
LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
|
||||
char **OutMessages) {
|
||||
std::string Messages;
|
||||
|
@ -3,4 +3,5 @@ add_llvm_library(LLVMipa
|
||||
CallGraphSCCPass.cpp
|
||||
FindUsedTypes.cpp
|
||||
GlobalsModRef.cpp
|
||||
IPA.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user