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
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
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.
__init__(allocation_strategy: str = 'LivenessBlockNaive', add_regalloc_stats: bool = False, allow_infinite: bool = False, force_infinite: bool = False) -> None
apply(ctx: Context, op: ModuleOp) -> None
Source code in xdsl/transforms/riscv_allocate_registers.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |