From nobody Sun Dec 24 14:02:09 2023 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 4SyjQT5mFSz54ff5; Sun, 24 Dec 2023 14:02:09 +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 4SyjQT3fR3z4CVB; Sun, 24 Dec 2023 14:02:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703426529; 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=SlAHV8reQh9ugiroE0aZrfoiMDODEX4akb2KsA6oE18=; b=F+PXjbxMOuAPxH0Z+Ta3/Wq+TJyKFnU+jAH+m3uhefOlcoCFnrjjhQxvXI1+qxeW8JfEFm rWIb10FEEFwMzdwfeZFEkyi8HrxKSvyFUN+As+Xv/OTsTAk4L8uQQ4gCGRGDndDKDi9e7T tNtaAn/qX+FLLB7dmq+grg4y18rvbjNvV1PSV+M8e+8yOQ3BSTPDCzxiSip2aV6PtsKY1H fAeWSut64fwaeT4KaOM065EbanFISkgL7cRiUPuiP3m2SjnzPErPNrRnNUurM9zj41F/Pc RhN5gEwKYPe+NMCy2qdvIThKsNDkIbO0yxelc9Xz/AoZikkNY+JhSQzhg4YyVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703426529; a=rsa-sha256; cv=none; b=pPdEDDZeTi5LuTwd8pawXM2UteZL0+ftD447hODKMe7vvYIfC/BtvVk+Tx7lExOHTKMLh/ jB1KlwDygo4MRopnBK/fmaL9pKXpM9DTtk44CD7xmH4eUFlcSIqdZpO3UoNMwXaxbsXvv6 G76nribT+xex1n2OkLtUuwjXglRWNuZTCEhHazdjdb+3fUqdjYEZhZuY+URqfqxpfU4MDU aUIV0aSgkpIHjSRtIt6DsA+QQ9nqZ3F92shqibImKOX3gSS0iLFLsrwJD5Yr/39HWVfAbw lwh9gn1U2ehfDBnVQVheqzpCtMWoKE+jRwln0VBQ1R7f/QSEFS9/7Gc+iVyG+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703426529; 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=SlAHV8reQh9ugiroE0aZrfoiMDODEX4akb2KsA6oE18=; b=FabMxNAYYhi7Xi+iptw+PA0+wNpHDGBzEawMU4ERj2IsamLQta9DIbLXiS01BMyXCCheMQ O3cCzWR8v5xRCpr+wI5rIVThiaLAcJ2J9cDB8rDiqNoQgva+HIYOqf4Bq8stiBgdChvCeh JODjGwMfAfJeaIK5/qn8lqm/DyU+RMZqKpS/rkzdy/0LV/Lkevk73IB3o9hr9zAIKslZJP EtYG/KAKGuxPBRdT4LaQpW2NmYRuB6W3hyV2rQc1waKJDy1XbadinFqUeyuB5iWFRysRXk xfl0PupQIStls4XxrWkWwohBQxeuNOaL5VyJwl6gXSfntItAT60GWgWRbRNQfg== 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 4SyjQT2bzxzWH9; Sun, 24 Dec 2023 14:02:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BOE29Wf056956; Sun, 24 Dec 2023 14:02:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BOE29sU056953; Sun, 24 Dec 2023 14:02:09 GMT (envelope-from git) Date: Sun, 24 Dec 2023 14:02:09 GMT Message-Id: <202312241402.3BOE29sU056953@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: 6bbffa1a329f - stable/14 - Merge commit 989879f8fded from llvm git (by Paul Walker): 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/14 X-Git-Reftype: branch X-Git-Commit: 6bbffa1a329f61c602bdc0b75d43dae06a4cea59 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6bbffa1a329f61c602bdc0b75d43dae06a4cea59 commit 6bbffa1a329f61c602bdc0b75d43dae06a4cea59 Author: Dimitry Andric AuthorDate: 2023-12-04 17:59:02 +0000 Commit: Dimitry Andric CommitDate: 2023-12-24 13:59:13 +0000 Merge commit 989879f8fded from llvm git (by Paul Walker): [Clang] Allow C++11 style initialisation of SVE types. Fixes https://github.com/llvm/llvm-project/issues/63223 Differential Revision: https://reviews.llvm.org/D153560 Requested by: andrew MFC after: 3 days (cherry picked from commit 641efdd10cc3ad05fb7eaeeae20b15c5ad4128c8) --- contrib/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/contrib/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp b/contrib/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp index a0dcb978b1ac..ba8b5ab502d2 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp @@ -1861,6 +1861,23 @@ Value *ScalarExprEmitter::VisitInitListExpr(InitListExpr *E) { return Visit(E->getInit(0)); } + if (isa(VType)) { + if (NumInitElements == 0) { + // C++11 value-initialization for the vector. + return EmitNullValue(E->getType()); + } + + if (NumInitElements == 1) { + Expr *InitVector = E->getInit(0); + + // Initialize from another scalable vector of the same type. + if (InitVector->getType() == E->getType()) + return Visit(InitVector); + } + + llvm_unreachable("Unexpected initialization of a scalable vector!"); + } + unsigned ResElts = cast(VType)->getNumElements(); // Loop over initializers collecting the Value for each, and remembering