package ocaml-compiler

Build not yet checked
  1. Overview
  2. Docs

doc/compiler-libs.bytecomp/Instruct/index.html

Module Instruct

type closure_entry =
  1. | Free_variable of int
  2. | Function of int
type closure_env =
  1. | Not_in_closure
  2. | In_closure of {
    1. entries : closure_entry Ident.tbl;
    2. env_pos : int;
    }
type compilation_env = {
  1. ce_stack : int Ident.tbl;
  2. ce_closure : closure_env;
}
type debug_event = {
  1. mutable ev_pos : int;
  2. ev_module : string;
  3. ev_loc : Location.t;
  4. ev_kind : debug_event_kind;
  5. ev_defname : string;
  6. ev_info : debug_event_info;
  7. ev_typenv : Env.summary;
  8. ev_typsubst : Subst.t;
  9. ev_compenv : compilation_env;
  10. ev_stacksize : int;
  11. ev_repr : debug_event_repr;
}
and debug_event_kind =
  1. | Event_before
  2. | Event_after of Types.type_expr
  3. | Event_pseudo
and debug_event_info =
  1. | Event_function
  2. | Event_return of int
  3. | Event_other
and debug_event_repr =
  1. | Event_none
  2. | Event_parent of int ref
  3. | Event_child of int ref
type closure_hint = {
  1. params : Lambda.value_kind list;
  2. return : Lambda.value_kind;
  3. inline : Lambda.inline_attribute;
  4. specialise : Lambda.specialise_attribute;
  5. is_a_functor : bool;
}
type ccall_hint =
  1. | Hint_unsafe
  2. | Hint_int of Primitive.boxed_integer
  3. | Hint_bigarray of {
    1. unsafe : bool;
    2. elt_kind : Lambda.bigarray_kind;
    3. layout : Lambda.bigarray_layout;
    }
  4. | Hint_primitive of Primitive.description
  5. | Hint_immediate_result
type optimization_hint =
  1. | Hint_immutable_block
  2. | Hint_arraylength of Lambda.array_kind
  3. | Hint_closures of closure_hint list
  4. | Hint_ccall of ccall_hint
  5. | Hint_int_equality_test
  6. | Hint_immediate
  7. | Hint_variant
type label = int
type instruction =
  1. | Klabel of label
  2. | Kacc of int
  3. | Kenvacc of int
  4. | Kpush
  5. | Kpop of int
  6. | Kassign of int
  7. | Kpush_retaddr of label
  8. | Kapply of int
  9. | Kappterm of int * int
  10. | Kreturn of int
  11. | Krestart
  12. | Kgrab of int
  13. | Kclosure of label * int * closure_hint
  14. | Kclosurerec of (label * closure_hint) list * int
  15. | Koffsetclosure of int
  16. | Kgetglobal of Ident.t
  17. | Ksetglobal of Ident.t
  18. | Kconst of Lambda.structured_constant
  19. | Kmakeblock of int * int * Asttypes.mutable_flag
  20. | Kmakefloatblock of int * Asttypes.mutable_flag
  21. | Kgetfield of int * Lambda.immediate_or_pointer
  22. | Ksetfield of int
  23. | Kgetfloatfield of int
  24. | Ksetfloatfield of int
  25. | Kvectlength of Lambda.array_kind
  26. | Kgetvectitem of Lambda.immediate_or_pointer
  27. | Ksetvectitem
  28. | Kgetstringchar
  29. | Kgetbyteschar
  30. | Ksetbyteschar
  31. | Kbranch of label
  32. | Kbranchif of label
  33. | Kbranchifnot of label
  34. | Kstrictbranchif of label
  35. | Kstrictbranchifnot of label
  36. | Kswitch of label array * label array
  37. | Kboolnot
  38. | Kpushtrap of label
  39. | Kpoptrap
  40. | Kraise of Lambda.raise_kind
  41. | Kcheck_signals
  42. | Kccall of string * int * ccall_hint option
  43. | Knegint
  44. | Kaddint
  45. | Ksubint
  46. | Kmulint
  47. | Kdivint
  48. | Kmodint
  49. | Kandint
  50. | Korint
  51. | Kxorint
  52. | Klslint
  53. | Klsrint
  54. | Kasrint
  55. | Kintcomp of Lambda.integer_comparison
  56. | Kphyscomp of Lambda.physical_comparison
  57. | Koffsetint of int
  58. | Koffsetref of int
  59. | Kisint of bool
  60. | Kisout
  61. | Kgetmethod
  62. | Kgetpubmet of int
  63. | Kgetdynmet
  64. | Kevent of debug_event
  65. | Kperform
  66. | Kresume
  67. | Kresumeterm of int
  68. | Kreperformterm of int
  69. | Kstop
val immed_min : int
val immed_max : int