Struct regalloc::RegUsageCollector
source · [−]pub struct RegUsageCollector<'a> {
pub reg_vecs: &'a mut RegVecs,
}
Fields
reg_vecs: &'a mut RegVecs
Implementations
sourceimpl<'a> RegUsageCollector<'a>
impl<'a> RegUsageCollector<'a>
pub fn new(reg_vecs: &'a mut RegVecs) -> Self
pub fn add_use(&mut self, r: Reg)
pub fn add_uses(&mut self, regs: &[Reg])
pub fn add_def(&mut self, r: Writable<Reg>)
pub fn add_defs(&mut self, regs: &[Writable<Reg>])
pub fn add_mod(&mut self, r: Writable<Reg>)
pub fn add_mods(&mut self, regs: &[Writable<Reg>])
pub fn get_use_def_mod_vecs_test_framework_only(
&self
) -> (Vec<Reg>, Vec<Reg>, Vec<Reg>)
pub fn get_empty_reg_vecs_test_framework_only(sanitized: bool) -> RegVecs
Auto Trait Implementations
impl<'a> RefUnwindSafe for RegUsageCollector<'a>
impl<'a> Send for RegUsageCollector<'a>
impl<'a> Sync for RegUsageCollector<'a>
impl<'a> Unpin for RegUsageCollector<'a>
impl<'a> !UnwindSafe for RegUsageCollector<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more