pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel spirv-llvm-translator: update to 14.0.0 fix t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e847f5b942c
branches:  trunk
changeset: 383236:3e847f5b942c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Aug 15 20:39:21 2022 +0000

description:
spirv-llvm-translator: update to 14.0.0 fix the build

Changes unknown.

diffstat:

 parallel/spirv-headers/Makefile                                                                                              |  10 ++-
 parallel/spirv-headers/PLIST                                                                                                 |   3 +-
 parallel/spirv-headers/buildlink3.mk                                                                                         |   4 +-
 parallel/spirv-headers/distinfo                                                                                              |   8 +-
 parallel/spirv-llvm-translator/Makefile                                                                                      |  10 +-
 parallel/spirv-llvm-translator/PLIST                                                                                         |   4 +-
 parallel/spirv-llvm-translator/buildlink3.mk                                                                                 |   6 +-
 parallel/spirv-llvm-translator/distinfo                                                                                      |  25 +------
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVReader.cpp                                                       |  19 ------
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.cpp                                                       |  15 ----
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.h                                                         |  16 -----
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVFunction.h                                              |  30 ---------
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.cpp                                              |  31 ----------
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.h                                                |  17 -----
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVOpCode.h                                                |  15 ----
 parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVOpCodeEnum.h                                            |  15 ----
 parallel/spirv-llvm-translator/patches/patch-spirv-headers-tag.conf                                                          |   9 --
 parallel/spirv-llvm-translator/patches/patch-test_constexpr__vector.ll                                                       |  21 ------
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_bitcast.ll                      |  15 ----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_const-function-pointer.ll       |  17 -----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_function-pointer.ll             |  15 ----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_global__ctor__dtor.ll           |  18 -----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_non-uniform-function-pointer.ll |  17 -----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_select.ll                       |  17 -----
 parallel/spirv-llvm-translator/patches/patch-test_transcoding_SPV__INTEL__function__pointers_vector__elem.ll                 |  17 -----
 25 files changed, 28 insertions(+), 346 deletions(-)

diffs (truncated from 537 to 300 lines):

diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-headers/Makefile
--- a/parallel/spirv-headers/Makefile   Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-headers/Makefile   Mon Aug 15 20:39:21 2022 +0000
@@ -1,13 +1,17 @@
-# $NetBSD: Makefile,v 1.1 2021/11/20 20:06:55 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2022/08/15 20:39:21 tnn Exp $
 
-DISTNAME=      SPIRV-Headers-1.2.198.0
+# This version should be kept in sync with what
+# parallel/spirv-llvm-translator's ${WRKSRC}/spirv-headers-tag.conf
+# contains.
+DISTNAME=      SPIRV-Headers-1.3.216.0
 CATEGORIES=    parallel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=KhronosGroup/}
-GITHUB_TAG=    sdk-1.2.198.0
+GITHUB_TAG=    sdk-${PKGVERSION_NOREV}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/KhronosGroup/SPIRV-Headers
 COMMENT=       Headers for translation between SPIR-V and LLVM IR
+LICENSE=       mit
 
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-headers/PLIST
--- a/parallel/spirv-headers/PLIST      Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-headers/PLIST      Mon Aug 15 20:39:21 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2021/11/20 20:06:55 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/08/15 20:39:21 tnn Exp $
 include/spirv/1.0/GLSL.std.450.h
 include/spirv/1.0/OpenCL.std.h
 include/spirv/1.0/extinst.glsl.std.450.grammar.json
@@ -58,6 +58,7 @@
 include/spirv/unified1/extinst.spv-amd-shader-ballot.grammar.json
 include/spirv/unified1/extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json
 include/spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json
+include/spirv/unified1/spirv.bf
 include/spirv/unified1/spirv.core.grammar.json
 include/spirv/unified1/spirv.cs
 include/spirv/unified1/spirv.h
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-headers/buildlink3.mk
--- a/parallel/spirv-headers/buildlink3.mk      Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-headers/buildlink3.mk      Mon Aug 15 20:39:21 2022 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2021/11/20 20:06:55 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2022/08/15 20:39:21 tnn Exp $
 
 BUILDLINK_TREE+=       SPIRV-Headers
 
 .if !defined(SPIRV_HEADERS_BUILDLINK3_MK)
 SPIRV_HEADERS_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.SPIRV-Headers+=  SPIRV-Headers>=1.2.198.0
+BUILDLINK_API_DEPENDS.SPIRV-Headers+=  SPIRV-Headers>=1.3.216.0
 BUILDLINK_PKGSRCDIR.SPIRV-Headers?=    ../../parallel/spirv-headers
 BUILDLINK_DEPMETHOD.SPIRV-Headers?=    build
 .endif # SPIRV_HEADERS_BUILDLINK3_MK
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-headers/distinfo
--- a/parallel/spirv-headers/distinfo   Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-headers/distinfo   Mon Aug 15 20:39:21 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2021/11/20 20:06:55 wiz Exp $
+$NetBSD: distinfo,v 1.2 2022/08/15 20:39:21 tnn Exp $
 
-BLAKE2s (SPIRV-Headers-1.2.198.0.tar.gz) = 9c797196b2fdc42dfbf34eed28acfe78037cbba614cfffdfd925ba882e9bbbb8
-SHA512 (SPIRV-Headers-1.2.198.0.tar.gz) = a35167f8de66f2e16c6d2dccdd69f95c58b08abcdef5dac5a705e8e52af049ec9b0e2d0ef6fb732454a0671cd331b69bea75b24911599c0a2ce3972d40addfef
-Size (SPIRV-Headers-1.2.198.0.tar.gz) = 416113 bytes
+BLAKE2s (SPIRV-Headers-1.3.216.0.tar.gz) = d8f2122fc7c99084f5526066093ea412b29d3674b3e65cfc4b6f76b5b544b5a9
+SHA512 (SPIRV-Headers-1.3.216.0.tar.gz) = 951715cf62a643bfce6a3854f2206b95dd65e60b27355a2f290e829da0f06e19877e9dfcbf53f455b8a0524fb851a851742f3e16bb29be2f470cd62d3a8fc8f0
+Size (SPIRV-Headers-1.3.216.0.tar.gz) = 437011 bytes
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/Makefile
--- a/parallel/spirv-llvm-translator/Makefile   Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-llvm-translator/Makefile   Mon Aug 15 20:39:21 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2022/08/15 19:22:52 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2022/08/15 20:39:21 tnn Exp $
 
-DISTNAME=      SPIRV-LLVM-Translator-13.0.0
+DISTNAME=      SPIRV-LLVM-Translator-14.0.0
 PKGNAME=       ${DISTNAME:tl}
 CATEGORIES=    parallel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=KhronosGroup/}
@@ -13,15 +13,13 @@
 
 WRKSRC=                ${WRKDIR}/${DISTNAME}
 
-BROKEN=                "This version does not support llvm 14, please update this to 14.0.0."
-
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
-GCC_REQD+=     5 # C++14
+GCC_REQD+=     7 # sync with llvm
 
 CMAKE_ARGS+=   -DBUILD_SHARED_LIBS=ON
-CMAKE_ARGS+=   -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${PREFIX}/include
+CMAKE_ARGS+=   -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${PREFIX}/include/libLLVM
 
 PKGCONFIG_OVERRIDE+=   LLVMSPIRVLib.pc.in
 
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/PLIST
--- a/parallel/spirv-llvm-translator/PLIST      Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-llvm-translator/PLIST      Mon Aug 15 20:39:21 2022 +0000
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.3 2021/11/23 20:55:44 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/08/15 20:39:21 tnn Exp $
 include/LLVMSPIRVLib/LLVMSPIRVExtensions.inc
 include/LLVMSPIRVLib/LLVMSPIRVLib.h
 include/LLVMSPIRVLib/LLVMSPIRVOpts.h
 lib/libLLVMSPIRVLib.so
-lib/libLLVMSPIRVLib.so.13
+lib/libLLVMSPIRVLib.so.14
 lib/pkgconfig/LLVMSPIRVLib.pc
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/buildlink3.mk
--- a/parallel/spirv-llvm-translator/buildlink3.mk      Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-llvm-translator/buildlink3.mk      Mon Aug 15 20:39:21 2022 +0000
@@ -1,13 +1,13 @@
-# $NetBSD: buildlink3.mk,v 1.2 2021/06/09 14:56:51 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2022/08/15 20:39:21 tnn Exp $
 
 BUILDLINK_TREE+=       spirv-llvm-translator
 
 .if !defined(SPIRV_LLVM_TRANSLATOR_BUILDLINK3_MK)
 SPIRV_LLVM_TRANSLATOR_BUILDLINK3_MK:=
 
-GCC_REQD+=     5 # C++14
+GCC_REQD+=     7 # sync with llvm
 
-BUILDLINK_API_DEPENDS.spirv-llvm-translator+=  spirv-llvm-translator>=10.0.0
+BUILDLINK_API_DEPENDS.spirv-llvm-translator+=  spirv-llvm-translator>=14.0.0
 BUILDLINK_PKGSRCDIR.spirv-llvm-translator?=    ../../parallel/spirv-llvm-translator
 
 .include "../../lang/llvm/buildlink3.mk"
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/distinfo
--- a/parallel/spirv-llvm-translator/distinfo   Mon Aug 15 20:05:12 2022 +0000
+++ b/parallel/spirv-llvm-translator/distinfo   Mon Aug 15 20:39:21 2022 +0000
@@ -1,23 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/11/23 20:55:44 wiz Exp $
+$NetBSD: distinfo,v 1.6 2022/08/15 20:39:21 tnn Exp $
 
-BLAKE2s (SPIRV-LLVM-Translator-13.0.0.tar.gz) = 1d544e845cb4adfc4c9a5056ab48c4347bf5cc0848bcf21f5ab098a583e6d272
-SHA512 (SPIRV-LLVM-Translator-13.0.0.tar.gz) = 1ce7a38c2c3447249e19d50063a7a2acf32699905572950e4f102d8ce1680785433035154b7b55782d5a56211a50e042aef775836f37c33fe847b347a02b5a04
-Size (SPIRV-LLVM-Translator-13.0.0.tar.gz) = 1436324 bytes
+BLAKE2s (SPIRV-LLVM-Translator-14.0.0.tar.gz) = c3aa2584d427b33aacd85cb3406a222505a56ae32a7f3d674822bf34e8417ea2
+SHA512 (SPIRV-LLVM-Translator-14.0.0.tar.gz) = 5659149a380ceef7acdcb274bcad9b23e4817bf88e795e0a8464dfe14fbd102dbf7199cbe67eb611a16d3a411c7a1b8afc6f0eef61fec5a2b8f9fba06748bcb1
+Size (SPIRV-LLVM-Translator-14.0.0.tar.gz) = 1482704 bytes
 SHA1 (patch-CMakeLists.txt) = db9173e06fb702c3fa88844fc87380262024cbe1
-SHA1 (patch-lib_SPIRV_SPIRVReader.cpp) = 25dc02f63e6b32f69afa0388ceb945131c2fb48e
-SHA1 (patch-lib_SPIRV_SPIRVWriter.cpp) = cd9030f5ab63b0c7ba9492e101578b7431fdc903
-SHA1 (patch-lib_SPIRV_SPIRVWriter.h) = db22ff84b6cd8494898ea5cd35f53bde8e6c35a0
-SHA1 (patch-lib_SPIRV_libSPIRV_SPIRVFunction.h) = 8290d8246db59c3beb27866a7c555a08468e8d05
-SHA1 (patch-lib_SPIRV_libSPIRV_SPIRVModule.cpp) = 683a2d76e4faaed82179f6f995e1c272e706fcf5
-SHA1 (patch-lib_SPIRV_libSPIRV_SPIRVModule.h) = 83ddc00be71ce79d1fe1b63564857053da9fd1f3
-SHA1 (patch-lib_SPIRV_libSPIRV_SPIRVOpCode.h) = bc0e6685c80e82190f7b327e5ebb5ccf19b3e810
-SHA1 (patch-lib_SPIRV_libSPIRV_SPIRVOpCodeEnum.h) = e2a7329fbdcdadbae07334b0c735056837a88121
-SHA1 (patch-spirv-headers-tag.conf) = ecfb5efbaceb94672f8cc8e9d6242315c44818bd
-SHA1 (patch-test_constexpr__vector.ll) = b4527f06912fa18dc824fc43f5fed433cca84354
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_bitcast.ll) = 373852e3963a06e991e231f0c5ab2ae766404410
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_const-function-pointer.ll) = f6067833cdcb1620aba9394f9535bde76056c191
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_function-pointer.ll) = 4e0ac321159280936fb38b7f16b417cf060cafbd
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_global__ctor__dtor.ll) = f11189c9f6df87402dc0cd44015206cbbf0591af
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_non-uniform-function-pointer.ll) = 25a6766ee57116d3b8296bfea8c8b8983016a9cd
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_select.ll) = 17fc3d504c94a9f88eda183e07e8ec8a2a9e8624
-SHA1 (patch-test_transcoding_SPV__INTEL__function__pointers_vector__elem.ll) = c019121148a8d95269ca7b41a0c1c162ae46eed9
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVReader.cpp
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVReader.cpp    Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-lib_SPIRV_SPIRVReader.cpp,v 1.1 2021/11/23 20:55:44 wiz Exp $
-
-https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1265
-
---- lib/SPIRV/SPIRVReader.cpp.orig     2021-10-15 21:15:19.000000000 +0000
-+++ lib/SPIRV/SPIRVReader.cpp
-@@ -1452,9 +1452,9 @@ Value *SPIRVToLLVM::transValueWithoutDec
-     return mapValue(BV, transValue(BI, nullptr, nullptr, false));
-   }
- 
--  case OpConstFunctionPointerINTEL: {
--    SPIRVConstFunctionPointerINTEL *BC =
--        static_cast<SPIRVConstFunctionPointerINTEL *>(BV);
-+  case OpConstantFunctionPointerINTEL: {
-+    SPIRVConstantFunctionPointerINTEL *BC =
-+        static_cast<SPIRVConstantFunctionPointerINTEL *>(BV);
-     SPIRVFunction *F = BC->getFunction();
-     BV->setName(F->getName());
-     return mapValue(BV, transFunction(F));
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.cpp
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.cpp    Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-lib_SPIRV_SPIRVWriter.cpp,v 1.1 2021/11/23 20:55:44 wiz Exp $
-
-https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1265
-
---- lib/SPIRV/SPIRVWriter.cpp.orig     2021-10-15 21:15:19.000000000 +0000
-+++ lib/SPIRV/SPIRVWriter.cpp
-@@ -1418,7 +1418,7 @@ LLVMToSPIRVBase::transValueWithoutDecora
-     if (!BM->checkExtension(ExtensionID::SPV_INTEL_function_pointers,
-                             SPIRVEC_FunctionPointers, toString(V)))
-       return nullptr;
--    return BM->addConstFunctionPointerINTEL(
-+    return BM->addConstantFunctionPointerINTEL(
-         transType(F->getType()),
-         static_cast<SPIRVFunction *>(transValue(F, nullptr)));
-   }
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.h
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_SPIRVWriter.h      Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-lib_SPIRV_SPIRVWriter.h,v 1.1 2021/11/23 20:55:44 wiz Exp $
-
-https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1265
-
---- lib/SPIRV/SPIRVWriter.h.orig       2021-10-15 21:15:19.000000000 +0000
-+++ lib/SPIRV/SPIRVWriter.h
-@@ -75,7 +75,8 @@ public:
-   // a function, that is necessary for a convenient function pointers handling.
-   // By default transValue uses 'Decl' mode, which means every function
-   // we meet during the translation should result in its declaration generated.
--  // In 'Pointer' mode we generate OpConstFunctionPointerINTEL constant instead.
-+  // In 'Pointer' mode we generate OpConstantFunctionPointerINTEL constant
-+  // instead.
-   enum class FuncTransMode { Decl, Pointer };
- 
-   SPIRVType *transType(Type *T);
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVFunction.h
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVFunction.h   Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-$NetBSD: patch-lib_SPIRV_libSPIRV_SPIRVFunction.h,v 1.1 2021/11/23 20:55:44 wiz Exp $
-
-https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1265
-
---- lib/SPIRV/libSPIRV/SPIRVFunction.h.orig    2021-10-15 21:15:19.000000000 +0000
-+++ lib/SPIRV/libSPIRV/SPIRVFunction.h
-@@ -171,18 +171,18 @@ private:
- 
- typedef SPIRVEntryOpCodeOnly<OpFunctionEnd> SPIRVFunctionEnd;
- 
--class SPIRVConstFunctionPointerINTEL : public SPIRVValue {
--  const static Op OC = OpConstFunctionPointerINTEL;
-+class SPIRVConstantFunctionPointerINTEL : public SPIRVValue {
-+  const static Op OC = OpConstantFunctionPointerINTEL;
-   const static SPIRVWord FixedWordCount = 4;
- 
- public:
--  SPIRVConstFunctionPointerINTEL(SPIRVId TheId, SPIRVType *TheType,
--                                 SPIRVFunction *TheFunction, SPIRVModule *M)
-+  SPIRVConstantFunctionPointerINTEL(SPIRVId TheId, SPIRVType *TheType,
-+                                    SPIRVFunction *TheFunction, SPIRVModule *M)
-       : SPIRVValue(M, FixedWordCount, OC, TheType, TheId),
-         TheFunction(TheFunction->getId()) {
-     validate();
-   }
--  SPIRVConstFunctionPointerINTEL()
-+  SPIRVConstantFunctionPointerINTEL()
-       : SPIRVValue(OC), TheFunction(SPIRVID_INVALID) {}
-   SPIRVFunction *getFunction() const { return get<SPIRVFunction>(TheFunction); }
-   _SPIRV_DEF_ENCDEC3(Type, Id, TheFunction)
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.cpp
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.cpp   Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-$NetBSD: patch-lib_SPIRV_libSPIRV_SPIRVModule.cpp,v 1.1 2021/11/23 20:55:44 wiz Exp $
-
-https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1265
-
---- lib/SPIRV/libSPIRV/SPIRVModule.cpp.orig    2021-10-15 21:15:19.000000000 +0000
-+++ lib/SPIRV/libSPIRV/SPIRVModule.cpp
-@@ -269,8 +269,8 @@ public:
-                            const std::vector<SPIRVValue *> &Elements) override;
-   SPIRVEntry *addSpecConstantCompositeContinuedINTEL(
-       const std::vector<SPIRVValue *> &) override;
--  SPIRVValue *addConstFunctionPointerINTEL(SPIRVType *Ty,
--                                           SPIRVFunction *F) override;
-+  SPIRVValue *addConstantFunctionPointerINTEL(SPIRVType *Ty,
-+                                              SPIRVFunction *F) override;
-   SPIRVValue *addConstant(SPIRVValue *) override;
-   SPIRVValue *addConstant(SPIRVType *, uint64_t) override;
-   SPIRVValue *addConstant(SPIRVType *, llvm::APInt) override;
-@@ -1142,9 +1142,10 @@ SPIRVEntry *SPIRVModuleImpl::addSpecCons
-   return add(new SPIRVSpecConstantCompositeContinuedINTEL(this, Elements));
- }
- 
--SPIRVValue *SPIRVModuleImpl::addConstFunctionPointerINTEL(SPIRVType *Ty,
--                                                          SPIRVFunction *F) {
--  return addConstant(new SPIRVConstFunctionPointerINTEL(getId(), Ty, F, this));
-+SPIRVValue *SPIRVModuleImpl::addConstantFunctionPointerINTEL(SPIRVType *Ty,
-+                                                             SPIRVFunction *F) {
-+  return addConstant(
-+      new SPIRVConstantFunctionPointerINTEL(getId(), Ty, F, this));
- }
- 
- SPIRVValue *SPIRVModuleImpl::addUndef(SPIRVType *TheType) {
diff -r dedb18bccd3d -r 3e847f5b942c parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.h
--- a/parallel/spirv-llvm-translator/patches/patch-lib_SPIRV_libSPIRV_SPIRVModule.h     Mon Aug 15 20:05:12 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@



Home | Main Index | Thread Index | Old Index