pub enum Operand {
Register(Register),
Immediate(ImmValue),
Address {
base: Register,
offset: Option<i64>,
},
Symbol(String),
}Expand description
An operand in a PTX instruction.
Operands appear as source arguments in arithmetic, memory, and control-flow
instructions. The Operand::Address variant models the [base + offset]
addressing syntax used in load/store instructions.
Variants§
Register(Register)
A register operand.
Immediate(ImmValue)
An immediate (literal) value.
Address
A memory address with a base register and optional byte offset.
Fields
Symbol(String)
A symbolic reference (e.g., a parameter name or label).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnsafeUnpin for Operand
impl UnwindSafe for Operand
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