pub struct Register {
pub kind: RegKind,
pub index: u32,
pub ptx_type: PtxType,
}Expand description
A virtual PTX register with a kind prefix and unique index.
Register names follow PTX conventions: %r0 (32-bit int), %rd0
(64-bit int), %f0 (f32), %fd0 (f64), %p0 (predicate).
Fields§
§kind: RegKindWhich register name prefix to use.
index: u32Unique index within this kind.
ptx_type: PtxTypeThe PTX type this register was declared with.
Implementations§
Trait Implementations§
impl Copy for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnsafeUnpin for Register
impl UnwindSafe for Register
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