mlir.dialects.x86vector¶
Classes¶
The |
|
From the Intel Intrinsics Guide: |
|
From the Intel Intrinsics Guide: |
|
The |
|
From the Intel Intrinsics Guide: |
|
The |
|
The |
|
Computes the 4-way dot products of the lower and higher parts of the source |
|
The mask.compress op is an AVX512 specific op that can lower to the |
|
The mask.rndscale op is an AVX512 specific op that can lower to the proper |
|
The |
|
The |
|
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- class mlir.dialects.x86vector.AVX10DotInt8Op(w, a, b, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe
dotop is an AVX10-Int8 specific op that can lower to the proper LLVMAVX10-INT8 operationllvm.vpdpbssd.512.Multiply groups of 4 adjacent pairs of signed 8-bit integers in
awith corresponding signed 8-bit integers inb, producing 4 intermediate signed 16-bit results. Sum these 4 results with the corresponding 32-bit integer inw, and store the packed 32-bit results indst.Example:
%dst = x86vector.avx10.dot.i8 %w, %a, %b : vector<64xi8> -> vector<16xi32>
- OPERATION_NAME = 'x86vector.avx10.dot.i8'¶
- _ODS_REGIONS = (0, True)¶
- w() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.AVX10DotInt8OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.AVX10DotInt8OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx10.dot.i8'¶
- w() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx10_dot_i8(w, a, b, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.BcstToPackedF32Op(dst, a, *, loc=None, ip=None)¶
Bases:
_ods_irFrom the Intel Intrinsics Guide:¶
Convert scalar BF16 or F16 (16-bit) floating-point element stored at memory locations starting at location
__Ato a single-precision (32-bit) floating-point, broadcast it to packed single-precision (32-bit) floating-point elements, and store the results indst.Example:
%dst = x86vector.avx.bcst_to_f32.packed %a : memref<1xbf16> -> vector<8xf32> %dst = x86vector.avx.bcst_to_f32.packed %a : memref<1xf16> -> vector<8xf32>
- OPERATION_NAME = 'x86vector.avx.bcst_to_f32.packed'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.BcstToPackedF32OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.BcstToPackedF32OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.bcst_to_f32.packed'¶
- a() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_bcst_to_f32_packed(dst, a, *, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.CvtPackedEvenIndexedToF32Op(dst, a, *, loc=None, ip=None)¶
Bases:
_ods_irFrom the Intel Intrinsics Guide:¶
Convert packed BF16 or F16 (16-bit) floating-point even-indexed elements stored at memory locations starting at location
__Ato packed single-precision (32-bit) floating-point elements, and store the results indst.Example:
%dst = x86vector.avx.cvt.packed.even.indexed_to_f32 %a : memref<16xbf16> -> vector<8xf32> %dst = x86vector.avx.cvt.packed.even.indexed_to_f32 %a : memref<16xf16> -> vector<8xf32>
- OPERATION_NAME = 'x86vector.avx.cvt.packed.even.indexed_to_f32'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.CvtPackedEvenIndexedToF32OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.CvtPackedEvenIndexedToF32OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.cvt.packed.even.indexed_to_f32'¶
- a() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_cvt_packed_even_indexed_to_f32(dst, a, *, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.CvtPackedF32ToBF16Op(dst, a, *, loc=None, ip=None)¶
Bases:
_ods_irThe
convert_f32_to_bf16op is an AVX512-BF16 specific op that can lower to the proper LLVMAVX512BF16 operationllvm.cvtneps2bf16depending on the width of MLIR vectors it is applied to.From the Intel Intrinsics Guide:¶
Convert packed single-precision (32-bit) floating-point elements in
ato packed BF16 (16-bit) floating-point elements, and store the results indst.Example:
%dst = x86vector.avx512.cvt.packed.f32_to_bf16 %a : vector<8xf32> -> vector<8xbf16>
- OPERATION_NAME = 'x86vector.avx512.cvt.packed.f32_to_bf16'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.CvtPackedF32ToBF16OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.CvtPackedF32ToBF16OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.cvt.packed.f32_to_bf16'¶
- a() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx512_cvt_packed_f32_to_bf16(dst, a, *, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.CvtPackedOddIndexedToF32Op(dst, a, *, loc=None, ip=None)¶
Bases:
_ods_irFrom the Intel Intrinsics Guide:¶
Convert packed BF16 or F16 (16-bit) floating-point odd-indexed elements stored at memory locations starting at location
__Ato packed single-precision (32-bit) floating-point elements, and store the results indst.Example:
%dst = x86vector.avx.cvt.packed.odd.indexed_to_f32 %a : memref<16xbf16> -> vector<8xf32> %dst = x86vector.avx.cvt.packed.odd.indexed_to_f32 %a : memref<16xf16> -> vector<8xf32>
- OPERATION_NAME = 'x86vector.avx.cvt.packed.odd.indexed_to_f32'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.CvtPackedOddIndexedToF32OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.CvtPackedOddIndexedToF32OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.cvt.packed.odd.indexed_to_f32'¶
- a() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_cvt_packed_odd_indexed_to_f32(dst, a, *, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.DotBF16Op(src, a, b, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe
dotop is an AVX512-BF16 specific op that can lower to the proper LLVMAVX512BF16 operationllvm.dpbf16psdepending 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
aandb, accumulating the intermediate single-precision (32-bit) floating-point elements with elements insrc, and store the results indst.Example:
%dst = x86vector.avx512.dot %src, %a, %b : vector<32xbf16> -> vector<16xf32>
- OPERATION_NAME = 'x86vector.avx512.dot'¶
- _ODS_REGIONS = (0, True)¶
- src() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.DotBF16OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.DotBF16OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.dot'¶
- src() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx512_dot(src, a, b, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.DotInt8Op(w, a, b, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe
dotop is an AVX2-Int8 specific op that can lower to the proper LLVMAVX2-INT8 operationllvm.vpdpbssddepending on the width of MLIR vectors it is applied to.From the Intel Intrinsics Guide:¶
Multiply groups of 4 adjacent pairs of signed 8-bit integers in
awith corresponding signed 8-bit integers inb, producing 4 intermediate signed 16-bit results. Sum these 4 results with the corresponding 32-bit integer inw, and store the packed 32-bit results indst.Example:
%dst = x86vector.avx.dot.i8 %w, %a, %b : vector<32xi8> -> vector<8xi32>
- OPERATION_NAME = 'x86vector.avx.dot.i8'¶
- _ODS_REGIONS = (0, True)¶
- w() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.DotInt8OpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.DotInt8OpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.dot.i8'¶
- w() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_dot_i8(w, a, b, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.DotOp(a, b, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irComputes the 4-way dot products of the lower and higher parts of the source vectors and broadcasts the two results to the lower and higher elements of the destination vector, respectively. Adding one element of the lower part to one element of the higher part in the destination vector yields the full dot product of the two source vectors.
Example:
%0 = x86vector.avx.intr.dot %a, %b : vector<8xf32> %1 = vector.extract %0[%i0] : f32 from vector<8xf32> %2 = vector.extract %0[%i4] : f32 from vector<8xf32> %d = arith.addf %1, %2 : f32
- OPERATION_NAME = 'x86vector.avx.intr.dot'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- res() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.DotOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.DotOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.intr.dot'¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_intr_dot(a, b, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.MaskCompressOp(k, a, *, src=None, constant_src=None, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe mask.compress op is an AVX512 specific op that can lower to the
llvm.mask.compressinstruction. Instead ofsrc, a constant vector vector attributeconstant_srcmay be specified. If neithersrcnorconstant_srcis specified, the remaining elements in the result vector are set to zero.From the Intel Intrinsics Guide:¶
Contiguously store the active integer/floating-point elements in
a(those with their respective bit set in writemaskk) todst, and pass through the remaining elements fromsrc.- OPERATION_NAME = 'x86vector.avx512.mask.compress'¶
- _ODS_REGIONS = (0, True)¶
- k() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- src() _ods_ir[_ods_ir] | None¶
- constant_src() _ods_ir | None¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.MaskCompressOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.MaskCompressOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.mask.compress'¶
- k() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- src() _ods_ir[_ods_ir] | None¶
- constant_src() _ods_ir | None¶
- mlir.dialects.x86vector.avx512_mask_compress(k, a, *, src=None, constant_src=None, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.MaskRndScaleOp(src, k, a, imm, rounding, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe mask.rndscale op is an AVX512 specific op that can lower to the proper LLVMAVX512 operation:
llvm.mask.rndscale.ps.512orllvm.mask.rndscale.pd.512instruction depending on the type of vectors it is applied to.From the Intel Intrinsics Guide:¶
Round packed floating-point elements in
ato the number of fraction bits specified byimm, and store the results indstusing writemaskk(elements are copied from src when the corresponding mask bit is not set).- OPERATION_NAME = 'x86vector.avx512.mask.rndscale'¶
- _ODS_REGIONS = (0, True)¶
- src() _ods_ir[_ods_ir]¶
- k() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- imm() _ods_ir¶
- rounding() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.MaskRndScaleOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.MaskRndScaleOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.mask.rndscale'¶
- src() _ods_ir[_ods_ir]¶
- k() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- imm() _ods_ir¶
- rounding() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx512_mask_rndscale(src, k, a, imm, rounding, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.MaskScaleFOp(src, a, b, k, rounding, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe
mask.scalefop is an AVX512 specific op that can lower to the proper LLVMAVX512 operation:llvm.mask.scalef.ps.512orllvm.mask.scalef.pd.512depending on the type of MLIR vectors it is applied to.From the Intel Intrinsics Guide:¶
Scale the packed floating-point elements in
ausing values fromb, and store the results indstusing writemaskk(elements are copied from src when the corresponding mask bit is not set).- OPERATION_NAME = 'x86vector.avx512.mask.scalef'¶
- _ODS_REGIONS = (0, True)¶
- src() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- k() _ods_ir¶
- rounding() _ods_ir[_ods_ir]¶
- dst() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.MaskScaleFOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.MaskScaleFOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.mask.scalef'¶
- src() _ods_ir[_ods_ir]¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- k() _ods_ir¶
- rounding() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx512_mask_scalef(src, a, b, k, rounding, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.RsqrtOp(a, *, results=None, loc=None, ip=None)¶
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.rsqrt'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.RsqrtOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.RsqrtOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx.rsqrt'¶
- a() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx_rsqrt(a, *, results=None, loc=None, ip=None) _ods_ir¶
- class mlir.dialects.x86vector.Vp2IntersectOp(a, b, *, results=None, loc=None, ip=None)¶
Bases:
_ods_irThe
vp2intersectop is an AVX512 specific op that can lower to the proper LLVMAVX512 operation:llvm.vp2intersect.d.512orllvm.vp2intersect.q.512depending on the type of MLIR vectors it is applied to.From the Intel Intrinsics Guide:¶
Compute intersection of packed integer vectors
aandb, and store indication of match in the corresponding bit of two mask registers specified byk1andk2. A match in corresponding elements ofaandbis indicated by a set bit in the corresponding bit of the mask registers.- OPERATION_NAME = 'x86vector.avx512.vp2intersect'¶
- _ODS_REGIONS = (0, True)¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- k1() _ods_ir[_ods_ir]¶
- k2() _ods_ir[_ods_ir]¶
- class mlir.dialects.x86vector.Vp2IntersectOpAdaptor(operands: list, attributes: OpAttributeMap)¶
- class mlir.dialects.x86vector.Vp2IntersectOpAdaptor(operands: list, opview: OpView)
Bases:
_ods_ir- OPERATION_NAME = 'x86vector.avx512.vp2intersect'¶
- a() _ods_ir[_ods_ir]¶
- b() _ods_ir[_ods_ir]¶
- mlir.dialects.x86vector.avx512_vp2intersect(a, b, *, results=None, loc=None, ip=None) _ods_ir¶