forked from OSchip/llvm-project
Add CMake build support for Orc examples (& fix some clang -Werror build
breaks due to unused variables). llvm-svn: 228520
This commit is contained in:
parent
dac276ecaf
commit
c38e5245c5
|
@ -13,3 +13,4 @@ add_subdirectory(Chapter5)
|
|||
add_subdirectory(Chapter6)
|
||||
add_subdirectory(Chapter7)
|
||||
add_subdirectory(Chapter8)
|
||||
add_subdirectory(Orc)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
add_subdirectory(initial)
|
||||
add_subdirectory(lazy_codegen)
|
||||
add_subdirectory(lazy_irgen)
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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