pub(crate) struct DstRegisterChecker<'v> {
pass: Pass,
writer_map: &'v RegisterWriterMap,
writer_info: RegisterWriter,
op_is_add_shift: bool,
disallow_equal: Option<RegisterId>,
}Expand description
State information returned by Validator::dst_registers_allowed
Fields§
§pass: PassIs this the original or retry pass?
writer_map: &'v RegisterWriterMapReference to a table of RegisterWriter information for each register
writer_info: RegisterWriterThe new RegisterWriter under consideration
op_is_add_shift: boolWas this Opcode::AddShift?
disallow_equal: Option<RegisterId>Optionally disallow one matching register, used to implement model::disallow_src_is_dst
Implementations§
Source§impl<'v> DstRegisterChecker<'v>
impl<'v> DstRegisterChecker<'v>
Sourcepub(crate) fn check(&self, dst: RegisterId) -> bool
pub(crate) fn check(&self, dst: RegisterId) -> bool
Check a single destination register for usability, using context from
Validator::dst_registers_allowed
Trait Implementations§
Source§impl<'v> Clone for DstRegisterChecker<'v>
impl<'v> Clone for DstRegisterChecker<'v>
Source§fn clone(&self) -> DstRegisterChecker<'v>
fn clone(&self) -> DstRegisterChecker<'v>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'v> Freeze for DstRegisterChecker<'v>
impl<'v> RefUnwindSafe for DstRegisterChecker<'v>
impl<'v> Send for DstRegisterChecker<'v>
impl<'v> Sync for DstRegisterChecker<'v>
impl<'v> Unpin for DstRegisterChecker<'v>
impl<'v> UnsafeUnpin for DstRegisterChecker<'v>
impl<'v> UnwindSafe for DstRegisterChecker<'v>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more