Adding target specific passes.
This commit is contained in:
parent
bcc467b2b5
commit
3b399f9d8b
5 changed files with 149 additions and 3 deletions
26
llvm/extra.h
26
llvm/extra.h
|
|
@ -54,6 +54,23 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Wraps new TargetTransformInfo(
|
||||
* TargetMachine::getScalarTargetTransformInfo,
|
||||
* TargetMachine::getVectorTargetTransformInfo)
|
||||
*/
|
||||
LLVMPassRef LLVMCreateTargetTransformInfo(LLVMTargetMachineRef tmref);
|
||||
|
||||
/*
|
||||
* Wraps new TargetLibraryInfo
|
||||
*/
|
||||
LLVMPassRef LLVMCreateTargetLibraryInfo(const char * triple);
|
||||
|
||||
/*
|
||||
* Wraps llvm::getDefaultTargetTriple
|
||||
*/
|
||||
const char * LLVMDefaultTargetTriple();
|
||||
|
||||
/*
|
||||
* Wraps Pass::lookupPassInfo and PassInfo::createPass
|
||||
*/
|
||||
|
|
@ -74,6 +91,11 @@ const char * LLVMGetPassName(LLVMPassRef passref);
|
|||
*/
|
||||
void LLVMAddPass(LLVMPassManagerRef pmref, LLVMPassRef passref);
|
||||
|
||||
/*
|
||||
* Wraps Pass::dump
|
||||
*/
|
||||
void LLVMPassDump(LLVMPassRef passref);
|
||||
|
||||
/*
|
||||
* Wraps llvm:InlineAsm::get
|
||||
*/
|
||||
|
|
@ -176,6 +198,10 @@ LLVMTargetMachineRef LLVMTargetMachineLookup(const char *arch, const char *cpu,
|
|||
const char *features, int opt,
|
||||
std::string &error);
|
||||
|
||||
LLVMTargetMachineRef LLVMCreateTargetMachine(const char *arch, const char *cpu,
|
||||
const char *features, int opt,
|
||||
std::string &error);
|
||||
|
||||
/*
|
||||
* Wraps EngineBuilder::selectTarget
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue