Register allocation
register_allocation
¶
X86RegisterAllocator
¶
Bases: BlockNaiveAllocator
Source code in xdsl/backend/x86/register_allocation.py
__init__(available_registers: RegisterStack) -> None
¶
allocate_func(func: x86_func.FuncOp) -> None
¶
Allocates values in function passed in to registers. The whole function must have been lowered to the relevant x86 dialects and it must contain no unrealized casts.