From 1ace67c5219679df46f5280708388b18f8f09847 Mon Sep 17 00:00:00 2001
From: Chris Lattner
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 999c194bf98..ddd609210d8 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