From nobody Sun Dec 25 11:42:47 2022 X-Original-To: dev-commits-src-branches@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 4NfzYh1lPMz1Hxvp; Sun, 25 Dec 2022 11:42:48 +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 4NfzYh1G7sz3xdj; Sun, 25 Dec 2022 11:42:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671968568; 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=kXhXEndRoWTHID+R2vk0IYbeFW6AGIyMmL6OTuis+MU=; b=mrCTtjJN/9LiBmIJqxUlpP4ddeRs0tL59rxwKzPj8p/dKtxMpSYfBQwOnAinNGGdWMXtTy VXf5Ob6+CJgYUk4SfV1tYZhOsBYNVBP2odPer8rXYXTkJgftzCCALI8wGe01Qv62+zsiHq HCH7rvSzDRBuYZi1oa5DXin1USuJBjy4WaCM+bxKOG9VWxBml9mtajk5tUDA7JhAJxDiHF mkmccCyJ7gB/m779wc/1+lLYTwjiyP0SzLCoi/Ao7oxk+9YTb7hbRybKL/JN4XBEguJR5B kDfbegsMvJzu5arag/219BsMNkjNeIJSF4OgnCRvaxsfS+lbW+y9/SctqnqxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671968568; 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=kXhXEndRoWTHID+R2vk0IYbeFW6AGIyMmL6OTuis+MU=; b=MW5sotTnofq5PD2Fw4PHLaQL45HPrwt2FluPEZRw5gRT0hbeF4+4No45hgp5qb9dhbJ2Qx mUyP7uWi8WIZfWA5KTGmtLiyZFrpGPIGKxyfK9p1d+x8gvqb965t89AbxPShOeDOnUeI8u /PKsNrnQCHnLGeTOTa9PaGf4K8U4sAEdOcGbDODRVCWNN8Mcbg19PepvmxON3Z5hifiUt6 lWUWA+DjWZUpxxHmyvzDbT+24QdiXXb47vCMQzjp7GA0QyVr0lEx3r8CZXR/zm2VRmgIe/ m7K/FkMf4II2Wjb+wQ1nT/girBe0Ezyc/hRu2AKY7LO2b9Ws1Gk58ER5rFjhSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671968568; a=rsa-sha256; cv=none; b=YA6o9/5D6XjA5j1PQ0gj6qzSj+wBCU1cwkUn9CScG9a6eWL/OAdRsoNWCemt9FAoKOlwKS Sua5nrBTTkvwGrEZddB4LIPrb2VdtmpOpVEyFl//vQtn8sxShCo7ZASVPtFbLjOiggSPfj ImBwFmgHaHSsQ9U0chNyNS/xhkORSCaW1c9/Ab1B/YYILZ99s5sYwa6ZGqDfrG2lp2THRu sq8s57+Q1CW7vir++Abd3PcZw5kc3UaSygKeXeQJ5/Jl3DlSR15QzM+CgBz4OLhGmUuOOL I3vPuXy+gVxM1N9Agcm1DW2249C9H/hs8U3H3d/WGOOkISjLt05x6dquw9cCLA== 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 4NfzYh0LhmzrHh; Sun, 25 Dec 2022 11:42:48 +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 2BPBglUD014854; Sun, 25 Dec 2022 11:42:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BPBglVx014853; Sun, 25 Dec 2022 11:42:47 GMT (envelope-from git) Date: Sun, 25 Dec 2022 11:42:47 GMT Message-Id: <202212251142.2BPBglVx014853@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c517ef0589b1 - stable/12 - Apply llvm fix for crash building julia on PowerPC64 List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: c517ef0589b124685da8e383dbff1e2ddb756d0a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c517ef0589b124685da8e383dbff1e2ddb756d0a commit c517ef0589b124685da8e383dbff1e2ddb756d0a Author: Dimitry Andric AuthorDate: 2022-12-16 13:28:10 +0000 Commit: Dimitry Andric CommitDate: 2022-12-25 11:41:43 +0000 Apply llvm fix for crash building julia on PowerPC64 Merge commit 6710b21d4698 from llvm git (by Kai Luo): [PowerPC] Allow llvm.ppc.cfence to accept pointer types In the context of atomic load, integer, pointer and float point types are allowed, thus we should allow llvm.ppc.cfence to accept any type mentioned. Fixes https://github.com/llvm/llvm-project/issues/55983. Reviewed By: shchenz, vchuravy Differential Revision: https://reviews.llvm.org/D127554 Requested by: jhibbits MFC after: 3 days (cherry picked from commit 4589169768490461995f07713c8e9d7bab6bf277) --- contrib/llvm-project/llvm/include/llvm/IR/IntrinsicsPowerPC.td | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/llvm-project/llvm/include/llvm/IR/IntrinsicsPowerPC.td b/contrib/llvm-project/llvm/include/llvm/IR/IntrinsicsPowerPC.td index 92d3bdea37ed..5368214329a8 100644 --- a/contrib/llvm-project/llvm/include/llvm/IR/IntrinsicsPowerPC.td +++ b/contrib/llvm-project/llvm/include/llvm/IR/IntrinsicsPowerPC.td @@ -1427,7 +1427,11 @@ def int_ppc_tsuspend : GCCBuiltin<"__builtin_tsuspend">, def int_ppc_ttest : GCCBuiltin<"__builtin_ttest">, Intrinsic<[llvm_i64_ty], [], []>; -def int_ppc_cfence : Intrinsic<[], [llvm_anyint_ty], []>; +// We currently use llvm.ppc.cfence in the context of atomic load which +// in LLVM IR requires its type to be one of integer, pointer and +// float point type. So llvm_any_ty here refers to type mentioned above. +// Backend is supposed to lower these types to appropriate MVTs. +def int_ppc_cfence : Intrinsic<[], [llvm_any_ty], []>; // PowerPC set FPSCR Intrinsic Definitions. def int_ppc_setrnd : GCCBuiltin<"__builtin_setrnd">,