#include <optional>#include <mim/plugin.h>#include "mim/plug/mach/liveness.h"#include "mim/plug/mach/phase.h"Go to the source code of this file.
Classes | |
| class | mim::plug::mach::Live |
| Prints the Liveness of every function to -X <backend>:live=<file> or stdout; a debugging and testing aid. More... | |
| class | mim::plug::mach::Spilling |
| spill_fun() alone, with the ABI at every call; a testing aid. More... | |
| class | mim::plug::mach::Constrain |
| constrain_fun() alone; a testing aid. More... | |
| class | mim::plug::mach::RegAlloc |
| spill_fun(), constrain_fun(), and color_fun() for one function after the other, bottom-up. More... | |
Namespaces | |
| namespace | mim |
| namespace | mim::plug |
| namespace | mim::plug::mach |
| The mach Plugin | |
Functions | |
| void | mim::plug::mach::spill_fun (const FunPhase &, Lam *fun, const LamMap< Conv > &convs, std::optional< size_t > k) |
| Spills and reloads until at most k values of each register class are live at every point of a scheduled function. | |
| bool | mim::plug::mach::constrain_fun (const Liveness &livelive) |
| Copies fixed and live tied operands by a jump right before their instruction, keeping the graph chordal (Hack). | |
| void | mim::plug::mach::color_fun (const FunPhase &, Lam *fun, Liveness livelive, LamMap< Conv > &convs, std::ostream *dot) |
| Assigns a register to every value by one PBQP per function and register class (Buchwald, Zwinkau, Bersch, CC 2011). | |
| std::optional< size_t > | mim::plug::mach::arg_k (Driver &, const Target &) |
| The k of spill_fun(): -X <backend>:k=<n>, if given. | |