Request the register allocator to provide the next available register of the specified class.
(
&mut self,
class: RegClass,
masm: &mut M,
)
| 170 | /// Request the register allocator to provide the next available |
| 171 | /// register of the specified class. |
| 172 | pub fn reg_for_class<M: MacroAssembler>( |
| 173 | &mut self, |
| 174 | class: RegClass, |
| 175 | masm: &mut M, |
| 176 | ) -> Result<Reg> { |
| 177 | self.regalloc.reg_for_class(class, &mut |regalloc| { |
| 178 | Self::spill_impl(&mut self.stack, regalloc, &self.frame, masm) |
| 179 | }) |
| 180 | } |
| 181 | |
| 182 | /// Convenience wrapper around `CodeGenContext::reg_for_class`, to |
| 183 | /// request the next available general purpose register. |
no outgoing calls
no test coverage detected