From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 19:34:23 +0000 Subject: Vendor import of llvm trunk r161861: http://llvm.org/svn/llvm-project/llvm/trunk@161861 --- docs/tutorial/LangImpl1.html | 4 ++-- docs/tutorial/LangImpl2.html | 4 ++-- docs/tutorial/LangImpl3.html | 6 +++--- docs/tutorial/LangImpl4.html | 13 ++++++------- docs/tutorial/LangImpl5.html | 6 +++--- docs/tutorial/LangImpl6.html | 8 ++++---- docs/tutorial/LangImpl7.html | 6 +++--- docs/tutorial/LangImpl8.html | 6 +++--- docs/tutorial/Makefile | 30 ------------------------------ docs/tutorial/OCamlLangImpl1.html | 4 ++-- docs/tutorial/OCamlLangImpl2.html | 4 ++-- docs/tutorial/OCamlLangImpl3.html | 4 ++-- docs/tutorial/OCamlLangImpl4.html | 11 +++++------ docs/tutorial/OCamlLangImpl5.html | 4 ++-- docs/tutorial/OCamlLangImpl6.html | 6 +++--- docs/tutorial/OCamlLangImpl7.html | 4 ++-- docs/tutorial/OCamlLangImpl8.html | 4 ++-- docs/tutorial/index.html | 2 +- 18 files changed, 47 insertions(+), 79 deletions(-) delete mode 100644 docs/tutorial/Makefile (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl1.html b/docs/tutorial/LangImpl1.html index 22a2b12..717454f 100644 --- a/docs/tutorial/LangImpl1.html +++ b/docs/tutorial/LangImpl1.html @@ -6,7 +6,7 @@ Kaleidoscope: Tutorial Introduction and the Lexer - + @@ -342,7 +342,7 @@ so that you can use the lexer and parser together. Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index e4707b3..694f734 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing a Parser and AST - + @@ -1225,7 +1225,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 9647b43..1390153 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing code generation to LLVM IR - + @@ -685,10 +685,10 @@ clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy // See example below. #include "llvm/DerivedTypes.h" +#include "llvm/IRBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Analysis/Verifier.h" -#include "llvm/Support/IRBuilder.h" #include <cstdio> #include <string> #include <map> @@ -1262,7 +1262,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-06-29 14:38:19 +0200 (Fri, 29 Jun 2012) $ diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 06a8a13..3f8d4a4 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -6,7 +6,7 @@ Kaleidoscope: Adding JIT and Optimizer Support - + @@ -253,10 +253,9 @@ add instruction from every execution of this function.

LLVM provides a wide variety of optimizations that can be used in certain circumstances. Some documentation about the various passes is available, but it isn't very complete. Another good source of -ideas can come from looking at the passes that llvm-gcc or -llvm-ld run to get started. The "opt" tool allows you to -experiment with passes from the command line, so you can see if they do -anything.

+ideas can come from looking at the passes that Clang runs to get +started. The "opt" tool allows you to experiment with passes from the +command line, so you can see if they do anything.

Now that we have reasonable code coming out of our front-end, lets talk about executing it!

@@ -518,6 +517,7 @@ at runtime.

#include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" +#include "llvm/IRBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" @@ -525,7 +525,6 @@ at runtime.

#include "llvm/Analysis/Passes.h" #include "llvm/Target/TargetData.h" #include "llvm/Transforms/Scalar.h" -#include "llvm/Support/IRBuilder.h" #include "llvm/Support/TargetSelect.h" #include <cstdio> #include <string> @@ -1147,7 +1146,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-06-29 14:38:19 +0200 (Fri, 29 Jun 2012) $ diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 0164ca3..a7a3737 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: Control Flow - + @@ -895,6 +895,7 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" +#include "llvm/IRBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" @@ -902,7 +903,6 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 #include "llvm/Analysis/Passes.h" #include "llvm/Target/TargetData.h" #include "llvm/Transforms/Scalar.h" -#include "llvm/Support/IRBuilder.h" #include "llvm/Support/TargetSelect.h" #include <cstdio> #include <string> @@ -1766,7 +1766,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-06-29 14:38:19 +0200 (Fri, 29 Jun 2012) $ diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 4fcf109..1128893 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: User-defined Operators - + @@ -636,7 +636,7 @@ def mandelhelp(xmin xmax xstep ymin ymax ystep) : putchard(10) ) -# mandel - This is a convenient helper function for ploting the mandelbrot set +# mandel - This is a convenient helper function for plotting the mandelbrot set # from the specified position with the specified Magnification. def mandel(realstart imagstart realmag imagmag) mandelhelp(realstart, realstart+realmag*78, realmag, @@ -834,6 +834,7 @@ library, although doing that will cause problems on Windows.

#include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" +#include "llvm/IRBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" @@ -841,7 +842,6 @@ library, although doing that will cause problems on Windows.

#include "llvm/Analysis/Passes.h" #include "llvm/Target/TargetData.h" #include "llvm/Transforms/Scalar.h" -#include "llvm/Support/IRBuilder.h" #include "llvm/Support/TargetSelect.h" #include <cstdio> #include <string> @@ -1823,7 +1823,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-07-31 09:05:57 +0200 (Tue, 31 Jul 2012) $ diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index ebf6514..f1fe404 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -7,7 +7,7 @@ construction - + @@ -1002,6 +1002,7 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" +#include "llvm/IRBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" @@ -1009,7 +1010,6 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 #include "llvm/Analysis/Passes.h" #include "llvm/Target/TargetData.h" #include "llvm/Transforms/Scalar.h" -#include "llvm/Support/IRBuilder.h" #include "llvm/Support/TargetSelect.h" #include <cstdio> #include <string> @@ -2158,7 +2158,7 @@ int main() { Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-10-16 10:06:54 +0200 (Sun, 16 Oct 2011) $ + Last modified: $Date: 2012-06-29 14:38:19 +0200 (Fri, 29 Jun 2012) $ diff --git a/docs/tutorial/LangImpl8.html b/docs/tutorial/LangImpl8.html index cc55d40..50fcd8c 100644 --- a/docs/tutorial/LangImpl8.html +++ b/docs/tutorial/LangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + @@ -47,7 +47,7 @@
-

Welcome to the the final chapter of the "Implementing a +

Welcome to the final chapter of the "Implementing a language with LLVM" tutorial. In the course of this tutorial, we have grown our little Kaleidoscope language from being a useless toy, to being a semi-interesting (but probably still useless) toy. :)

@@ -353,7 +353,7 @@ Passing Style and the use of tail calls (which LLVM also supports).

Chris Lattner
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-07-23 10:51:15 +0200 (Mon, 23 Jul 2012) $ diff --git a/docs/tutorial/Makefile b/docs/tutorial/Makefile deleted file mode 100644 index fdf1bb6..0000000 --- a/docs/tutorial/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -##===- docs/tutorial/Makefile ------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL := ../.. -include $(LEVEL)/Makefile.common - -HTML := $(wildcard $(PROJ_SRC_DIR)/*.html) -PNG := $(wildcard $(PROJ_SRC_DIR)/*.png) -EXTRA_DIST := $(HTML) index.html -HTML_DIR := $(DESTDIR)$(PROJ_docsdir)/html/tutorial - -install-local:: $(HTML) - $(Echo) Installing HTML Tutorial Documentation - $(Verb) $(MKDIR) $(HTML_DIR) - $(Verb) $(DataInstall) $(HTML) $(HTML_DIR) - $(Verb) $(DataInstall) $(PNG) $(HTML_DIR) - $(Verb) $(DataInstall) $(PROJ_SRC_DIR)/index.html $(HTML_DIR) - -uninstall-local:: - $(Echo) Uninstalling Tutorial Documentation - $(Verb) $(RM) -rf $(HTML_DIR) - -printvars:: - $(Echo) "HTML : " '$(HTML)' diff --git a/docs/tutorial/OCamlLangImpl1.html b/docs/tutorial/OCamlLangImpl1.html index 7cae68c..86a395a 100644 --- a/docs/tutorial/OCamlLangImpl1.html +++ b/docs/tutorial/OCamlLangImpl1.html @@ -7,7 +7,7 @@ - + @@ -359,7 +359,7 @@ include a driver so that you can use the lexer and parser together. Chris Lattner
Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl2.html b/docs/tutorial/OCamlLangImpl2.html index e1bb871..9bb4c40 100644 --- a/docs/tutorial/OCamlLangImpl2.html +++ b/docs/tutorial/OCamlLangImpl2.html @@ -7,7 +7,7 @@ - + @@ -1037,7 +1037,7 @@ main () Chris Lattner Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl3.html b/docs/tutorial/OCamlLangImpl3.html index c240bb9..e6105e8 100644 --- a/docs/tutorial/OCamlLangImpl3.html +++ b/docs/tutorial/OCamlLangImpl3.html @@ -7,7 +7,7 @@ - + @@ -1087,7 +1087,7 @@ main () Chris Lattner
Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-07-15 22:03:30 +0200 (Fri, 15 Jul 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index db164d5..e3e2469 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -7,7 +7,7 @@ - + @@ -270,10 +270,9 @@ add instruction from every execution of this function.

LLVM provides a wide variety of optimizations that can be used in certain circumstances. Some documentation about the various passes is available, but it isn't very complete. Another good source of -ideas can come from looking at the passes that llvm-gcc or -llvm-ld run to get started. The "opt" tool allows you to -experiment with passes from the command line, so you can see if they do -anything.

+ideas can come from looking at the passes that Clang runs to get +started. The "opt" tool allows you to experiment with passes from the +command line, so you can see if they do anything.

Now that we have reasonable code coming out of our front-end, lets talk about executing it!

@@ -1021,7 +1020,7 @@ extern double putchard(double X) { Chris Lattner
Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl5.html b/docs/tutorial/OCamlLangImpl5.html index ca79691..994957e 100644 --- a/docs/tutorial/OCamlLangImpl5.html +++ b/docs/tutorial/OCamlLangImpl5.html @@ -7,7 +7,7 @@ - + @@ -1554,7 +1554,7 @@ operators Chris Lattner
Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl6.html b/docs/tutorial/OCamlLangImpl6.html index bde429b..cef3884 100644 --- a/docs/tutorial/OCamlLangImpl6.html +++ b/docs/tutorial/OCamlLangImpl6.html @@ -7,7 +7,7 @@ - + @@ -611,7 +611,7 @@ def mandelhelp(xmin xmax xstep ymin ymax ystep) : putchard(10) ) -# mandel - This is a convenient helper function for ploting the mandelbrot set +# mandel - This is a convenient helper function for plotting the mandelbrot set # from the specified position with the specified Magnification. def mandel(realstart imagstart realmag imagmag) mandelhelp(realstart, realstart+realmag*78, realmag, @@ -1568,7 +1568,7 @@ SSA construction Chris Lattner
Erick Tryzelaar
The LLVM Compiler Infrastructure
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-07-31 09:05:57 +0200 (Tue, 31 Jul 2012) $ diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index a48e679..abe8913 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/docs/tutorial/OCamlLangImpl7.html @@ -8,7 +8,7 @@ - + @@ -1898,7 +1898,7 @@ extern double printd(double X) { Chris Lattner
The LLVM Compiler Infrastructure
Erick Tryzelaar
- Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2012-05-03 00:46:36 +0200 (Thu, 03 May 2012) $ diff --git a/docs/tutorial/OCamlLangImpl8.html b/docs/tutorial/OCamlLangImpl8.html index eed8c03..7c1a500 100644 --- a/docs/tutorial/OCamlLangImpl8.html +++ b/docs/tutorial/OCamlLangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + @@ -47,7 +47,7 @@
-

Welcome to the the final chapter of the "Implementing a +

Welcome to the final chapter of the "Implementing a language with LLVM" tutorial. In the course of this tutorial, we have grown our little Kaleidoscope language from being a useless toy, to being a semi-interesting (but probably still useless) toy. :)

diff --git a/docs/tutorial/index.html b/docs/tutorial/index.html index 0a8cae2..2c11a9a 100644 --- a/docs/tutorial/index.html +++ b/docs/tutorial/index.html @@ -7,7 +7,7 @@ - + -- cgit v1.1