pub struct CountLeadingZerosOperation<'c> { /* private fields */ }
Expand description
A ctlz
operation. Counts the leading zeros an integer value.
The ctlz
operation computes the number of leading zeros of an integer value.
It operates on scalar, tensor or vector.
Example:
// Scalar ctlz function value.
%a = math.ctlz %b : i32
Implementations§
source§impl<'c> CountLeadingZerosOperation<'c>
impl<'c> CountLeadingZerosOperation<'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>
) -> CountLeadingZerosOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CountLeadingZerosOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<CountLeadingZerosOperation<'c>> for Operation<'c>
impl<'c> From<CountLeadingZerosOperation<'c>> for Operation<'c>
source§fn from(operation: CountLeadingZerosOperation<'c>) -> Self
fn from(operation: CountLeadingZerosOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CountLeadingZerosOperation<'c>
impl<'c> !Send for CountLeadingZerosOperation<'c>
impl<'c> !Sync for CountLeadingZerosOperation<'c>
impl<'c> Unpin for CountLeadingZerosOperation<'c>
impl<'c> UnwindSafe for CountLeadingZerosOperation<'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