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:
David Blaikie 2015-02-08 07:20:04 +00:00
parent b7e0983d80
commit b1ffebbbdb
8 changed files with 38 additions and 3 deletions

View File

@ -13,3 +13,4 @@ add_subdirectory(Chapter5)
add_subdirectory(Chapter6)
add_subdirectory(Chapter7)
add_subdirectory(Chapter8)
add_subdirectory(Orc)

View File

@ -0,0 +1,3 @@
add_subdirectory(initial)
add_subdirectory(lazy_codegen)
add_subdirectory(lazy_irgen)

View File

@ -0,0 +1,11 @@
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
MCJIT
Support
native
)
add_kaleidoscope_chapter(Kaleidoscope-Orc-initial
toy.cpp
)

View File

@ -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.

View File

@ -0,0 +1,11 @@
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
MCJIT
Support
native
)
add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_codegen
toy.cpp
)

View File

@ -1297,7 +1297,6 @@ int main() {
InitializeNativeTarget();
InitializeNativeTargetAsmPrinter();
InitializeNativeTargetAsmParser();
LLVMContext &Context = getGlobalContext();
// Install standard binary operators.
// 1 is lowest precedence.

View File

@ -0,0 +1,11 @@
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
MCJIT
Support
native
)
add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_irgen
toy.cpp
)

View File

@ -1316,7 +1316,6 @@ int main() {
InitializeNativeTarget();
InitializeNativeTargetAsmPrinter();
InitializeNativeTargetAsmParser();
LLVMContext &Context = getGlobalContext();
// Install standard binary operators.
// 1 is lowest precedence.