pub struct DecodedInstruction {
pub offset: u32,
pub size: u8,
pub operation: Operation,
pub predicate: u8,
pub predicate_negated: bool,
}Expand description
A fully decoded WAVE instruction
Fields§
§offset: u32Byte offset from start of code section
size: u8Size of instruction in bytes (4 or 8)
operation: OperationThe decoded operation
predicate: u8Predicate register (0 = unpredicated, 1-3 = p1-p3)
predicate_negated: boolWhether predicate is negated
Implementations§
Source§impl DecodedInstruction
impl DecodedInstruction
Sourcepub fn is_control_flow(&self) -> bool
pub fn is_control_flow(&self) -> bool
Check if this is a control flow instruction
Sourcepub fn is_wave_op(&self) -> bool
pub fn is_wave_op(&self) -> bool
Check if this is a wave operation
Trait Implementations§
Source§impl Clone for DecodedInstruction
impl Clone for DecodedInstruction
Source§fn clone(&self) -> DecodedInstruction
fn clone(&self) -> DecodedInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedInstruction
impl Debug for DecodedInstruction
Source§impl PartialEq for DecodedInstruction
impl PartialEq for DecodedInstruction
impl StructuralPartialEq for DecodedInstruction
Auto Trait Implementations§
impl Freeze for DecodedInstruction
impl RefUnwindSafe for DecodedInstruction
impl Send for DecodedInstruction
impl Sync for DecodedInstruction
impl Unpin for DecodedInstruction
impl UnsafeUnpin for DecodedInstruction
impl UnwindSafe for DecodedInstruction
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