From 1ace67c5219679df46f5280708388b18f8f09847 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49729 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl3.html | 2 +- docs/tutorial/LangImpl4.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 47e1783..7f4b76a 100644 --- a/docs/tutorial/LangImpl3.html +++ b/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/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 999c194..ddd6092 100644 --- a/docs/tutorial/LangImpl4.html +++ b/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.1