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:
Nick Lewycky 2009-04-12 20:47:23 +00:00
parent 6cc055af1d
commit 109af6232b
5 changed files with 1159 additions and 1 deletions

View File

@ -1,6 +1,7 @@
add_subdirectory(BrainF)
add_subdirectory(Fibonacci)
add_subdirectory(HowToUseJIT)
add_subdirectory(Kaleidoscope)
add_subdirectory(ModuleMaker)
include(CheckIncludeFile)

View File

@ -0,0 +1,5 @@
set(LLVM_LINK_COMPONENTS core jit native)
add_llvm_example(Kaleidoscope
toy.cpp
)

View 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

File diff suppressed because it is too large Load Diff

View File

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