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 : Format.formatter -> t -> unitval invalid : Flambda2_kinds.Flambda_kind.t -> tReplace the primitive by the Invalid primitive.
val remove_prim : tRemove the primitve (and its binding)
val replace_by_binding :
var:Flambda2_identifiers.Variable.t ->
bound_to:Flambda2_term_basics.Simple.t ->
tReplace the primitive by the given Simple.t