pub struct MulSIExtendedOperation<'c> { /* private fields */ }
Expand description
A mulsi_extended
operation.
extended signed integer multiplication operation
.
Performs (2*N)-bit multiplication on sign-extended operands. Returns two
N-bit results: the low and the high halves of the product. The low half has
the same value as the result of regular multiplication arith.muli
with
the same operands.
Example:
// Scalar multiplication.
%low, %high = arith.mulsi_extended %a, %b : i32
// Vector element-wise multiplication.
%c:2 = arith.mulsi_extended %d, %e : vector<4xi32>
// Tensor element-wise multiplication.
%x:2 = arith.mulsi_extended %y, %z : tensor<4x?xi8>
Implementations§
source§impl<'c> MulSIExtendedOperation<'c>
impl<'c> MulSIExtendedOperation<'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>
) -> MulSIExtendedOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MulSIExtendedOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn low(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn high(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<MulSIExtendedOperation<'c>> for Operation<'c>
impl<'c> From<MulSIExtendedOperation<'c>> for Operation<'c>
source§fn from(operation: MulSIExtendedOperation<'c>) -> Self
fn from(operation: MulSIExtendedOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MulSIExtendedOperation<'c>
impl<'c> !Send for MulSIExtendedOperation<'c>
impl<'c> !Sync for MulSIExtendedOperation<'c>
impl<'c> Unpin for MulSIExtendedOperation<'c>
impl<'c> UnwindSafe for MulSIExtendedOperation<'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