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/LangImpl4.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'docs/tutorial/LangImpl4.html') 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) $ -- cgit v1.1