aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm-c/TargetMachine.h
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-01-23 19:23:28 +0000
committerJuergen Ributzka <juergen@apple.com>2014-01-23 19:23:28 +0000
commit5fe955cb757410c9eee7d2455cf147cc59dbf3c9 (patch)
tree49f289e9a246a5e7a5cb1cdff0956a391a8cde1a /llvm/include/llvm-c/TargetMachine.h
parent5d31f6945b21fb462cdcbc08b7c0656281a23835 (diff)
downloadllvm-5fe955cb757410c9eee7d2455cf147cc59dbf3c9.zip
llvm-5fe955cb757410c9eee7d2455cf147cc59dbf3c9.tar.gz
llvm-5fe955cb757410c9eee7d2455cf147cc59dbf3c9.tar.bz2
Add target analysis passes to the codegen pipeline for MCJIT.
This patch adds the target analysis passes (usually TargetTransformInfo) to the codgen pipeline. We also expose now the AddAnalysisPasses method through the C API, because the optimizer passes would also benefit from better target-specific cost models. Reviewed by Andrew Kaylor llvm-svn: 199926
Diffstat (limited to 'llvm/include/llvm-c/TargetMachine.h')
-rw-r--r--llvm/include/llvm-c/TargetMachine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/TargetMachine.h b/llvm/include/llvm-c/TargetMachine.h
index 46de054..d4993e7 100644
--- a/llvm/include/llvm-c/TargetMachine.h
+++ b/llvm/include/llvm-c/TargetMachine.h
@@ -137,6 +137,9 @@ LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleR
disposed with LLVMDisposeMessage. */
char* LLVMGetDefaultTargetTriple(void);
+/** Adds the target-specific analysis passes to the pass manager. */
+void LLVMAddAnalysisPasses(LLVMTargetMachineRef T, LLVMPassManagerRef PM);
+
#ifdef __cplusplus
}
#endif