32 void enter()
override;
36 const Def* rewrite_def(
const Def* def);
39 const Def* rewrite_def_(
const Def* def);
42 Lam* reshape_lam(
Lam* def);
45 const Def* reshape_type(
const Def* T);
47 const Def* reshape(
const Def* def);
49 const Def* reshape(
const Def* def,
const Def* target);
An optimizer that combines several optimizations in an optimal way.
Inherit from this class using CRTP, if your Pass does not need state and a fixed-point iteration.
The general idea of this pass/phase is to change the shape of signatures of functions.
void enter() override
Fall-through to rewrite_def which falls through to rewrite_lam.
Reshape(PassMan &man, Mode mode)
std::deque< const Def * > DefQueue
DefMap< const Def * > Def2Def