mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Add initialization routines for VMCore.
llvm-svn: 115963
This commit is contained in:
parent
58f141db94
commit
c49384836e
@ -22,6 +22,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void LLVMInitializeCore(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||
|
@ -19,6 +19,10 @@ namespace llvm {
|
||||
|
||||
class PassRegistry;
|
||||
|
||||
/// initializeCore - Initialize all passes linked into the
|
||||
/// TransformUtils library.
|
||||
void initializeCore(PassRegistry&);
|
||||
|
||||
/// initializeTransformUtils - Initialize all passes linked into the
|
||||
/// TransformUtils library.
|
||||
void initializeTransformUtils(PassRegistry&);
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements the C bindings for libLLVMCore.a, which implements
|
||||
// the LLVM intermediate representation.
|
||||
// This file implements the common infrastructure (including the C bindings)
|
||||
// for libLLVMCore.a, which implements the LLVM intermediate representation.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@ -34,6 +34,18 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
void llvm::initializeCore(PassRegistry &Registry) {
|
||||
initializeDominatorTreePass(Registry);
|
||||
initializeDominanceFrontierPass(Registry);
|
||||
initializePrintModulePassPass(Registry);
|
||||
initializePrintFunctionPassPass(Registry);
|
||||
initializeVerifierPass(Registry);
|
||||
initializePreVerifierPass(Registry);
|
||||
}
|
||||
|
||||
void LLVMInitializeCore(LLVMPassRegistryRef R) {
|
||||
initializeCore(*unwrap(R));
|
||||
}
|
||||
|
||||
/*===-- Error handling ----------------------------------------------------===*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user