pan/bi: Add register allocator