mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user