58 std::optional<size_t> k_;
83 std::optional<size_t> k_;
Some "global" variables needed all over the place.
A file name from the command line and the stream to write to;.
The World represents the whole program and manages creation of MimIR nodes (Defs).
constrain_fun() alone; a testing aid.
FunPhase(World &world, flags_t annex, const Target &target)
Visits the closed Cns with a body of a scheduled World for one Target, each before the ones that call...
FunPhase(World &world, flags_t annex, const Target &target)
const Target & target() const
Prints the Liveness of every function to -X <backend>:live=<file> or stdout; a debugging and testing ...
FunPhase(World &world, flags_t annex, const Target &target)
Liveness of the values of one scheduled function, as a side table.
RegAlloc(World &world, flags_t annex, const Target &target)
Spilling(World &world, flags_t annex, const Target &target)
The machine facts of a native backend that the phases of mach need.
std::optional< size_t > arg_k(Driver &, const Target &)
The k of spill_fun(): -X <backend>:k=<n>, if given.
void 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 schedul...
bool constrain_fun(const Liveness &live)
Copies fixed and live tied operands by a jump right before their instruction, keeping the graph chord...
void color_fun(const FunPhase &, Lam *fun, Liveness live, LamMap< Conv > &convs, std::ostream *dot)
Assigns a register to every value by one PBQP per function and register class (Buchwald,...
GIDMap< Lam *, To > LamMap