Add Kaleidoscope to examples/ so that it gets built regularly and we'll notice
if an API change causes it to be out of date. The code is copied out of LangImpl7.html. llvm-svn: 68912
This commit is contained in:
parent
6cc055af1d
commit
109af6232b
@ -1,6 +1,7 @@
|
||||
add_subdirectory(BrainF)
|
||||
add_subdirectory(Fibonacci)
|
||||
add_subdirectory(HowToUseJIT)
|
||||
add_subdirectory(Kaleidoscope)
|
||||
add_subdirectory(ModuleMaker)
|
||||
|
||||
include(CheckIncludeFile)
|
||||
|
||||
5
llvm/examples/Kaleidoscope/CMakeLists.txt
Normal file
5
llvm/examples/Kaleidoscope/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
set(LLVM_LINK_COMPONENTS core jit native)
|
||||
|
||||
add_llvm_example(Kaleidoscope
|
||||
toy.cpp
|
||||
)
|
||||
15
llvm/examples/Kaleidoscope/Makefile
Normal file
15
llvm/examples/Kaleidoscope/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
##===- examples/Kaleidoscope/Makefile ----------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../..
|
||||
TOOLNAME = Kaleidoscope
|
||||
EXAMPLE_TOOL = 1
|
||||
|
||||
LINK_COMPONENTS := core jit native
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
1137
llvm/examples/Kaleidoscope/toy.cpp
Normal file
1137
llvm/examples/Kaleidoscope/toy.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@ LEVEL=..
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
|
||||
PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT ModuleMaker
|
||||
PARALLEL_DIRS:= BrainF Fibonacci HowToUseJIT Kaleidoscope ModuleMaker
|
||||
|
||||
ifeq ($(HAVE_PTHREAD),1)
|
||||
PARALLEL_DIRS += ParallelJIT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user