MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
branch_clos_elim.h
Go to the documentation of this file.
1#pragma once
2
3#include <mim/pass.h>
4
5namespace mim::plug::clos {
6
7class BranchClosElim : public RWPass<BranchClosElim, Lam> {
8public:
11
12 const Def* rewrite(const Def*) override;
13
14private:
15 DefMap<Lam*> branch2dropped_;
16};
17
18}; // namespace mim::plug::clos
Base class for all Defs.
Definition def.h:251
RWPass(World &world, std::string name)
Definition pass.h:295
World & world()
Definition pass.h:64
flags_t annex() const
Definition pass.h:68
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition world.h:36
BranchClosElim(World &world, flags_t annex)
const Def * rewrite(const Def *) override
The clos Plugin
Definition clos.h:7
u64 flags_t
Definition types.h:45
GIDMap< const Def *, To > DefMap
Definition def.h:73