33 void enter()
override;
37 const Def* rewrite_def(
const Def* def);
40 const Def* rewrite_def_(
const Def* def);
43 Lam* reshape_lam(
Lam* def);
46 const Def* reshape_type(
const Def* T);
48 const Def* reshape(
const Def* def);
50 const Def* reshape(
const Def* def,
const Def* target);
RWPass(World &world, std::string name)
Stage(World &world, std::string name)
The World represents the whole program and manages creation of MimIR nodes (Defs).
Reshape(World &world, flags_t annex)
void enter() override
Fall-through to rewrite_def which falls through to rewrite_lam.
void apply(Stage &s) final
Dito, but invoked by Stage::recreate.
DefMap< const Def * > Def2Def
Vector< const Def * > DefVec