mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
Add initialization routines for Target.
llvm-svn: 115957
This commit is contained in:
parent
7f38b44415
commit
26a89851fe
@ -28,6 +28,7 @@ void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPA(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeCodeGen(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeTarget(LLVMPassRegistryRef R);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -39,6 +39,9 @@ void initializeIPA(PassRegistry&);
|
||||
/// initializeCodeGen - Initialize all passes linked into the CodeGen library.
|
||||
void initializeCodeGen(PassRegistry&);
|
||||
|
||||
/// initializeCodeGen - Initialize all passes linked into the CodeGen library.
|
||||
void initializeTarget(PassRegistry&);
|
||||
|
||||
void initializeAAEvalPass(PassRegistry&);
|
||||
void initializeADCEPass(PassRegistry&);
|
||||
void initializeAliasAnalysisAnalysisGroup(PassRegistry&);
|
||||
|
@ -7,12 +7,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements the C bindings for libLLVMTarget.a, which implements
|
||||
// target information.
|
||||
// This file implements the core infrastructure (including C bindings) for
|
||||
// libLLVMTarget.a, which implements target information.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm-c/Target.h"
|
||||
#include "llvm-c/Initialization.h"
|
||||
#include "llvm/InitializePasses.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/LLVMContext.h"
|
||||
@ -20,6 +22,14 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
void llvm::initializeTarget(PassRegistry &Registry) {
|
||||
initializeTargetDataPass(Registry);
|
||||
}
|
||||
|
||||
void LLVMInitializeTarget(LLVMPassRegistryRef R) {
|
||||
initializeTarget(*unwrap(R));
|
||||
}
|
||||
|
||||
LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep) {
|
||||
return wrap(new TargetData(StringRep));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user