mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-14 06:37:33 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de9b4c4a7f
commit
9f85634bd2
examples
@ -1,6 +1,7 @@
|
||||
add_subdirectory(BrainF)
|
||||
add_subdirectory(Fibonacci)
|
||||
add_subdirectory(HowToUseJIT)
|
||||
add_subdirectory(Kaleidoscope)
|
||||
add_subdirectory(ModuleMaker)
|
||||
|
||||
include(CheckIncludeFile)
|
||||
|
5
examples/Kaleidoscope/CMakeLists.txt
Normal file
5
examples/Kaleidoscope/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
set(LLVM_LINK_COMPONENTS core jit native)
|
||||
|
||||
add_llvm_example(Kaleidoscope
|
||||
toy.cpp
|
||||
)
|
15
examples/Kaleidoscope/Makefile
Normal file
15
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
examples/Kaleidoscope/toy.cpp
Normal file
1137
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