diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-01-23 19:23:28 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-01-23 19:23:28 +0000 |
commit | 9ce88db75231063445de4800684a52b90a8a0ecc (patch) | |
tree | 8d6fd2030da8e8f4e96a061cfa95a4900b450216 /include/llvm | |
parent | a8aa6c3940852434edb967c47312a5d21c777ce9 (diff) | |
download | llvm-9ce88db75231063445de4800684a52b90a8a0ecc.tar.gz llvm-9ce88db75231063445de4800684a52b90a8a0ecc.tar.bz2 llvm-9ce88db75231063445de4800684a52b90a8a0ecc.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 199cf8deb8..e228f202e7 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -462,6 +462,9 @@ public: llvm_unreachable("No support for an object cache"); } + /// Return the target machine (if available). + virtual TargetMachine *getTargetMachine() { return NULL; } + /// DisableLazyCompilation - When lazy compilation is off (the default), the /// JIT will eagerly compile every function reachable from the argument to /// getPointerToFunction. If lazy compilation is turned on, the JIT will only |