Module Named_rewrite.Prim_rewrite
type t = private | Remove_prim| Invalid of Flambda2_kinds.Flambda_kind.t| Replace_by_binding of {var : Flambda2_identifiers.Variable.t;bound_to : Flambda2_term_basics.Simple.t;
}
Rewrite for primitives
val print :
Stdlib.Format.formatter ->
Flambda2_simplify.Named_rewrite.Prim_rewrite.t ->
unitReplace the primitive by the Invalid primitive.
val remove_prim : Flambda2_simplify.Named_rewrite.Prim_rewrite.tRemove the primitve (and its binding)
val replace_by_binding :
var:Flambda2_identifiers.Variable.t ->
bound_to:Flambda2_term_basics.Simple.t ->
Flambda2_simplify.Named_rewrite.Prim_rewrite.tReplace the primitive by the given Simple.t