Updated VS build system. Patch provided by Cedric Venet:
[oota-llvm.git] / docs / tutorial / OCamlLangImpl3.html
index 0edc726480ce474e09617c0a34d99b90efc316c5..0ff0703d18cceb772cfe16cdba26031d2f792de1 100644 (file)
@@ -108,7 +108,7 @@ top-level structure that the LLVM IR uses to contain code.</p>
 
 <p>The <tt>Codegen.builder</tt> object is a helper object that makes it easy to
 generate LLVM instructions.  Instances of the <a
-href="http://llvm.org/doxygen/LLVMBuilder_8h-source.html"><tt>LLVMBuilder</tt></a>
+href="http://llvm.org/doxygen/IRBuilder_8h-source.html"><tt>IRBuilder</tt></a>
 class keep track of the current place to insert instructions and has methods to
 create new instructions.</p>
 
@@ -148,7 +148,7 @@ internally (<tt>APFloat</tt> has the capability of holding floating point
 constants of <em>A</em>rbitrary <em>P</em>recision).  This code basically just
 creates and returns a <tt>ConstantFP</tt>.  Note that in the LLVM IR
 that constants are all uniqued together and shared.  For this reason, the API
-uses "the foo::get(..)" idiom instead of "new foo(..)" or "foo::create(..)".</p>
+uses "the foo::get(..)" idiom instead of "new foo(..)" or "foo::Create(..)".</p>
 
 <div class="doc_code">
 <pre>
@@ -183,7 +183,7 @@ variables</a>.</p>
             let i = build_fcmp Fcmp.Ult lhs_val rhs_val "cmptmp" builder in
             build_uitofp i double_type "booltmp" builder
         | _ -&gt; raise (Error "invalid binary operator")
-                       end
+      end
 </pre>
 </div>
 
@@ -194,7 +194,7 @@ code, we do a simple switch on the opcode to create the right LLVM instruction.
 </p>
 
 <p>In the example above, the LLVM builder class is starting to show its value.
-LLVMBuilder knows where to insert the newly created instruction, all you have to
+IRBuilder knows where to insert the newly created instruction, all you have to
 do is specify what instruction to create (e.g. with <tt>Llvm.create_add</tt>),
 which operands to use (<tt>lhs</tt> and <tt>rhs</tt> here) and optionally
 provide a name for the generated instruction.</p>
@@ -280,7 +280,7 @@ let codegen_proto = function
       (* Make the function type: double(double,double) etc. *)
       let doubles = Array.make (Array.length args) double_type in
       let ft = function_type double_type doubles in
-                       let f =
+      let f =
         match lookup_function name the_module with
 </pre>
 </div>