19 bool is_esc(
Ref def) {
20 if (
auto [_, lam] =
ca_isa_var<Lam>(def); lam && !lam->is_set())
return true;
21 return esc_.contains(def);
Inherit from this class using CRTP, if you do need a Pass with a state and a fixed-point.
An optimizer that combines several optimizations in an optimal way.
Helper class to retrieve Infer::arg if present.
LowerTypedClosPrep(PassMan &man)
undo_t analyze(Ref) override
Ref rewrite(Ref) override
std::tuple< const Extract *, N * > ca_isa_var(Ref def)
Checks is def is the variable of a mut of type N.
GIDSet< const Def * > DefSet