[llvm] r228520 - Add CMake build support for Orc examples (& fix some clang -Werror build

David Blaikie dblaikie at gmail.com
Sat Feb 7 23:20:04 PST 2015


Author: dblaikie
Date: Sun Feb  8 01:20:04 2015
New Revision: 228520

URL: http://llvm.org/viewvc/llvm-project?rev=228520&view=rev
Log:
Add CMake build support for Orc examples (& fix some clang -Werror build
breaks due to unused variables).

Added:
    llvm/trunk/examples/Kaleidoscope/Orc/CMakeLists.txt
    llvm/trunk/examples/Kaleidoscope/Orc/initial/CMakeLists.txt
    llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt
    llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt
Modified:
    llvm/trunk/examples/Kaleidoscope/CMakeLists.txt
    llvm/trunk/examples/Kaleidoscope/Orc/initial/toy.cpp
    llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
    llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp

Modified: llvm/trunk/examples/Kaleidoscope/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/CMakeLists.txt?rev=228520&r1=228519&r2=228520&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/CMakeLists.txt (original)
+++ llvm/trunk/examples/Kaleidoscope/CMakeLists.txt Sun Feb  8 01:20:04 2015
@@ -13,3 +13,4 @@ add_subdirectory(Chapter5)
 add_subdirectory(Chapter6)
 add_subdirectory(Chapter7)
 add_subdirectory(Chapter8)
+add_subdirectory(Orc)

Added: llvm/trunk/examples/Kaleidoscope/Orc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/CMakeLists.txt?rev=228520&view=auto
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/CMakeLists.txt (added)
+++ llvm/trunk/examples/Kaleidoscope/Orc/CMakeLists.txt Sun Feb  8 01:20:04 2015
@@ -0,0 +1,3 @@
+add_subdirectory(initial)
+add_subdirectory(lazy_codegen)
+add_subdirectory(lazy_irgen)

Added: llvm/trunk/examples/Kaleidoscope/Orc/initial/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/initial/CMakeLists.txt?rev=228520&view=auto
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/initial/CMakeLists.txt (added)
+++ llvm/trunk/examples/Kaleidoscope/Orc/initial/CMakeLists.txt Sun Feb  8 01:20:04 2015
@@ -0,0 +1,11 @@
+set(LLVM_LINK_COMPONENTS
+  Core
+  ExecutionEngine
+  MCJIT
+  Support
+  native
+  )
+
+add_kaleidoscope_chapter(Kaleidoscope-Orc-initial
+  toy.cpp
+  )

Modified: llvm/trunk/examples/Kaleidoscope/Orc/initial/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/initial/toy.cpp?rev=228520&r1=228519&r2=228520&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/initial/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/initial/toy.cpp Sun Feb  8 01:20:04 2015
@@ -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.

Added: llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt?rev=228520&view=auto
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt (added)
+++ llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/CMakeLists.txt Sun Feb  8 01:20:04 2015
@@ -0,0 +1,11 @@
+set(LLVM_LINK_COMPONENTS
+  Core
+  ExecutionEngine
+  MCJIT
+  Support
+  native
+  )
+
+add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_codegen
+  toy.cpp
+  )

Modified: llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp?rev=228520&r1=228519&r2=228520&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp Sun Feb  8 01:20:04 2015
@@ -1297,7 +1297,6 @@ int main() {
   InitializeNativeTarget();
   InitializeNativeTargetAsmPrinter();
   InitializeNativeTargetAsmParser();
-  LLVMContext &Context = getGlobalContext();
 
   // Install standard binary operators.
   // 1 is lowest precedence.

Added: llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt?rev=228520&view=auto
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt (added)
+++ llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/CMakeLists.txt Sun Feb  8 01:20:04 2015
@@ -0,0 +1,11 @@
+set(LLVM_LINK_COMPONENTS
+  Core
+  ExecutionEngine
+  MCJIT
+  Support
+  native
+  )
+
+add_kaleidoscope_chapter(Kaleidoscope-Orc-lazy_irgen
+  toy.cpp
+  )

Modified: llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp?rev=228520&r1=228519&r2=228520&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp Sun Feb  8 01:20:04 2015
@@ -1316,7 +1316,6 @@ int main() {
   InitializeNativeTarget();
   InitializeNativeTargetAsmPrinter();
   InitializeNativeTargetAsmParser();
-  LLVMContext &Context = getGlobalContext();
 
   // Install standard binary operators.
   // 1 is lowest precedence.





More information about the llvm-commits mailing list