pub struct DotBF16Operation<'c> { /* private fields */ }Expand description
An avx512.dot operation. Dot BF16 op.
The dot op is an AVX512-BF16 specific op that can lower to the proper
LLVMAVX512BF16 operation llvm.dpbf16ps depending on the width of MLIR
vectors it is applied to.
§From the Intel Intrinsics Guide:
Compute dot-product of BF16 (16-bit) floating-point pairs in a and b,
accumulating the intermediate single-precision (32-bit) floating-point
elements with elements in src, and store the results in dst.
Example:
%dst = x86vector.avx512.dot %src, %a, %b : vector<32xbf16> -> vector<16xf32>Implementations§
Source§impl<'c> DotBF16Operation<'c>
impl<'c> DotBF16Operation<'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>,
) -> DotBF16OperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> DotBF16OperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn dst(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn src(&self) -> Result<Value<'c, '_>, Error>
pub fn a(&self) -> Result<Value<'c, '_>, Error>
pub fn b(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
Source§impl<'c> Clone for DotBF16Operation<'c>
impl<'c> Clone for DotBF16Operation<'c>
Source§fn clone(&self) -> DotBF16Operation<'c>
fn clone(&self) -> DotBF16Operation<'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 DotBF16Operation<'c>
impl<'c> Debug for DotBF16Operation<'c>
Source§impl<'b> From<DotBF16Operation<'b>> for X86VectorDialectOperation<'b>
impl<'b> From<DotBF16Operation<'b>> for X86VectorDialectOperation<'b>
Source§fn from(op: DotBF16Operation<'b>) -> Self
fn from(op: DotBF16Operation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<DotBF16Operation<'c>> for Operation<'c>
impl<'c> From<DotBF16Operation<'c>> for Operation<'c>
Source§fn from(operation: DotBF16Operation<'c>) -> Self
fn from(operation: DotBF16Operation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for DotBF16Operation<'c>
impl<'c> PartialEq for DotBF16Operation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for DotBF16Operation<'c>
impl<'c> TryFrom<Operation<'c>> for DotBF16Operation<'c>
impl<'c> Eq for DotBF16Operation<'c>
impl<'c> StructuralPartialEq for DotBF16Operation<'c>
Auto Trait Implementations§
impl<'c> Freeze for DotBF16Operation<'c>
impl<'c> RefUnwindSafe for DotBF16Operation<'c>
impl<'c> !Send for DotBF16Operation<'c>
impl<'c> !Sync for DotBF16Operation<'c>
impl<'c> Unpin for DotBF16Operation<'c>
impl<'c> UnwindSafe for DotBF16Operation<'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