Chapter 5, 6, and 7 of the ocaml/kaleidoscope tutorial

and fix some tabs in chapter 3 and 4.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erick Tryzelaar
2008-03-31 08:44:50 +00:00
parent 9d15abe838
commit 35295ffd50
5 changed files with 5051 additions and 6 deletions
+2 -2
View File
@@ -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>
@@ -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>