spirv-llvm-translator-15.git
21 months ago[PATCH 23/79] [Backport to 15][DebugInfo] Support translation of DIStringType (#1877)
Viktoria Maximova [Fri, 10 Mar 2023 11:19:02 +0000 (03:19 -0800)]
[PATCH 23/79] [Backport to 15][DebugInfo] Support translation of DIStringType (#1877)

This type instruction describes a string, mostly for Fortran 90.

Spec:
KhronosGroup/SPIRV-Registry#186

Gbp-Pq: Name 0023-Backport-to-15-DebugInfo-Support-translation-of-DISt.patch

21 months ago[PATCH 22/79] [Backport to 15][DebugInfo] Add DebugTypeArrayDynamic translation ...
Dmitry Sidorov [Wed, 8 Mar 2023 18:22:53 +0000 (19:22 +0100)]
[PATCH 22/79] [Backport to 15][DebugInfo] Add DebugTypeArrayDynamic translation (#1871)

This instruction describes a dynamic array, mostly for Fortran 90.

Unlike DebugTypeArray it has Data Location, Associated, Allocated
and Rank parameters. If the appropriate metadata parameters
appear in LLVM IR in DW_TAG_array_type metadata, then such
debug type becomes treated as dynamic array by the translator
(of course if the appropriate extended instruction set is enabled).

Spec:
https://github.com/KhronosGroup/SPIRV-Registry/pull/186

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0022-Backport-to-15-DebugInfo-Add-DebugTypeArrayDynamic-t.patch

21 months ago[PATCH 21/79] [Backport to 15][DebugInfo] Add an option for NonSemantic.Shader.DebugI...
Dmitry Sidorov [Wed, 1 Mar 2023 18:23:49 +0000 (19:23 +0100)]
[PATCH 21/79] [Backport to 15][DebugInfo] Add an option for NonSemantic.Shader.DebugInfo.100 (#1855)

Under this option this extended instruction set will be implemented
Spec:
https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.Shader.DebugInfo.100.asciidoc

TODO: to rename NonSemantic.Kernel.DebugInfo.100 to
NonSemantic.Shader.DebugInfo.200 when the name is stable

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0021-Backport-to-15-DebugInfo-Add-an-option-for-NonSemant.patch

21 months ago[PATCH 20/79] [Backport to 15][DebugInfo] Add new Source Languages table used in...
Viktoria Maximova [Thu, 23 Feb 2023 18:10:43 +0000 (10:10 -0800)]
[PATCH 20/79] [Backport to 15][DebugInfo] Add new Source Languages table used in DebugCompilationUnit  (#1854)

This extended source language table is used by DebugCompilationUnit instruction when the extension is enabled. It enables support for more languages than exists in a core specification.
Spec: KhronosGroup/SPIRV-Registry#186

Enabling of Fortran language also allowed to fix FortranArray test that was originally XFAIL-ed in 9e234d9.

Gbp-Pq: Name 0020-Backport-to-15-DebugInfo-Add-new-Source-Languages-ta.patch

21 months ago[PATCH 19/79] [Backport to 15][DebugInfo] Add Target Function optional parameter...
Dmitry Sidorov [Thu, 23 Feb 2023 18:11:30 +0000 (19:11 +0100)]
[PATCH 19/79] [Backport to 15][DebugInfo] Add Target Function optional parameter to DebugFunction (#1853)

It's being added in
KhronosGroup/SPIRV-Registry#186

In DWARF it's used in 'trampoline' functions generated for Fortran external function calls.

Gbp-Pq: Name 0019-Backport-to-15-DebugInfo-Add-Target-Function-optiona.patch

21 months ago[PATCH 18/79] [Backport to 15] Initial support NonSemantic.Kernel.DebugInfo.100 ...
Viktoria Maximova [Mon, 20 Feb 2023 22:22:05 +0000 (14:22 -0800)]
[PATCH 18/79] [Backport to 15] Initial support NonSemantic.Kernel.DebugInfo.100 (#1846)

This patch implements the initial support for the new debug specification NonSemantic.Kernel.DebugInfo.100.
It also introduces support for the new debug instruction DISubrange.

Spec: KhronosGroup/SPIRV-Registry#186

Gbp-Pq: Name 0018-Backport-to-15-Initial-support-NonSemantic.Kernel.De.patch

21 months ago[PATCH 17/79] Update spirv-as invocations (#1933)
Dmitry Sidorov [Fri, 31 Mar 2023 11:40:26 +0000 (13:40 +0200)]
[PATCH 17/79] Update spirv-as invocations (#1933)

After SPIRV-Tools commit 2e0f4b52 ("tools: refactorize tools flags
parsing. (#5111)", 2023-02-27), spirv-as needs to be told explicitly
when reading from stdin.

Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
Gbp-Pq: Name 0017-Update-spirv-as-invocations-1933.patch

21 months ago[PATCH 16/79] Fix mangling of opcodes from SPV_KHR_bit_instructions in SPV-IR (#1869)
Andrzej Ratajewski [Tue, 7 Mar 2023 12:51:36 +0000 (13:51 +0100)]
[PATCH 16/79] Fix mangling of opcodes from SPV_KHR_bit_instructions in SPV-IR (#1869)

Gbp-Pq: Name 0016-Fix-mangling-of-opcodes-from-SPV_KHR_bit_instruction.patch

21 months ago[PATCH 15/79] Allow ReadNone and ReadOnly as Function attributes
Stanley Gambarin [Tue, 14 Feb 2023 00:24:44 +0000 (16:24 -0800)]
[PATCH 15/79] Allow ReadNone and ReadOnly as Function attributes

Gbp-Pq: Name 0015-Allow-ReadNone-and-ReadOnly-as-Function-attributes.patch

21 months ago[PATCH 14/79] [Backport to 15] Put memory(none) attribute instead of readnone (#1746)
Dmitry Sidorov [Tue, 29 Nov 2022 11:55:12 +0000 (12:55 +0100)]
[PATCH 14/79] [Backport to 15] Put memory(none) attribute instead of readnone (#1746)

Instead of creating readnone attributes on each parameter of
a function it's better to put just memory(none) which was recently
introduced.

See https://reviews.llvm.org/D135780

Co-authored by: Zou, Feng <feng.zou@intel.com>

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0014-Backport-to-15-Put-memory-none-attribute-instead-of-.patch

21 months ago[PATCH 13/79] [Backport to 15] Translate readnone attribute as function parameter...
Dmitry Sidorov [Tue, 8 Nov 2022 09:40:39 +0000 (10:40 +0100)]
[PATCH 13/79] [Backport to 15] Translate readnone attribute as function parameter attribute (#1697)

Community restricted readnone, readonly and writeonly attributes
to be only function parameter attributes. This patch aligns
the translator with llvm.org.

It also fixes a bug, when readnone attribute is being mapped
to NoWrite SPIR-V function parameter attribute.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0013-Backport-to-15-Translate-readnone-attribute-as-funct.patch

21 months ago[PATCH 12/79] Deprecate SPV_INTEL_non_constant_addrspace_printf extension (#1818)
Viktoria Maximova [Sat, 21 Jan 2023 20:45:36 +0000 (21:45 +0100)]
[PATCH 12/79] Deprecate SPV_INTEL_non_constant_addrspace_printf extension (#1818)

This change continues #1749.
We are removing SPV_INTEL_non_constant_addrspace_printf extension in
favor of SPV_EXT_relaxed_printf_string_address_space, which are
basically the same.

Signed-off-by: Maksimova, Viktoria <viktoria.maksimova@intel.com>
Gbp-Pq: Name 0012-Deprecate-SPV_INTEL_non_constant_addrspace_printf-ex.patch

21 months ago[PATCH 11/79] [Backport to 15] Add SPV_EXT_relaxed_printf_string_address_space extension
Dmitry Sidorov [Fri, 2 Dec 2022 13:05:05 +0000 (14:05 +0100)]
[PATCH 11/79] [Backport to 15] Add SPV_EXT_relaxed_printf_string_address_space extension

The original change: #1749

The extension was added in https://github.com/KhronosGroup/SPIRV-Registry/pull/148

Starting from this PR SPV_INTEL_non_constant_addrspace_printf will
be step by step deprecated.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0011-Backport-to-15-Add-SPV_EXT_relaxed_printf_string_add.patch

21 months ago[PATCH 10/79] [Backport to 15] Relax OpenCL extended instruction restrictions (#1755)
Stanley Gambarin [Thu, 8 Dec 2022 15:01:41 +0000 (07:01 -0800)]
[PATCH 10/79] [Backport to 15] Relax OpenCL extended instruction restrictions (#1755)

* [Backport to 15] Relax OpenCL extended instruction restrictions (#1724)

When VectorAnyINTEL capability is enabled, OpenCL extended instructions
are able to work on vector types with any number of components greater
then or equal to 2.

* [Backport to 15] Translate LLVM intrinsics into native_* OpenCL instructions (#1729)

When an intrinsic function is called with `afn` flag, it's allowed to
substitute an approximate calculations. So the translator can emit
native versions of OpenCL extended instructions.

Co-authored-by: Victor Mustya <victor.mustya@intel.com>
Gbp-Pq: Name 0010-Backport-to-15-Relax-OpenCL-extended-instruction-res.patch

21 months ago[PATCH 09/79] [Backport to 15] Fix builtin vars translation
Dmitry Sidorov [Tue, 29 Nov 2022 12:57:59 +0000 (13:57 +0100)]
[PATCH 09/79] [Backport to 15] Fix builtin vars translation

The translator was crashing in case if builin GV was accessed via
GEP without AS cast due to incorrect assumption.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0009-Backport-to-15-Fix-builtin-vars-translation.patch

21 months ago[PATCH 08/79] [Backport to 15] Implement SPV_INTEL_tensor_float32_conversion extensio...
Stanley Gambarin [Fri, 11 Nov 2022 10:31:34 +0000 (02:31 -0800)]
[PATCH 08/79] [Backport to 15] Implement SPV_INTEL_tensor_float32_conversion extension (#1656) (#1700)

This extension adds conversion instruction from float to tensor float (TF32)
data format. TF32 uses 1 bit for a sign, 8 bits for an exponent and 10 bits
for a fraction. This extension doesn’t introduce TF32 type in SPIR-V, instead
instruction below uses 32-bit float type to represent TF32 value.

Spec: https://github.com/intel/llvm/pull/6990

Co-authored-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0008-Backport-to-15-Implement-SPV_INTEL_tensor_float32_co.patch

21 months ago[PATCH 07/79] [Backport to 15] Translate llvm.loop.unroll.full metadata (#1673)
Dmitry Sidorov [Tue, 8 Nov 2022 20:32:27 +0000 (21:32 +0100)]
[PATCH 07/79] [Backport to 15] Translate llvm.loop.unroll.full metadata (#1673)

It can be generated via #pragma clang unroll(full) pragma.
llvm.loop.unroll.full means attempt to do full unroll of the
loop and disable the unrolling if the trip count is not known
at compile time.

Unroll mask to which it was previously mapped doesn't much the
description.

The way the patch represents it in SPIR-V is:
 Unroll mask + PartialCount mask with '1' parameter

This patch also removes some overtesting for unroll metadata.

This backports: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1664

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0007-Backport-to-15-Translate-llvm.loop.unroll.full-metad.patch

21 months ago[PATCH 06/79] [Backport to 15] Add SPV_INTEL_masked_gather_scatter extension (#1580...
Stanley Gambarin [Tue, 8 Nov 2022 16:04:36 +0000 (08:04 -0800)]
[PATCH 06/79] [Backport to 15] Add SPV_INTEL_masked_gather_scatter extension (#1580) (#1695)

This extension allows TypeVector to have a Physical Pointer Type
Component Type and introduces gather/scatter instructions.
It will be useful for explicitly vectorized kernels.

Spec: https://github.com/intel/llvm/pull/6613

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com
Co-authored-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0006-Backport-to-15-Add-SPV_INTEL_masked_gather_scatter-e.patch

21 months ago[PATCH 05/79] [NFC] Initialize a variable
Sidorov, Dmitry [Tue, 8 Nov 2022 09:50:02 +0000 (01:50 -0800)]
[PATCH 05/79] [NFC] Initialize a variable

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0005-NFC-Initialize-a-variable.patch

21 months ago[PATCH 04/79] [NFC] Replace getPointerElementType in SPIRVRegularizeLLVM
Sidorov, Dmitry [Tue, 8 Nov 2022 09:43:49 +0000 (01:43 -0800)]
[PATCH 04/79] [NFC] Replace getPointerElementType in SPIRVRegularizeLLVM

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0004-NFC-Replace-getPointerElementType-in-SPIRVRegularize.patch

21 months ago[PATCH 03/79] [CI] Upgrade to Ubuntu 20.04
Sven van Haastregt [Thu, 18 Aug 2022 08:46:20 +0000 (09:46 +0100)]
[PATCH 03/79] [CI] Upgrade to Ubuntu 20.04

The Ubuntu 18.04 image is marked deprecated [1], so move to a newer
image.

[1] https://github.com/actions/runner-images

Gbp-Pq: Name 0003-CI-Upgrade-to-Ubuntu-20.04.patch

21 months ago[PATCH 02/79] Add support for split barriers extension SPV_INTEL_split_barrier (...
Haonan Yang [Thu, 20 Oct 2022 11:46:13 +0000 (19:46 +0800)]
[PATCH 02/79] Add support for split barriers extension SPV_INTEL_split_barrier (#1424) (#1663)

This PR adds support for split barriers and the SPV_INTEL_split_barrier extension.

The related SPIR-V extension spec can be found here:

* https://github.com/KhronosGroup/SPIRV-Registry/pull/136

The related OpenCL C extension spec can be found here:

* https://github.com/KhronosGroup/OpenCL-Docs/pull/765

Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
Gbp-Pq: Name 0002-Add-support-for-split-barriers-extension-SPV_INTEL_s.patch

21 months ago[PATCH 01/79] Integer dot product 4x8 packed translation (#1654)
Jakub Czarnecki [Mon, 17 Oct 2022 15:24:28 +0000 (17:24 +0200)]
[PATCH 01/79] Integer dot product 4x8 packed translation (#1654)

Changed the integer dot translation to use the correct function names
(i.e. dot_4x8packed or dot_acc_sat_4x8packed) to translate them into
proper OpCodes. Additionally removed unused variables from visitCallDot

Gbp-Pq: Name 0001-Integer-dot-product-4x8-packed-translation-1654.patch

21 months agospirv-llvm-translator-15 (15.0.0-7) unstable; urgency=medium
Andreas Beckmann [Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)]
spirv-llvm-translator-15 (15.0.0-7) unstable; urgency=medium

  * Skip upstream testsuite on big-endian architectures (> 60% of the tests
    are failing anyway but ignored) due to excessive disk space usage
    (> 40 GB).  (Closes: #1065395)
  * Update from llvm_release_150 branch (v15.0.0-85-gda050541).
  * Disable two commits causing test failures.

[dgit import unpatched spirv-llvm-translator-15 15.0.0-7]

21 months agoImport spirv-llvm-translator-15_15.0.0-7.debian.tar.xz
Andreas Beckmann [Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)]
Import spirv-llvm-translator-15_15.0.0-7.debian.tar.xz

[dgit import tarball spirv-llvm-translator-15 15.0.0-7 spirv-llvm-translator-15_15.0.0-7.debian.tar.xz]

3 years agoImport spirv-llvm-translator-15_15.0.0.orig.tar.gz
Andreas Beckmann [Mon, 3 Oct 2022 00:09:37 +0000 (02:09 +0200)]
Import spirv-llvm-translator-15_15.0.0.orig.tar.gz

[dgit import orig spirv-llvm-translator-15_15.0.0.orig.tar.gz]