diff options
Diffstat (limited to 'docs/tutorial/LangImpl7.html')
| -rw-r--r-- | docs/tutorial/LangImpl7.html | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 1ec99b15bf5c..3b36129d6716 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -1009,6 +1009,7 @@ variables and var/in support.  To build this example, use:  #include "llvm/Module.h"  #include "llvm/PassManager.h"  #include "llvm/Analysis/Verifier.h" +#include "llvm/Analysis/Passes.h"  #include "llvm/Target/TargetData.h"  #include "llvm/Target/TargetSelect.h"  #include "llvm/Transforms/Scalar.h" @@ -2116,6 +2117,8 @@ int main() {    // Set up the optimizer pipeline.  Start with registering info about how the    // target lays out data structures.    OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData())); +  // Provide basic AliasAnalysis support for GVN. +  OurFPM.add(createBasicAliasAnalysisPass());    // Promote allocas to registers.    OurFPM.add(createPromoteMemoryToRegisterPass());    // Do simple "peephole" optimizations and bit-twiddling optzns. @@ -2158,7 +2161,7 @@ int main() {    <a href="mailto:sabre@nondot.org">Chris Lattner</a><br>    <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> -  Last modified: $Date: 2010-09-01 22:09:20 +0200 (Wed, 01 Sep 2010) $ +  Last modified: $Date: 2010-11-16 18:28:22 +0100 (Tue, 16 Nov 2010) $  </address>  </body>  </html>  | 
