From a5eb45bcfd6e30260bac193deb8643c9ec741b84 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Apr 2008 16:59:22 +0000 Subject: A couple minor fixes suggested by Matthijs Kooijman llvm-svn: 49729 --- llvm/docs/tutorial/LangImpl3.html | 2 +- llvm/docs/tutorial/LangImpl4.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/docs') diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html index 47e178397a8..7f4b76a554e 100644 --- a/llvm/docs/tutorial/LangImpl3.html +++ b/llvm/docs/tutorial/LangImpl3.html @@ -327,7 +327,7 @@ don't "new" a type, you "get" it.

The final line above actually creates the function that the prototype will correspond to. This indicates the type, linkage and name to use, as well as which -module to insert into. "external linkage" +module to insert into. "external linkage" means that the function may be defined outside the current module and/or that it is callable by functions outside the module. The Name passed in is the name the user specified: since "TheModule" is specified, this name is registered diff --git a/llvm/docs/tutorial/LangImpl4.html b/llvm/docs/tutorial/LangImpl4.html index 999c194bf98..ddd609210d8 100644 --- a/llvm/docs/tutorial/LangImpl4.html +++ b/llvm/docs/tutorial/LangImpl4.html @@ -123,7 +123,7 @@ entry:

In this case, the LHS and RHS of the multiplication are the same value. We'd really like to see this generate "tmp = x+3; result = tmp*tmp;" instead -of computing "x*3" twice.

+of computing "x+3" twice.

Unfortunately, no amount of local analysis will be able to detect and correct this. This requires two transformations: reassociation of expressions (to -- cgit v1.2.3