git: 28a41182c08e - main - Merge llvm-project 13.0.0 release

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sat, 13 Nov 2021 20:57:05 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=28a41182c08e79534be77131840bcfdf73d31343

commit 28a41182c08e79534be77131840bcfdf73d31343
Merge: 8c6f6c0c80f8 3f25e997d96a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-09-26 11:33:13 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-11-13 20:49:29 +0000

    Merge llvm-project 13.0.0 release
    
    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvmorg-13.0.0-0-gd7b669b3a303, aka 13.0.0 release.
    
    PR:             258209
    MFC after:      2 weeks

 .../clang/include/clang/AST/DeclBase.h             | 46 ++++++++---------
 .../llvm-project/clang/include/clang/AST/Type.h    | 34 -------------
 .../clang/include/clang/Sema/Initialization.h      | 16 +++---
 .../llvm-project/clang/lib/AST/ExprConstant.cpp    | 15 ++++--
 .../clang/lib/Analysis/ThreadSafety.cpp            | 31 +++++++-----
 .../llvm-project/clang/lib/CodeGen/CGExprCXX.cpp   | 19 ++++---
 .../clang/lib/Format/UnwrappedLineParser.cpp       |  1 -
 contrib/llvm-project/clang/lib/Sema/Sema.cpp       |  2 +-
 .../llvm-project/clang/lib/Sema/SemaCoroutine.cpp  |  2 +-
 .../llvm-project/clang/lib/Sema/SemaDeclCXX.cpp    |  9 ++++
 contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp   |  2 +-
 .../llvm-project/clang/lib/Sema/SemaExprCXX.cpp    |  5 +-
 contrib/llvm-project/clang/lib/Sema/SemaLambda.cpp |  3 +-
 .../clang/lib/Sema/SemaObjCProperty.cpp            |  3 +-
 contrib/llvm-project/clang/lib/Sema/SemaStmt.cpp   |  8 +--
 contrib/llvm-project/lld/COFF/Writer.cpp           |  3 --
 .../llvm/lib/Analysis/DemandedBits.cpp             |  2 +-
 contrib/llvm-project/llvm/lib/IR/ConstantFold.cpp  | 59 +++++++++++-----------
 .../llvm-project/llvm/lib/Passes/PassBuilder.cpp   |  3 --
 .../AArch64/GISel/AArch64InstructionSelector.cpp   | 12 ++++-
 .../llvm/lib/Target/X86/X86ISelLowering.cpp        |  2 +-
 .../llvm/lib/Transforms/Scalar/ADCE.cpp            |  2 +-
 lib/clang/include/VCSVersion.inc                   |  8 +--
 lib/clang/include/llvm/Support/VCSRevision.h       |  2 +-
 usr.bin/clang/llvm-readobj/Makefile                | 16 ++++++
 25 files changed, 154 insertions(+), 151 deletions(-)

diff --cc lib/clang/include/VCSVersion.inc
index 5e7f6f0abad0,000000000000..98c0198a4aaf
mode 100644,000000..100644
--- a/lib/clang/include/VCSVersion.inc
+++ b/lib/clang/include/VCSVersion.inc
@@@ -1,14 -1,0 +1,14 @@@
 +// $FreeBSD$
 +
- #define LLVM_REVISION "llvmorg-13.0.0-rc3-8-g08642a395f23"
++#define LLVM_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
 +#define LLVM_REPOSITORY "git@github.com:llvm/llvm-project.git"
 +
- #define CLANG_REVISION "llvmorg-13.0.0-rc3-8-g08642a395f23"
++#define CLANG_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
 +#define CLANG_REPOSITORY "git@github.com:llvm/llvm-project.git"
 +
 +// <Upstream revision at import>-<Local identifier in __FreeBSD_version style>
- #define LLD_REVISION "llvmorg-13.0.0-rc3-8-g08642a395f23-1400002"
++#define LLD_REVISION "llvmorg-13.0.0-0-gd7b669b3a303-1400002"
 +#define LLD_REPOSITORY "FreeBSD"
 +
- #define LLDB_REVISION "llvmorg-13.0.0-rc3-8-g08642a395f23"
++#define LLDB_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
 +#define LLDB_REPOSITORY "git@github.com:llvm/llvm-project.git"
diff --cc lib/clang/include/llvm/Support/VCSRevision.h
index ac6277e98d43,000000000000..76c4f00a938c
mode 100644,000000..100644
--- a/lib/clang/include/llvm/Support/VCSRevision.h
+++ b/lib/clang/include/llvm/Support/VCSRevision.h
@@@ -1,3 -1,0 +1,3 @@@
 +/* $FreeBSD$ */
- #define LLVM_REVISION "llvmorg-13.0.0-rc3-8-g08642a395f23"
++#define LLVM_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
 +#define LLVM_REPOSITORY "git@github.com:llvm/llvm-project.git"
diff --cc usr.bin/clang/llvm-readobj/Makefile
index f9294d45491f,000000000000..4b547d81c583
mode 100644,000000..100644
--- a/usr.bin/clang/llvm-readobj/Makefile
+++ b/usr.bin/clang/llvm-readobj/Makefile
@@@ -1,30 -1,0 +1,46 @@@
 +# $FreeBSD$
 +
 +.include <src.opts.mk>
 +
 +PROG_CXX=	llvm-readobj
 +MAN=	llvm-readobj.1 llvm-readelf.1
 +
 +SRCDIR=		llvm/tools/llvm-readobj
 +SRCS+=		ARMWinEHPrinter.cpp
 +SRCS+=		COFFDumper.cpp
 +SRCS+=		COFFImportDumper.cpp
 +SRCS+=		ELFDumper.cpp
 +SRCS+=		llvm-readobj.cpp
 +SRCS+=		MachODumper.cpp
 +SRCS+=		ObjDumper.cpp
 +SRCS+=		WasmDumper.cpp
 +SRCS+=		Win64EHDumper.cpp
 +SRCS+=		WindowsResourceDumper.cpp
 +SRCS+=		XCOFFDumper.cpp
 +
++.include "${SRCTOP}/lib/clang/llvm.pre.mk"
++
++CFLAGS+=	-I${.OBJDIR}
++
++INCFILE=	Opts.inc
++TDFILE=		${LLVM_BASE}/${SRCDIR}/Opts.td
++GENOPT=		-gen-opt-parser-defs
++${INCFILE}: ${TDFILE}
++	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
++	    -o ${.TARGET} ${TDFILE}
++TGHDRS+=	${INCFILE}
++
++DEPENDFILES+=	${TGHDRS:C/$/.d/}
++DPSRCS+=	${TGHDRS}
++CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
++
 +LIBADD+=	z
 +
 +LINKS+=		${BINDIR}/llvm-readobj ${BINDIR}/llvm-readelf
 +
 +.if ${MK_LLVM_BINUTILS} != "no"
 +LINKS+=		${BINDIR}/llvm-readelf ${BINDIR}/readelf
 +MLINKS+=		llvm-readelf.1 readelf.1
 +.endif
 +
 +.include "../llvm.prog.mk"