pub enum Operand {
Reg(Register),
ImmI32(i32),
ImmU32(u32),
ImmI64(i64),
ImmU64(u64),
ImmF32(f32),
ImmF64(f64),
SpecialReg(SpecialReg),
SharedAddr(String),
}Expand description
An operand to a PTX instruction.
Variants§
Reg(Register)
A virtual register.
ImmI32(i32)
32-bit signed integer immediate.
ImmU32(u32)
32-bit unsigned integer immediate.
ImmI64(i64)
64-bit signed integer immediate.
ImmU64(u64)
64-bit unsigned integer immediate.
ImmF32(f32)
32-bit float immediate.
ImmF64(f64)
64-bit float immediate.
SpecialReg(SpecialReg)
A PTX special register (%tid.x, %ntid.x, etc.).
Address of a named shared memory allocation.
Used with Mov to load a shared allocation’s base address into a
register: mov.u32 %r0, sdata;. Displays as the bare name.
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