From nobody Thu Jan 27 09:29:14 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7D2E6198B329; Thu, 27 Jan 2022 09:29:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JkwJq1qvxz3JkR; Thu, 27 Jan 2022 09:29:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643275755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BHb3rs1plhkqT8UgPwWQq0ak3ZrXOW7iHschdnnA2PM=; b=CeXcfqsmQIoer0wnMuBC0H/jpMQHTOTToBWnBrllZsf5rAfXsSOUQEtTYftIhOoyfPEatM L49KVyUgGRmSXpWH9dXwuwWT9OMA/sSuGsBnnL7Ar6MncGoBvGDCHDLmxuMnllYyXdKbCT m0P8Yn8oRchkK143tKdVlYR+ldq6tZHGwtdZo+c/ZBNjXnWkjHwnSbeh9vDIy0pIUGpcax 9jpSDHe9iR6VvSe5lqsutxmoip/LlVfUn6pqdUixDgSKEq6eCcQWKD4VV6TvVyO732MlHN Qv4mCheeAFDW3dR+Ak9pzKRe0pIIZaC9rqY71yWbDete8W36vbP+XDQJZTEdpA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 97C4B1415D; Thu, 27 Jan 2022 09:29:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20R9TEUf037903; Thu, 27 Jan 2022 09:29:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20R9TEj8037902; Thu, 27 Jan 2022 09:29:14 GMT (envelope-from git) Date: Thu, 27 Jan 2022 09:29:14 GMT Message-Id: <202201270929.20R9TEj8037902@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: a5ee676da7a3 - main - devel/ispc: Update 1.16.1 -> 1.17.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5ee676da7a3910530312f386902bd3d1fce4da0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643275755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BHb3rs1plhkqT8UgPwWQq0ak3ZrXOW7iHschdnnA2PM=; b=orW/JjYxiwmn3KsTNt/MBFV61QFYk9aG/t90h50mO5L3aueGWXnojoqG/ayfc/yGB9zRyF rXxlPPTRFfQjWBpeWnqn1rQTaiDNLW6mwNzj69eOCMjrgb2kXVSBkJpU45zNgKIBvQBB/p K1rYFiocrXp6T7eABwIKoJ3E/lgqMLCdlevbwWW7ywJ96OF1vm0mejS6KkyLwwQnr7PkqU r9CRI1oLyqetHCedcMtfBnquQmvVLToO92u+15EMxFmNqYmLIGB75L67iF4fgmdiILk2/X FW+Pzf/jCBZLUK8Q0JhgSqKww0t343eKfmA0HEhcHHLHZ/RZevhiseN6HYJbeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643275755; a=rsa-sha256; cv=none; b=nttu/4/Zk3cqBIMZjnl4+hLaPd7oiNtaEVS/tmCdWkQt3Rl/Niefl1pMx+r2iNX1Lal5pR JuGJ4/h9n4XwvZqq+IYitlySVgF0u7PCv9Yw2ZvdeKA0R8P6G2Pivvd/AC13o9jUXtxYcr E0RblJi5sQPvPGpSarREyUPWwqEfPUWY2X/GkcZzUDnWNIKQiPD35/U+Jal5N3Nu0yhOLt InLolOBq2HHXLBvLAFauqCc0Td7hwRD7E4dCfpuax0VEarddOFTBp6InqriE/XrpwqopGU Pu+GrqGr81HwW+wUMhRCVnIz778P2cEKmZvt34Bm1Qg3Wv0W94JJnU6aKzlQYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a5ee676da7a3910530312f386902bd3d1fce4da0 commit a5ee676da7a3910530312f386902bd3d1fce4da0 Author: Yuri Victorovich AuthorDate: 2022-01-27 09:28:01 +0000 Commit: Yuri Victorovich CommitDate: 2022-01-27 09:29:09 +0000 devel/ispc: Update 1.16.1 -> 1.17.0 The project has renamed its option GENX to XE. Rename the port option accordingly. Reported by: portscout --- devel/ispc/Makefile | 29 ++++++++++++---------- devel/ispc/distinfo | 6 ++--- devel/ispc/files/patch-CMakeLists.txt | 4 +-- .../ispc/files/patch-cmake_GenerateBuiltins.cmake | 4 +-- devel/ispc/files/patch-src_func.cpp | 17 ------------- devel/ispc/files/patch-src_ispc.cpp | 25 ------------------- devel/ispc/files/patch-src_llvmutil.cpp | 4 +-- devel/ispc/files/patch-src_module.cpp | 27 ++------------------ devel/ispc/files/patch-src_opt.cpp | 29 ++++++---------------- 9 files changed, 34 insertions(+), 111 deletions(-) diff --git a/devel/ispc/Makefile b/devel/ispc/Makefile index 05624cbf9db3..45717a4afdf0 100644 --- a/devel/ispc/Makefile +++ b/devel/ispc/Makefile @@ -2,8 +2,7 @@ PORTNAME= ispc DISTVERSIONPREFIX= v -DISTVERSION= 1.16.1 -PORTREVISION= 3 +DISTVERSION= 1.17.0 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org @@ -20,7 +19,9 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \ LIB_DEPENDS= libLLVM.so:devel/llvm${LLVM_VERSION} USES= bison cmake compiler:c++14-lang python:build,test shebangfix +USE_LDCONFIG= yes USE_GITHUB= yes + SHEBANG_FILES= *.py CONFIGURE_ENV= PATH=${LOCALBASE}/llvm${LLVM_VERSION}/bin:${PATH} @@ -31,20 +32,22 @@ BINARY_ALIAS= flex=${LOCALBASE}/bin/flex python=${PYTHON_CMD} m4=${LOCALBASE}/bi PLIST_FILES= bin/ispc \ bin/check_isa -OPTIONS_DEFINE_amd64= GENX -OPTIONS_DEFAULT_amd64= GENX +OPTIONS_DEFINE_amd64= XE +OPTIONS_DEFAULT_amd64= XE -GENX_DESC= Intel GPU 8/16-wide SIMD support -GENX_BUILD_DEPENDS= ${LOCALBASE}/llvm${LLVM_VERSION}/lib/libLLVMGenXIntrinsics.a:devel/vc-intrinsics@llvm${LLVM_VERSION} -GENX_LIB_DEPENDS= libze_loader.so:devel/level-zero \ +XE_DESC= Enable Intel Xe support +XE_BUILD_DEPENDS= ${LOCALBASE}/llvm${LLVM_VERSION}/lib/libLLVMGenXIntrinsics.a:devel/vc-intrinsics@llvm${LLVM_VERSION} +XE_LIB_DEPENDS= libze_loader.so:devel/level-zero \ libLLVMSPIRVLib.so.${LLVM_VERSION}:devel/spirv-llvm-translator@llvm${LLVM_VERSION} -GENX_CMAKE_BOOL= GENX_ENABLED -GENX_CMAKE_BOOL_OFF= ISPCRT_BUILD_TESTS -GENX_CMAKE_ON= -DGENX_DEPS_DIR:PATH="${LOCALBASE}/llvm${LLVM_VERSION}" -GENX_PLIST_FILES= include/ispcrt/ispcrt.h \ +XE_CMAKE_BOOL= XE_ENABLED +XE_CMAKE_BOOL_OFF= ISPCRT_BUILD_TESTS +XE_CMAKE_ON= -DXE_DEPS_DIR:PATH="${LOCALBASE}/llvm${LLVM_VERSION}" -DISPC_INCLUDE_XE_EXAMPLES=OFF +XE_PLIST_FILES= include/ispcrt/ispcrt.h \ include/ispcrt/ispcrt.hpp \ include/ispcrt/ispcrt.isph \ + lib/cmake/ispcrt-${PORTVERSION}/Finddpcpp_compiler.cmake \ lib/cmake/ispcrt-${PORTVERSION}/Findlevel_zero.cmake \ + lib/cmake/ispcrt-${PORTVERSION}/interop.cmake \ lib/cmake/ispcrt-${PORTVERSION}/ispc.cmake \ lib/cmake/ispcrt-${PORTVERSION}/ispcrtConfig.cmake \ lib/cmake/ispcrt-${PORTVERSION}/ispcrt_Exports-%%CMAKE_BUILD_TYPE%%.cmake \ @@ -61,9 +64,9 @@ GENX_PLIST_FILES= include/ispcrt/ispcrt.h \ #LLVM_VERSION= ${LLVM_DEFAULT} #.endif -LLVM_VERSION?= 11 # 13 fails on some systems with: Assertion failed: (PointeeType && "Must specify element type"), function Create +LLVM_VERSION?= 13 -do-test: # some tests fail: https://github.com/ispc/ispc/issues/1868 +do-test: # some tests fail: https://github.com/ispc/ispc/issues/1868, https://github.com/ispc/ispc/issues/2244 @cd ${WRKSRC} && ISPC_HOME=${BUILD_WRKSRC}/bin ./run_tests.py test-check-all: # the upstream claims that some of these checks are broken without using their patched llvm version, hence using llvm-devel diff --git a/devel/ispc/distinfo b/devel/ispc/distinfo index d4928fc12244..a36a0aa08200 100644 --- a/devel/ispc/distinfo +++ b/devel/ispc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1626566179 -SHA256 (ispc-ispc-v1.16.1_GH0.tar.gz) = e5dcd0d85df6ed5feb454ad9ec295083a07d7459fcaba00d5dd6266ceb476399 -SIZE (ispc-ispc-v1.16.1_GH0.tar.gz) = 19549428 +TIMESTAMP = 1643247706 +SHA256 (ispc-ispc-v1.17.0_GH0.tar.gz) = 37fb1055d6c6b232e112d8d50145d726824ed4d8da93a7396315dceba6c76e62 +SIZE (ispc-ispc-v1.17.0_GH0.tar.gz) = 19436681 diff --git a/devel/ispc/files/patch-CMakeLists.txt b/devel/ispc/files/patch-CMakeLists.txt index a014710ff101..2c540960cbae 100644 --- a/devel/ispc/files/patch-CMakeLists.txt +++ b/devel/ispc/files/patch-CMakeLists.txt @@ -1,4 +1,4 @@ ---- CMakeLists.txt.orig 2020-08-28 19:43:13 UTC +--- CMakeLists.txt.orig 2022-01-15 08:35:15 UTC +++ CMakeLists.txt @@ -45,12 +45,17 @@ set(ISPC_BUILD TRUE) project(${PROJECT_NAME}) @@ -18,5 +18,5 @@ -option(ARM_ENABLED "Enable ARM support" ON) +option(ARM_ENABLED "Enable ARM support" ${ARM_HOST}) option(WASM_ENABLED "Enable experimental Web Assembly support" OFF) - option(GENX_ENABLED "Enable GenX support" OFF) + option(XE_ENABLED "Enable Intel Xe support" OFF) option(ISPC_INCLUDE_EXAMPLES "Generate build targets for the ISPC examples" ON) diff --git a/devel/ispc/files/patch-cmake_GenerateBuiltins.cmake b/devel/ispc/files/patch-cmake_GenerateBuiltins.cmake index e541332c18f1..d256ac87934d 100644 --- a/devel/ispc/files/patch-cmake_GenerateBuiltins.cmake +++ b/devel/ispc/files/patch-cmake_GenerateBuiltins.cmake @@ -1,6 +1,6 @@ ---- cmake/GenerateBuiltins.cmake.orig 2021-07-15 23:04:31 UTC +--- cmake/GenerateBuiltins.cmake.orig 2022-01-15 08:35:15 UTC +++ cmake/GenerateBuiltins.cmake -@@ -289,6 +289,8 @@ function(builtin_genx_to_cpp bit resultFileName) +@@ -312,6 +312,8 @@ function(builtin_xe_to_cpp bit resultFileName) set(os_name "windows") elseif (APPLE) set(SKIP ON) diff --git a/devel/ispc/files/patch-src_func.cpp b/devel/ispc/files/patch-src_func.cpp deleted file mode 100644 index ffbcebe61294..000000000000 --- a/devel/ispc/files/patch-src_func.cpp +++ /dev/null @@ -1,17 +0,0 @@ -Regressed by https://github.com/intel/vc-intrinsics/commit/8ee879314584 - -src/func.cpp:490:44: error: no member named 'Reserved_0' in 'llvm::genx::KernelMDOp' - mdArgs[llvm::genx::KernelMDOp::Reserved_0] = - ~~~~~~~~~~~~~~~~~~~~~~~~^ - ---- src/func.cpp.orig 2021-07-15 23:04:31 UTC -+++ src/func.cpp -@@ -487,7 +487,7 @@ void Function::emitCode(FunctionEmitContext *ctx, llvm - llvm::ValueAsMetadata::get(llvm::ConstantInt::getNullValue(i32Type)); - mdArgs[llvm::genx::KernelMDOp::ArgIOKinds] = llvm::MDNode::get(fContext, argInOutKinds); - mdArgs[llvm::genx::KernelMDOp::ArgTypeDescs] = llvm::MDNode::get(fContext, argTypeDescs); -- mdArgs[llvm::genx::KernelMDOp::Reserved_0] = -+ mdArgs[llvm::genx::KernelMDOp::NBarrierCnt] = - llvm::ValueAsMetadata::get(llvm::ConstantInt::getNullValue(i32Type)); - mdArgs[llvm::genx::KernelMDOp::BarrierCnt] = - llvm::ValueAsMetadata::get(llvm::ConstantInt::getNullValue(i32Type)); diff --git a/devel/ispc/files/patch-src_ispc.cpp b/devel/ispc/files/patch-src_ispc.cpp deleted file mode 100644 index e06e096d9b80..000000000000 --- a/devel/ispc/files/patch-src_ispc.cpp +++ /dev/null @@ -1,25 +0,0 @@ ---- src/ispc.cpp.orig 2021-07-15 23:04:31 UTC -+++ src/ispc.cpp -@@ -1464,10 +1464,22 @@ std::string Target::GetTripleString() const { - triple.setArchName("armv7"); - } else if (m_arch == Arch::aarch64) { - triple.setArchName("aarch64"); -+ } else if (m_arch == Arch::genx32) { -+ triple.setArchName("spir"); -+ } else if (m_arch == Arch::genx64) { -+ triple.setArchName("spir64"); - } else { - Error(SourcePos(), "Unknown arch."); - exit(1); - } -+#ifdef ISPC_GENX_ENABLED -+ if (m_arch == Arch::genx32 || m_arch == Arch::genx64) { -+ //"spir64-unknown-unknown" -+ triple.setVendor(llvm::Triple::VendorType::UnknownVendor); -+ triple.setOS(llvm::Triple::OSType::UnknownOS); -+ return triple.str(); -+ } -+#endif - triple.setVendor(llvm::Triple::VendorType::UnknownVendor); - triple.setOS(llvm::Triple::OSType::FreeBSD); - break; diff --git a/devel/ispc/files/patch-src_llvmutil.cpp b/devel/ispc/files/patch-src_llvmutil.cpp index 53237378ba1e..53e2d9708916 100644 --- a/devel/ispc/files/patch-src_llvmutil.cpp +++ b/devel/ispc/files/patch-src_llvmutil.cpp @@ -1,8 +1,8 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug functionality, and it isn't available in the LLVM packages. ---- src/llvmutil.cpp.orig 2020-01-25 02:15:35 UTC +--- src/llvmutil.cpp.orig 2022-01-15 08:35:15 UTC +++ src/llvmutil.cpp -@@ -1344,7 +1344,7 @@ static void lDumpValue(llvm::Value *v, std::set= ISPC_LLVM_13_0 - Opts.setSPIRVAllowUnknownIntrinsics({"llvm.genx"}); - #else - llvm::cl::opt SPIRVAllowUnknownIntrinsics( -@@ -1314,7 +1314,12 @@ bool Module::writeObjectFileOrAssembly(llvm::TargetMachine *targetMachine, llvm::Module *module, OutputType outputType, - llvm::CodeGenFileType fileType = (outputType == Object) ? llvm::CGFT_ObjectFile : llvm::CGFT_AssemblyFile; - bool binary = (fileType == llvm::CGFT_ObjectFile); - -- llvm::sys::fs::OpenFlags flags = binary ? llvm::sys::fs::F_None : llvm::sys::fs::F_Text; -+ llvm::sys::fs::OpenFlags flags = binary ? -+#if ISPC_LLVM_VERSION >= ISPC_LLVM_13_0 -+ llvm::sys::fs::OF_None : llvm::sys::fs::OF_Text; -+#else -+ llvm::sys::fs::F_None : llvm::sys::fs::F_Text; -+#endif - - std::error_code error; - diff --git a/devel/ispc/files/patch-src_opt.cpp b/devel/ispc/files/patch-src_opt.cpp index 3bf08c14a7d0..d396f5dbd312 100644 --- a/devel/ispc/files/patch-src_opt.cpp +++ b/devel/ispc/files/patch-src_opt.cpp @@ -1,8 +1,8 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug functionality, and it isn't available in the LLVM packages. ---- src/opt.cpp.orig 2020-01-25 02:15:35 UTC +--- src/opt.cpp.orig 2022-01-15 08:35:15 UTC +++ src/opt.cpp -@@ -144,7 +144,7 @@ static llvm::Pass *CreateFixBooleanSelectPass(); +@@ -155,7 +155,7 @@ static llvm::Pass *CreateMangleOpenCLBuiltins(); getenv("FUNC"), strlen(getenv("FUNC")))))) { \ fprintf(stderr, "Start of " NAME "\n"); \ fprintf(stderr, "---------------\n"); \ @@ -11,7 +11,7 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func fprintf(stderr, "---------------\n\n"); \ } else /* eat semicolon */ -@@ -154,7 +154,7 @@ static llvm::Pass *CreateFixBooleanSelectPass(); +@@ -165,7 +165,7 @@ static llvm::Pass *CreateMangleOpenCLBuiltins(); getenv("FUNC"), strlen(getenv("FUNC")))))) { \ fprintf(stderr, "End of " NAME " %s\n", modifiedAny ? "** CHANGES **" : ""); \ fprintf(stderr, "---------------\n"); \ @@ -20,7 +20,7 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func fprintf(stderr, "---------------\n\n"); \ } else /* eat semicolon */ #else -@@ -442,7 +442,7 @@ void Optimize(llvm::Module *module, int optLevel) { +@@ -467,7 +467,7 @@ void ispc::Optimize(llvm::Module *module, int optLevel #ifndef ISPC_NO_DUMPS if (g->debugPrint) { printf("*** Code going into optimization ***\n"); @@ -29,7 +29,7 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func } #endif DebugPassManager optPM; -@@ -655,7 +655,7 @@ void Optimize(llvm::Module *module, int optLevel) { +@@ -811,7 +811,7 @@ void ispc::Optimize(llvm::Module *module, int optLevel #ifndef ISPC_NO_DUMPS if (g->debugPrint) { printf("\n*****\nFINAL OUTPUT\n*****\n"); @@ -38,7 +38,7 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func } #endif } -@@ -1728,11 +1728,11 @@ lExtractUniformsFromOffset(llvm::Value **basePtr, llvm +@@ -1933,11 +1933,11 @@ lExtractUniformsFromOffset(llvm::Value **basePtr, llvm llvm::Value *offsetScale, llvm::Instruction *insertBefore) { #if 1 @@ -53,7 +53,7 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func printf("-----\n"); #endif -@@ -4217,7 +4217,7 @@ char DebugPass::ID = 0; +@@ -4746,7 +4746,7 @@ char DebugPass::ID = 0; bool DebugPass::runOnModule(llvm::Module &module) { fprintf(stderr, "%s", str_output); fflush(stderr); @@ -62,18 +62,3 @@ ISPC devs insist on using dump() functions which LLVM devs consider a debug func return true; } -@@ -4687,7 +4687,13 @@ void DebugPassFile::run(llvm::Module &module, bool init) - std::error_code EC; - char fname[100]; - snprintf(fname, sizeof(fname), "%s_%d_%s.ll", init ? "init" : "ir", pnum, sanitize(std::string(pname)).c_str()); -- llvm::raw_fd_ostream OS(fname, EC, llvm::sys::fs::F_None); -+ llvm::raw_fd_ostream OS(fname, EC, -+#if ISPC_LLVM_VERSION >= ISPC_LLVM_13_0 -+ llvm::sys::fs::OF_None -+#else -+ llvm::sys::fs::F_None -+#endif -+ ); - Assert(!EC && "IR dump file creation failed!"); - module.print(OS, 0); - }