Skip to main content

Module coloring

Module coloring 

Source
Expand description

Graph coloring register allocator following Chaitin-Briggs.

Assigns physical registers to virtual registers by coloring the interference graph. Pre-colors parameter registers per Rule 9: VReg(0)→PhysReg(0), VReg(1)→PhysReg(1), etc.

Structs§

ColoringResult
Result of graph coloring.

Functions§

color
Perform graph coloring with pre-colored parameter registers.