print.mli 729 B

12345678910111213141516
  1. (** Output any intermediate representation to [stdout] or [stderr]. *)
  2. (** The printing phase takes as input any intermediate representation, and
  3. prints its stringification. The input of the phase is also its output.
  4. Since node stringification is implemented by {!Stringify}, the phase simply
  5. calls {!Stringify.node2str} for [Ast] inputs. Stringification of assembly
  6. instructions is implemented in the module itself: {!print_assembly}.
  7. The output starts and ends with a separation line ({!Util.hline}). *)
  8. (** Print assembly instructions to the given file pointer. *)
  9. val print_assembly : out_channel -> Types.instr list -> unit
  10. (** Main phase function, called by {!Main}. *)
  11. val phase : Main.phase_func