mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 06:30:39 +00:00
Add CMake build support for Orc examples (& fix some clang -Werror build
breaks due to unused variables). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b7e0983d80
commit
b1ffebbbdb
@ -13,3 +13,4 @@ add_subdirectory(Chapter5)
|
||||
add_subdirectory(Chapter6)
|
||||
add_subdirectory(Chapter7)
|
||||
add_subdirectory(Chapter8)
|
||||
add_subdirectory(Orc)
|
||||
|
3
examples/Kaleidoscope/Orc/CMakeLists.txt
Normal file
3
examples/Kaleidoscope/Orc/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
add_subdirectory(initial)
|
||||
add_subdirectory(lazy_codegen)
|
||||
add_subdirectory(lazy_irgen)
|
11
examples/Kaleidoscope/Orc/initial/CMakeLists.txt
Normal file
11
examples/Kaleidoscope/Orc/initial/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
ExecutionEngine
|
||||
MCJIT
|
||||
Support
|
||||
native
|
||||
)
|
||||
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Orc-initial
|
||||
toy.cpp
|
||||
)
|
@ -1,3 +1,4 @@
|
||||
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
#include "llvm/ExecutionEngine/Orc/CompileUtils.h"
|
||||
#include "llvm/ExecutionEngine/Orc/IRCompileLayer.h"
|
||||
@ -1294,7 +1295,6 @@ int main() {
|
||||
InitializeNativeTarget();
|
||||
InitializeNativeTargetAsmPrinter();
|
||||
InitializeNativeTargetAsmParser();
|
||||
LLVMContext &Context = getGlobalContext();
|
||||
|
||||
// Install standard binary operators.
|
||||
// 1 is lowest precedence.
|
||||
|
11
examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt
Normal file
11
examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
ExecutionEngine
|
||||
MCJIT
|
||||
Support
|
||||
native
|
||||
)
|
||||
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_codegen
|
||||
toy.cpp
|
||||
)
|
@ -1297,7 +1297,6 @@ int main() {
|
||||
InitializeNativeTarget();
|
||||
InitializeNativeTargetAsmPrinter();
|
||||
InitializeNativeTargetAsmParser();
|
||||
LLVMContext &Context = getGlobalContext();
|
||||
|
||||
// Install standard binary operators.
|
||||
// 1 is lowest precedence.
|
||||
|
11
examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt
Normal file
11
examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
ExecutionEngine
|
||||
MCJIT
|
||||
Support
|
||||
native
|
||||
)
|
||||
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_irgen
|
||||
toy.cpp
|
||||
)
|
@ -1316,7 +1316,6 @@ int main() {
|
||||
InitializeNativeTarget();
|
||||
InitializeNativeTargetAsmPrinter();
|
||||
InitializeNativeTargetAsmParser();
|
||||
LLVMContext &Context = getGlobalContext();
|
||||
|
||||
// Install standard binary operators.
|
||||
// 1 is lowest precedence.
|
||||
|
Loading…
Reference in New Issue
Block a user