From 75338097c786eea1c461e744a2c45af78f56286f Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 19 Apr 2012 19:27:54 +0000 Subject: Remove llvm-ld and llvm-stub (which is only used by llvm-ld). llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155147 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl4.html | 7 +++---- docs/tutorial/OCamlLangImpl4.html | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 77c9dbe..d2cac62 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -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!

diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index fd2b5ad..dd31ded 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -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!

-- cgit v1.1 From f2c696f01620024a46f995be766b240497fae41f Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 2 May 2012 22:46:36 +0000 Subject: [docs] Include the Kaleidescope tutorial in the Sphinx docs build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156032 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl1.html | 2 +- docs/tutorial/LangImpl2.html | 2 +- docs/tutorial/LangImpl3.html | 2 +- docs/tutorial/LangImpl4.html | 2 +- docs/tutorial/LangImpl5.html | 2 +- docs/tutorial/LangImpl6.html | 2 +- docs/tutorial/LangImpl7.html | 2 +- docs/tutorial/LangImpl8.html | 2 +- docs/tutorial/Makefile | 30 ------------------------------ docs/tutorial/OCamlLangImpl1.html | 2 +- docs/tutorial/OCamlLangImpl2.html | 2 +- docs/tutorial/OCamlLangImpl3.html | 2 +- docs/tutorial/OCamlLangImpl4.html | 2 +- docs/tutorial/OCamlLangImpl5.html | 2 +- docs/tutorial/OCamlLangImpl6.html | 2 +- docs/tutorial/OCamlLangImpl7.html | 2 +- docs/tutorial/OCamlLangImpl8.html | 2 +- docs/tutorial/index.html | 2 +- 18 files changed, 17 insertions(+), 47 deletions(-) delete mode 100644 docs/tutorial/Makefile (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl1.html b/docs/tutorial/LangImpl1.html index 2e1746f..a65646f2 100644 --- a/docs/tutorial/LangImpl1.html +++ b/docs/tutorial/LangImpl1.html @@ -6,7 +6,7 @@ Kaleidoscope: Tutorial Introduction and the Lexer - + diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index 60e4f7f..292dd4e 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing a Parser and AST - + diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 22ef26c..4e9ac3a 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing code generation to LLVM IR - + diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index d2cac62..8c5c31e 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -6,7 +6,7 @@ Kaleidoscope: Adding JIT and Optimizer Support - + diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index a42636f..0bb7e4f 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: Control Flow - + diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 041af3b..453b576 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: User-defined Operators - + diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 29b920c..90bdeee1 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -7,7 +7,7 @@ construction - + diff --git a/docs/tutorial/LangImpl8.html b/docs/tutorial/LangImpl8.html index eed8c03..efd1756 100644 --- a/docs/tutorial/LangImpl8.html +++ b/docs/tutorial/LangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + 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 aa2bd87..73fe07b 100644 --- a/docs/tutorial/OCamlLangImpl1.html +++ b/docs/tutorial/OCamlLangImpl1.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl2.html b/docs/tutorial/OCamlLangImpl2.html index 20e006d..dd7e07b 100644 --- a/docs/tutorial/OCamlLangImpl2.html +++ b/docs/tutorial/OCamlLangImpl2.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl3.html b/docs/tutorial/OCamlLangImpl3.html index 49b62bd..a49a0b5 100644 --- a/docs/tutorial/OCamlLangImpl3.html +++ b/docs/tutorial/OCamlLangImpl3.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index dd31ded..ca427eb 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl5.html b/docs/tutorial/OCamlLangImpl5.html index d356f12..feeed6a 100644 --- a/docs/tutorial/OCamlLangImpl5.html +++ b/docs/tutorial/OCamlLangImpl5.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl6.html b/docs/tutorial/OCamlLangImpl6.html index 480aab3..0d1d280 100644 --- a/docs/tutorial/OCamlLangImpl6.html +++ b/docs/tutorial/OCamlLangImpl6.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index 51986b5..d106ad0 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/docs/tutorial/OCamlLangImpl7.html @@ -8,7 +8,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl8.html b/docs/tutorial/OCamlLangImpl8.html index eed8c03..efd1756 100644 --- a/docs/tutorial/OCamlLangImpl8.html +++ b/docs/tutorial/OCamlLangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + 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 From 06cb8ed00696eb14d1b831921452e50ec0568ea2 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 29 Jun 2012 12:38:19 +0000 Subject: Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h This was always part of the VMCore library out of necessity -- it deals entirely in the IR. The .cpp file in fact was already part of the VMCore library. This is just a mechanical move. I've tried to go through and re-apply the coding standard's preferred header sort, but at 40-ish files, I may have gotten some wrong. Please let me know if so. I'll be committing the corresponding updates to Clang and Polly, and Duncan has DragonEgg. Thanks to Bill and Eric for giving the green light for this bit of cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159421 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl3.html | 2 +- docs/tutorial/LangImpl4.html | 2 +- docs/tutorial/LangImpl5.html | 2 +- docs/tutorial/LangImpl6.html | 2 +- docs/tutorial/LangImpl7.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 4e9ac3a..57ff737 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -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> diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 8c5c31e..453e43a 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -517,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" @@ -524,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> diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 0bb7e4f..2d406df 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -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> diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 453b576..9c606ae 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -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> diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 90bdeee1..08c0c71 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -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> -- cgit v1.1 From c8e41c591741b3da1077f7000274ad040bef8002 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 23 Jul 2012 08:51:15 +0000 Subject: Fix a typo (the the => the) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160621 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl8.html | 2 +- docs/tutorial/OCamlLangImpl8.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl8.html b/docs/tutorial/LangImpl8.html index efd1756..7c1a500 100644 --- a/docs/tutorial/LangImpl8.html +++ b/docs/tutorial/LangImpl8.html @@ -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/OCamlLangImpl8.html b/docs/tutorial/OCamlLangImpl8.html index efd1756..7c1a500 100644 --- a/docs/tutorial/OCamlLangImpl8.html +++ b/docs/tutorial/OCamlLangImpl8.html @@ -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. :)

-- cgit v1.1