package ocaml-solo5
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=47876167068345542f49279e8fd28896
sha512=272081ec51a6ed69c08e4e8fa64fee3df53fd84c66c0c07a653891c88b342cf74553e1c95711e4fbc18922c899a3448a649f3bd9858f8d89cae834ad2b67fffb
doc/compiler-libs.optcomp/Inline_and_simplify_aux/Result/index.html
Module Inline_and_simplify_aux.Result
Result structures approximately follow the evaluation order of the program. They are returned by the simplification algorithm acting on an Flambda subexpression.
val create : unit -> tval approx : t -> Simple_value_approx.tThe approximation of the subexpression that has just been simplified.
val set_approx : t -> Simple_value_approx.t -> tSet the approximation of the subexpression that has just been simplified. Typically used just before returning from a case of the simplification algorithm.
val meet_approx : t -> Env.t -> Simple_value_approx.t -> tSet the approximation of the subexpression to the meet of the current return approximation and the provided one. Typically used just before returning from a branch case of the simplification algorithm.
val used_static_exceptions : t -> Static_exception.Set.tAll static exceptions for which use_staticfail has been called on the given result structure.
val use_static_exception : t -> Static_exception.t -> tMark that the given static exception has been used.
val exit_scope_catch : t -> Static_exception.t -> tMark that we are moving up out of the scope of a static-catch block that catches the given static exception identifier. This has the effect of removing the identifier from the used_staticfail set.
val benefit : t -> Inlining_cost.Benefit.tThe benefit to be gained by inlining the subexpression whose simplification yielded the given result structure.
val map_benefit :
t ->
(Inlining_cost.Benefit.t -> Inlining_cost.Benefit.t) ->
tApply a transformation to the inlining benefit stored within the given result structure.
val add_benefit : t -> Inlining_cost.Benefit.t -> tAdd some benefit to the inlining benefit stored within the given result structure.
Set the benefit of inlining the subexpression corresponding to the given result structure to zero.
val set_inlining_threshold : t -> Inlining_cost.Threshold.t option -> tval add_inlining_threshold : t -> Inlining_cost.Threshold.t -> tval sub_inlining_threshold : t -> Inlining_cost.Threshold.t -> tval inlining_threshold : t -> Inlining_cost.Threshold.t optionval num_direct_applications : t -> int