The src/regalloc Directory
Namespace regalloc, delivered for TC-9. Coloration of the Interference
graph and registers allocation.
File: local.am (src/regalloc/)
The Makefile configuration relative to the
src/regalloc/directory. It is responsible for the integration into thelibtclibrary with everything exported from theregallocmodule, and the linkage of the directory’s unit tests in the test-suite.
File: libregalloc.* (src/regalloc/)
The interface of the
regallocmodule. It exports a single procedureallocate_registers, which allocates the registers for each fragment and removes useless moves. It returns aTempMapassociating each temporary to a register.
File: tasks.* (src/regalloc/)
The tasks relative to the
regallocmodule (see: The src/task Directory).
File: color.* (src/regalloc/)
The
Colorimplementation. Colors an interference graph.
File: regallocator.* (src/regalloc/)
The
RegisterAllocatorimplementation. Repeat the coloration until it succeeds (no spills).
File: test-regalloc.cc (src/regalloc/)
The unit tests.