Riscv allocate registers
riscv_allocate_registers
¶
RISCVAllocateRegistersPass
dataclass
¶
Bases: ModulePass
Allocates unallocated registers in the module.
Source code in xdsl/transforms/riscv_allocate_registers.py
name = 'riscv-allocate-registers'
class-attribute
instance-attribute
¶
allocation_strategy: str = 'LivenessBlockNaive'
class-attribute
instance-attribute
¶
add_regalloc_stats: bool = False
class-attribute
instance-attribute
¶
Inserts a comment with register allocation info in the IR.
allow_infinite: bool = False
class-attribute
instance-attribute
¶
Whether to allow using infinite registers during register allocation.
force_infinite: bool = False
class-attribute
instance-attribute
¶
Only use infinite registers during register allocation.