pub enum PtxOperand {
Register(String),
SpecialReg(String),
ImmInt(i64),
ImmFloat(f64),
Label(String),
Address {
base: String,
offset: Option<i64>,
},
Vector(Vec<String>),
}Expand description
PTX operand
Variants§
Register(String)
Register (%r0, %f1, %p0)
SpecialReg(String)
Special register (%tid.x, %ctaid.y, %ntid.z, %laneid, %warpid)
ImmInt(i64)
Immediate integer
ImmFloat(f64)
Immediate float
Label(String)
Label reference
Address
Memory address [%r0], [%r0+4], [name]
Vector(Vec<String>)
Vector operand {%r0, %r1, %r2, %r3}
Trait Implementations§
Source§impl Clone for PtxOperand
impl Clone for PtxOperand
Source§fn clone(&self) -> PtxOperand
fn clone(&self) -> PtxOperand
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 Freeze for PtxOperand
impl RefUnwindSafe for PtxOperand
impl Send for PtxOperand
impl Sync for PtxOperand
impl Unpin for PtxOperand
impl UnsafeUnpin for PtxOperand
impl UnwindSafe for PtxOperand
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