Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: examples/OCaml-Kaleidoscope/Chapter4/toy.ml
- ===================================================================
- --- examples/OCaml-Kaleidoscope/Chapter4/toy.ml (revision 205827)
- +++ examples/OCaml-Kaleidoscope/Chapter4/toy.ml (working copy)
- @@ -27,7 +27,8 @@
- (* Set up the optimizer pipeline. Start with registering info about how the
- * target lays out data structures. *)
- - DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
- + let dl = ExecutionEngine.data_layout the_execution_engine in
- + DataLayout.add_to_pass_manager the_fpm dl;
- (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
- add_instruction_combination the_fpm;
- Index: examples/OCaml-Kaleidoscope/Chapter5/toy.ml
- ===================================================================
- --- examples/OCaml-Kaleidoscope/Chapter5/toy.ml (revision 205827)
- +++ examples/OCaml-Kaleidoscope/Chapter5/toy.ml (working copy)
- @@ -27,7 +27,8 @@
- (* Set up the optimizer pipeline. Start with registering info about how the
- * target lays out data structures. *)
- - DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
- + let dl = ExecutionEngine.data_layout the_execution_engine in
- + DataLayout.add_to_pass_manager the_fpm dl;
- (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
- add_instruction_combination the_fpm;
- Index: examples/OCaml-Kaleidoscope/Chapter6/toy.ml
- ===================================================================
- --- examples/OCaml-Kaleidoscope/Chapter6/toy.ml (revision 205827)
- +++ examples/OCaml-Kaleidoscope/Chapter6/toy.ml (working copy)
- @@ -27,7 +27,8 @@
- (* Set up the optimizer pipeline. Start with registering info about how the
- * target lays out data structures. *)
- - DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
- + let dl = ExecutionEngine.data_layout the_execution_engine in
- + DataLayout.add_to_pass_manager the_fpm dl;
- (* Do simple "peephole" optimizations and bit-twiddling optzn. *)
- add_instruction_combination the_fpm;
- Index: examples/OCaml-Kaleidoscope/Chapter7/toy.ml
- ===================================================================
- --- examples/OCaml-Kaleidoscope/Chapter7/toy.ml (revision 205827)
- +++ examples/OCaml-Kaleidoscope/Chapter7/toy.ml (working copy)
- @@ -28,7 +28,8 @@
- (* Set up the optimizer pipeline. Start with registering info about how the
- * target lays out data structures. *)
- - DataLayout.add (ExecutionEngine.target_data the_execution_engine) the_fpm;
- + let dl = ExecutionEngine.data_layout the_execution_engine in
- + DataLayout.add_to_pass_manager the_fpm dl;
- (* Promote allocas to registers. *)
- add_memory_to_register_promotion the_fpm;
Advertisement
Add Comment
Please, Sign In to add comment