OSDN Git Service

Add target analysis passes to the codegen pipeline for MCJIT.
authorJuergen Ributzka <juergen@apple.com>
Thu, 23 Jan 2014 19:23:28 +0000 (19:23 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 23 Jan 2014 19:23:28 +0000 (19:23 +0000)
commit9ce88db75231063445de4800684a52b90a8a0ecc
tree8d6fd2030da8e8f4e96a061cfa95a4900b450216
parenta8aa6c3940852434edb967c47312a5d21c777ce9
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
include/llvm-c/ExecutionEngine.h
include/llvm-c/TargetMachine.h
include/llvm/ExecutionEngine/ExecutionEngine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/ExecutionEngine/ExecutionEngineBindings.cpp
lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/MCJIT/MCJIT.h
lib/LTO/LTOCodeGenerator.cpp
lib/Target/TargetMachineC.cpp
tools/llc/llc.cpp