2013-12-10 18:30:08 +08:00
|
|
|
add_subdirectory(ChildTarget)
|
2012-03-13 16:33:15 +08:00
|
|
|
|
2013-12-10 19:13:32 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
CodeGen
|
|
|
|
Core
|
|
|
|
ExecutionEngine
|
|
|
|
IRReader
|
|
|
|
Instrumentation
|
|
|
|
Interpreter
|
2014-07-14 13:01:53 +08:00
|
|
|
MC
|
2013-12-10 19:13:32 +08:00
|
|
|
MCJIT
|
2014-07-14 13:01:53 +08:00
|
|
|
Object
|
[Orc] New JIT APIs.
This patch adds a new set of JIT APIs to LLVM. The aim of these new APIs is to
cleanly support a wider range of JIT use cases in LLVM, and encourage the
development and contribution of re-usable infrastructure for LLVM JIT use-cases.
These APIs are intended to live alongside the MCJIT APIs, and should not affect
existing clients.
Included in this patch:
1) New headers in include/llvm/ExecutionEngine/Orc that provide a set of
components for building JIT infrastructure.
Implementation code for these headers lives in lib/ExecutionEngine/Orc.
2) A prototype re-implementation of MCJIT (OrcMCJITReplacement) built out of the
new components.
3) Minor changes to RTDyldMemoryManager needed to support the new components.
These changes should not impact existing clients.
4) A new flag for lli, -use-orcmcjit, which will cause lli to use the
OrcMCJITReplacement class as its underlying execution engine, rather than
MCJIT itself.
Tests to follow shortly.
Special thanks to Michael Ilseman, Pete Cooper, David Blaikie, Eric Christopher,
Justin Bogner, and Jim Grosbach for extensive feedback and discussion.
llvm-svn: 226940
2015-01-24 05:25:00 +08:00
|
|
|
OrcJIT
|
2013-12-10 19:13:32 +08:00
|
|
|
SelectionDAG
|
|
|
|
Support
|
|
|
|
native
|
|
|
|
)
|
2010-09-14 07:59:48 +08:00
|
|
|
|
2012-03-13 16:33:15 +08:00
|
|
|
if( LLVM_USE_OPROFILE )
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_LINK_COMPONENTS}
|
|
|
|
OProfileJIT
|
|
|
|
)
|
|
|
|
endif( LLVM_USE_OPROFILE )
|
|
|
|
|
|
|
|
if( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_LINK_COMPONENTS}
|
2015-01-31 02:07:45 +08:00
|
|
|
DebugInfoDWARF
|
2012-03-13 16:33:15 +08:00
|
|
|
IntelJITEvents
|
2013-01-29 03:52:37 +08:00
|
|
|
Object
|
2012-03-13 16:33:15 +08:00
|
|
|
)
|
|
|
|
endif( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
|
2008-09-22 09:08:49 +08:00
|
|
|
add_llvm_tool(lli
|
|
|
|
lli.cpp
|
2013-10-04 08:49:38 +08:00
|
|
|
RemoteMemoryManager.cpp
|
2012-09-06 02:15:08 +08:00
|
|
|
RemoteTarget.cpp
|
2013-10-03 01:12:36 +08:00
|
|
|
RemoteTargetExternal.cpp
|
2008-09-22 09:08:49 +08:00
|
|
|
)
|
2013-12-05 09:01:58 +08:00
|
|
|
set_target_properties(lli PROPERTIES ENABLE_EXPORTS 1)
|