Hi, I have a quick question about regalloc2. The library operates over VReg structures however there seems to be no way to specify a bitwidth in VReg.
I want to use regalloc2 to do register allocation for me in my IR. However I can specify bitwidth of virtual registers in my IR and i want to convey that to regalloc2.
How can regalloc2 do register allocation on different sized registers...?
https://docs.rs/regalloc2/0.9.3/regalloc2/struct.VReg.html
^ docs for VReg
If i build a MachineEnv for x86 would i only specify the full width registers and then the register allocator would allow me to use the full width of the register?
@CompilerSmith this question was moved to the #cranelift topic, please see my answer there
(it looks like it was asked twice and only one copy of the question was moved)
CompilerSmith has marked this topic as resolved.
Last updated: Nov 22 2024 at 16:03 UTC