pub struct PtxFunction {
pub name: String,
pub params: Vec<PtxVariable>,
pub registers: Vec<PtxRegDecl>,
pub locals: Vec<PtxVariable>,
pub body: Vec<PtxStatement>,
pub is_entry: bool,
}Expand description
PTX function (entry or helper)
Fields§
§name: StringFunction name
params: Vec<PtxVariable>Parameters (.param declarations)
registers: Vec<PtxRegDecl>Register declarations (.reg)
locals: Vec<PtxVariable>Local variable declarations
body: Vec<PtxStatement>Instruction body
is_entry: boolWhether this is an entry point
Trait Implementations§
Source§impl Clone for PtxFunction
impl Clone for PtxFunction
Source§fn clone(&self) -> PtxFunction
fn clone(&self) -> PtxFunction
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 PtxFunction
impl RefUnwindSafe for PtxFunction
impl Send for PtxFunction
impl Sync for PtxFunction
impl Unpin for PtxFunction
impl UnsafeUnpin for PtxFunction
impl UnwindSafe for PtxFunction
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