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