llvm.org GIT mirror llvm / daf05fe
[gn build] Add some llvm/tools: lli, lli-child-target Also add build files for dependencies llvm/lib/ExecutionEngine/{Interpreter,Orc} Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56193 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350226 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
5 changed file(s) with 89 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66 "//lld/test",
77 "//llvm/tools/bugpoint",
88 "//llvm/tools/dsymutil",
9 "//llvm/tools/lli",
10 "//llvm/tools/lli/ChildTarget:lli-child-target",
911 "//llvm/tools/llvm-c-test",
1012 "//llvm/tools/llvm-cfi-verify",
1113 "//llvm/tools/llvm-cov",
0 static_library("Interpreter") {
1 output_name = "LLVMInterpreter"
2 deps = [
3 "//llvm/include/llvm/Config:config",
4 "//llvm/lib/CodeGen",
5 "//llvm/lib/ExecutionEngine",
6 "//llvm/lib/IR",
7 "//llvm/lib/Support",
8 ]
9 sources = [
10 "Execution.cpp",
11 "ExternalFunctions.cpp",
12 "Interpreter.cpp",
13 ]
14 }
0 static_library("Orc") {
1 output_name = "LLVMOrcJIT"
2 deps = [
3 "//llvm/lib/ExecutionEngine",
4 "//llvm/lib/ExecutionEngine/RuntimeDyld",
5 "//llvm/lib/IR",
6 "//llvm/lib/Object",
7 "//llvm/lib/Support",
8 "//llvm/lib/Transforms/Utils",
9 ]
10 sources = [
11 "CompileOnDemandLayer.cpp",
12 "Core.cpp",
13 "ExecutionUtils.cpp",
14 "IRCompileLayer.cpp",
15 "IRTransformLayer.cpp",
16 "IndirectionUtils.cpp",
17 "JITTargetMachineBuilder.cpp",
18 "LLJIT.cpp",
19 "Layer.cpp",
20 "LazyReexports.cpp",
21 "Legacy.cpp",
22 "NullResolver.cpp",
23 "ObjectTransformLayer.cpp",
24 "OrcABISupport.cpp",
25 "OrcCBindings.cpp",
26 "OrcError.cpp",
27 "OrcMCJITReplacement.cpp",
28 "RPCUtils.cpp",
29 "RTDyldObjectLinkingLayer.cpp",
30 "ThreadSafeModule.cpp",
31 ]
32 }
0 executable("lli") {
1 deps = [
2 "//llvm/include/llvm/Config:llvm-config",
3 "//llvm/lib/AsmParser",
4 "//llvm/lib/Bitcode/Reader",
5 "//llvm/lib/CodeGen",
6 "//llvm/lib/CodeGen/SelectionDAG",
7 "//llvm/lib/ExecutionEngine",
8 "//llvm/lib/ExecutionEngine/Interpreter",
9 "//llvm/lib/ExecutionEngine/MCJIT",
10 "//llvm/lib/ExecutionEngine/Orc",
11 "//llvm/lib/ExecutionEngine/RuntimeDyld",
12 "//llvm/lib/IR",
13 "//llvm/lib/IRReader",
14 "//llvm/lib/MC",
15 "//llvm/lib/Support",
16 "//llvm/lib/Target",
17 "//llvm/lib/Target:NativeTarget",
18 "//llvm/lib/Transforms/Instrumentation",
19 "//llvm/lib/Transforms/Utils",
20 ]
21 sources = [
22 "lli.cpp",
23 ]
24 if (host_os == "linux") {
25 # Corresponds to export_executable_symbols() in cmake.
26 ldflags = [ "-rdynamic" ]
27 }
28 }
0 executable("lli-child-target") {
1 deps = [
2 "//llvm/lib/ExecutionEngine/Orc",
3 "//llvm/lib/ExecutionEngine/RuntimeDyld",
4 "//llvm/lib/Support",
5 ]
6 sources = [
7 "ChildTarget.cpp",
8 ]
9 }