MimIR
0.6-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
close.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
mim/plug/mach/phase.h
"
4
5
namespace
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).
12
class
Close
:
public
FunPhase
{
13
public
:
14
using
FunPhase::FunPhase
;
15
16
private
:
17
void
visit
(
Lam
*)
final
;
18
};
19
20
}
// namespace mim::plug::mach
mim::Lam
A function.
Definition
lam.h:91
mim::plug::mach::Close
Closes every join of a scheduled function over its values, i.e., every block that a jump passes contr...
Definition
close.h:12
mim::plug::mach::Close::FunPhase
FunPhase(World &world, flags_t annex, const Target &target)
Definition
phase.h:57
mim::plug::mach::Close::visit
void visit(Lam *) final
Definition
close.cpp:145
mim::plug::mach::FunPhase::FunPhase
FunPhase(World &world, flags_t annex, const Target &target)
Definition
phase.h:57
mim::plug::mach
The mach Plugin
Definition
asm.h:15
phase.h
include
mim
plug
mach
close.h
Generated by
1.18.0