pub struct LaneIdOperation<'c> { /* private fields */ }Expand description
A lane_id operation.
Returns the lane id within the subgroup (warp/wave).
Example:
%laneId = gpu.lane_idIf upper_bound is set, executions with more than upper_bound lanes per
subgroup cause undefined behavior. In the abscence of upper_bound,
the lane id is still assumed to be non-negative and less than the
target-independent kMaxSubgroupSize (currently 128).
Implementations§
Source§impl<'c> LaneIdOperation<'c>
impl<'c> LaneIdOperation<'c>
Sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
Sourcepub fn builder(
context: &'c Context,
location: Location<'c>,
) -> LaneIdOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> LaneIdOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn upper_bound(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_upper_bound(&mut self, value: IntegerAttribute<'c>)
pub fn remove_upper_bound(&mut self) -> Result<(), Error>
Trait Implementations§
Source§impl<'c> Clone for LaneIdOperation<'c>
impl<'c> Clone for LaneIdOperation<'c>
Source§fn clone(&self) -> LaneIdOperation<'c>
fn clone(&self) -> LaneIdOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for LaneIdOperation<'c>
impl<'c> Debug for LaneIdOperation<'c>
Source§impl<'b> From<LaneIdOperation<'b>> for GpuDialectOperation<'b>
impl<'b> From<LaneIdOperation<'b>> for GpuDialectOperation<'b>
Source§fn from(op: LaneIdOperation<'b>) -> Self
fn from(op: LaneIdOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<LaneIdOperation<'c>> for Operation<'c>
impl<'c> From<LaneIdOperation<'c>> for Operation<'c>
Source§fn from(operation: LaneIdOperation<'c>) -> Self
fn from(operation: LaneIdOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for LaneIdOperation<'c>
impl<'c> PartialEq for LaneIdOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for LaneIdOperation<'c>
impl<'c> TryFrom<Operation<'c>> for LaneIdOperation<'c>
impl<'c> Eq for LaneIdOperation<'c>
impl<'c> StructuralPartialEq for LaneIdOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for LaneIdOperation<'c>
impl<'c> RefUnwindSafe for LaneIdOperation<'c>
impl<'c> !Send for LaneIdOperation<'c>
impl<'c> !Sync for LaneIdOperation<'c>
impl<'c> Unpin for LaneIdOperation<'c>
impl<'c> UnwindSafe for LaneIdOperation<'c>
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