package ocaml-base-compiler

  1. Overview
  2. Docs
type label = Cmm.label
type instruction = {
  1. mutable desc : instruction_desc;
  2. mutable next : instruction;
  3. arg : Reg.t array;
  4. res : Reg.t array;
  5. dbg : Debuginfo.t;
  6. live : Reg.Set.t;
}
and instruction_desc =
  1. | Lend
  2. | Lop of Mach.operation
  3. | Lreloadretaddr
  4. | Lreturn
  5. | Llabel of label
  6. | Lbranch of label
  7. | Lcondbranch of Mach.test * label
  8. | Lcondbranch3 of label option * label option * label option
  9. | Lswitch of label array
  10. | Lsetuptrap of label
  11. | Lpushtrap
  12. | Lpoptrap
  13. | Lraise of Cmm.raise_kind
val has_fallthrough : instruction_desc -> bool
val end_instr : instruction
val instr_cons : instruction_desc -> Reg.t array -> Reg.t array -> instruction -> instruction
val invert_test : Mach.test -> Mach.test
type fundecl = {
  1. fun_name : string;
  2. fun_body : instruction;
  3. fun_fast : bool;
  4. fun_dbg : Debuginfo.t;
  5. fun_spacetime_shape : Mach.spacetime_shape option;
}
val fundecl : Mach.fundecl -> fundecl
OCaml

Innovation. Community. Security.