MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
close.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace mim::plug::mach {
6
7/// Closes every join of a scheduled function over its values, i.e., every block that a jump passes control to.
8/// The values that a join uses but does not define become parameters, and every jump to it passes them.
9/// The parameters of a join come sorted by Target::Class with the `mem.M 0` first, in order within a class.
10/// A branch target or a return continuation has a single predecessor and stays nested in it.
11/// A branch passes nothing but its memory (see mem::phase::SinkArgs).
12class Close : public FunPhase {
13public:
15
16private:
17 void visit(Lam*) final;
18};
19
20} // namespace mim::plug::mach
A function.
Definition lam.h:91
Closes every join of a scheduled function over its values, i.e., every block that a jump passes contr...
Definition close.h:12
FunPhase(World &world, flags_t annex, const Target &target)
Definition phase.h:57
void visit(Lam *) final
Definition close.cpp:145
FunPhase(World &world, flags_t annex, const Target &target)
Definition phase.h:57
The mach Plugin
Definition asm.h:15