|
| void | mim::plug::mach::for_each_succ (const App *term, auto f) |
| | Calls f for each block, possibly repeatedly, that the jump term passes control or a return continuation to.
|
| bool | mim::plug::mach::is_value (const Def *value, Liveness::Class cls, const Target &target) |
| | Is value a value of class cls?
|
| Lam * | mim::plug::mach::forwarded (const LamMap< Lam * > &forward, Lam *lam) |
| | Where a jump to lam goes once the blocks that forward skips are skipped.
|
| fe::Vector< const Liveness::Block * > | mim::plug::mach::layout (const Liveness &livelive, const LamMap< Lam * > &forward={}) |
| | The blocks of live in emission order: each block is followed by the one it falls through to, where possible.
|
| void | mim::plug::mach::for_each_use (const Liveness &livelive, auto f) |
| | Calls f for each use of a value in live.
|
| void | mim::plug::mach::rewrite_blocks (const Liveness &livelive, Rewriter &rw) |
| | Rewrites the filter and body of each block of live in place.
|
| size_t | mim::plug::mach::num_params (Lam *lam) |
| | The parameters of lam without its return continuation.
|
| ParamRegs | mim::plug::mach::param_regs (const Target &target, Lam *fun, const DefMap< size_t > ®s) |
| | Where the known() function fun receives its parameters, given the registers regs that Color assigned to them.
|
| fe::Vector< ArgLoc > | mim::plug::mach::arg_locs (const Target &target, const Def *arg, size_t n, size_t num, const ParamRegs *conv) |
| | The ArgLocs of the first num of the n arguments in arg under conv, or the ABI if it is nullptr.
|
| const Conv * | mim::plug::mach::callee_conv (const LamMap< Conv > &convs, const Liveness::Block &block) |
| | The Conv of the callee that the call at the end of block returns from, if it has one.
|
| bool | mim::plug::mach::clobbered (const Target &target, const Conv *conv, Target::Class cls, size_t r) |
| | Does a call of a function with the convention conv, or of an ABI function if there is none, clobber r?
|
| const Liveness::Block * | mim::plug::mach::call_cont (const Liveness &livelive, Lam *fun, const Liveness::Block &block) |
| | The block that a call at the end of block returns to, if any.
|
| template<class Keep, class F> |
| void | mim::plug::mach::interferences (const Liveness &livelive, const Liveness::Block &block, Keep keep, F f) |
| | Calls f (d, v) for each value v that is live at the definition of d or defined along with it.
|