dev-util/spirv-llvm-translator: support new OpenCL block representation
authorMarek Szuba <marecki@gentoo.org>
Fri, 3 May 2019 14:03:39 +0000 (15:03 +0100)
committerMarek Szuba <marecki@gentoo.org>
Fri, 3 May 2019 14:04:56 +0000 (15:04 +0100)
commit6a1910e3df8b982c4386d98edf1d596a8a1d843c
treef53a14e67e04ebd40ee9c769f9ea3a66c6f8bb94
parentbeab87f62c7da5c72a9fabf0fc70ecd94bafc64f
dev-util/spirv-llvm-translator: support new OpenCL block representation

Without this patch, offline compilation of certain kernels used by
dev-libs/intel-neo unit tests fails with "LLVM ERROR: unknown argument
number for an object"; some real-world kernels would presumably be
affected as well.

The patch has been retrieved from
https://github.com/intel/opencl-clang/blob/ocl-open-80/patches/spirv/0001-Update-LowerOpenCL-pass-to-handle-new-blocks-represn.patch
(commit 912a9cc8d30b773372ce58d4fc17bf38fd388692 i.e. latest version as of
2019-05-02).

See-Also: https://github.com/intel/compute-runtime/issues/156
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
dev-util/spirv-llvm-translator/Manifest
dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.0.1-r1.ebuild [new file with mode: 0644]