Module Flambda2_cmx.Exported_code
include Flambda2_nominal.Contains_ids.S
with type t := Flambda2_cmx.Exported_code.t
val ids_for_export :
Flambda2_cmx.Exported_code.t ->
Flambda2_nominal.Ids_for_export.tGather all table identifiers to export them.
val print : Stdlib.Format.formatter -> Flambda2_cmx.Exported_code.t -> unitval print_view :
Stdlib.Format.formatter ->
Flambda2_cmx.Exported_code.t ->
unitval empty : Flambda2_cmx.Exported_code.tval free_names :
Flambda2_cmx.Exported_code.t ->
Flambda2_nominal.Name_occurrences.tval add_code :
keep_code:(Flambda2_identifiers.Code_id.t -> bool) ->
Flambda2_terms.Code.t Flambda2_identifiers.Code_id.Map.t ->
Flambda2_cmx.Exported_code.t ->
Flambda2_cmx.Exported_code.tval mark_as_imported :
Flambda2_cmx.Exported_code.t ->
Flambda2_cmx.Exported_code.tval mem :
Flambda2_identifiers.Code_id.t ->
Flambda2_cmx.Exported_code.t ->
boolval find_exn :
Flambda2_cmx.Exported_code.t ->
Flambda2_identifiers.Code_id.t ->
Flambda2_terms.Code_or_metadata.tThis function raises an exception if the code ID is unbound.
val find :
Flambda2_cmx.Exported_code.t ->
Flambda2_identifiers.Code_id.t ->
Flambda2_terms.Code_or_metadata.t optionThis function is only really for use in unusual cases where there needs to be special handling if a code ID is unbound (see comment in the .ml file)
val remove_unreachable :
reachable_names:Flambda2_nominal.Name_occurrences.t ->
Flambda2_cmx.Exported_code.t ->
Flambda2_cmx.Exported_code.tval remove_unused_value_slots_from_result_types_and_shortcut_aliases :
used_value_slots:Flambda2_identifiers.Value_slot.Set.t ->
canonicalise:(Flambda2_term_basics.Simple.t -> Flambda2_term_basics.Simple.t) ->
Flambda2_cmx.Exported_code.t ->
Flambda2_cmx.Exported_code.tval iter_code :
Flambda2_cmx.Exported_code.t ->
f:(Flambda2_terms.Code.t -> unit) ->
unitval from_raw :
sections:Oxcaml_utils.File_sections.t ->
Flambda2_cmx.Exported_code.raw ->
Flambda2_cmx.Exported_code.tval to_raw :
add_section:(Stdlib.Obj.t -> int) ->
Flambda2_cmx.Exported_code.t ->
Flambda2_cmx.Exported_code.rawval map_raw_index :
(int -> int) ->
Flambda2_cmx.Exported_code.raw ->
Flambda2_cmx.Exported_code.raw