Module codegen

Source
Expand description

Converts AST into linear LIR.
Also builds live-intervals for every virtual-register to be filled in by real scratch-registers during Register Allocation

Modules§

lir
Low-level Intermediate representation as an x86-64 assembly instruction abstraction to simplify register allocation
register
Operands used in codegen
register_allocation
Gets LIR with virtual registers as input and fills them in with physical registers using linear scan, spilling registers to the stack when no more scratch-registers are free

Structs§

Compiler

Functions§

align