Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[builtins] Avoid using long double in FreeBSD standalone environment #76175

Conversation

DimitryAndric
Copy link
Collaborator

After 05a4212 a number of long double related declarations are enabled in int_types.h, whenever the CPU architecture and platform support it. However, this does not work with FreeBSD's standalone environment, which disallows any use of floating point.

In add98b2 this was made conditional with CRT_HAS_FLOATING_POINT, so use that macro to also determine whether HAS_80_BIT_LONG_DOUBLE can be turned on.

DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Dec 21, 2023
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Dec 21, 2023
fix libsa including compiler-rt builtins.
@@ -156,7 +156,9 @@ typedef struct {
// still makes it 80 bits. Clang will match whatever compiler it is trying to
// be compatible with. On 32-bit x86 Android, long double is 64 bits, while on
// x86_64 Android, long double is 128 bits.
#if (defined(__i386__) || defined(__x86_64__)) && \
#if !CRT_HAS_FLOATING_POINT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be cleaner to just hoist the #if CRT_HAS_FLOATING_POINT from line 225 above this check and omit all floating point typedefs etc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree, move the HAS_80_BIT_LONG_DOUBLE into the else clause around L129.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, but you both seem to suggest different things. :)

So @arichardson seems to suggest extending the #if CRT_HAS_FLOATING_POINT block from line 132 (just after the #if defined(__FreeBSD__) && defined(_STANDALONE) line) to the next-to-last #endif (just before #endif // INT_TYPES_H). I.e., remove the #endif on line 142 (just after the float_bits and double_bits unions), and also remove #if CRT_HAS_FLOATING_POINT on line 223 (just before the #if __STDC_VERSION__ >= 199901L line. Effectively, this makes everything from line 132 onward disappear when floating point isn't supported.

@compnerd seems to to suggest only moving only the block that defines HAS_80BIT_LONG_DOUBLE (lines 154 through 166) to just after line 129. I.e. in the #else case of the #if defined(__FreeBSD__) && defined(_STANDALONE) block.

Have I got that right? I think @arichardson's suggestion is somewhat more clear, and I would also like to add comments in the #endif directives to indicated what block they belong to. I.e. #endif // CRT_HAS_FLOATING_POINT etc.

Copy link
Member

@compnerd compnerd Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some interleaving definitions which would be removed if it were extended. If there's no references to them, extending the else clause should be okay.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see, all the types that are defined (in the original int_types.h) from line 124 onward, so after the #endif // CRT_HAS_128BIT block, are specifically meant for floating point support in some form or other. I wouldn't want to break any other uses though, there are a whole bunch of powerpc64 and 128-bit defines in between, and not all of them fall under CRT_HAS_FLOATING_POINT. I will just move only the really required stuff to the top.

@DimitryAndric
Copy link
Collaborator Author

Hmm I need to do a bit more work on this, since HAS_80_BIT_LONG_DOUBLE isn't defined for some architectures, giving me errors when building all of those architectures for FreeBSD:

$ grep -m1 error: /home/dim/log/universe-2023-12-22a/_.*
/home/dim/log/universe-2023-12-22a/_.arm.armv7.buildworld:/home/dim/src/freebsd/llvm-18-update/contrib/llvm-project/compiler-rt/lib/builtins/divxc3.c:20:35: error: unknown type name 'xf_float'
/home/dim/log/universe-2023-12-22a/_.arm64.aarch64.buildworld:/home/dim/src/freebsd/llvm-18-update/contrib/llvm-project/compiler-rt/lib/builtins/divxc3.c:20:35: error: unknown type name 'xf_float'; did you mean 'tf_float'?
/home/dim/log/universe-2023-12-22a/_.powerpc.powerpc64.buildworld:/home/dim/src/freebsd/llvm-18-update/contrib/llvm-project/compiler-rt/lib/builtins/divtc3.c:23:28: error: call to undeclared function 'crt_fabstf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
/home/dim/log/universe-2023-12-22a/_.powerpc.powerpc64le.buildworld:/home/dim/src/freebsd/llvm-18-update/contrib/llvm-project/compiler-rt/lib/builtins/divtc3.c:23:28: error: call to undeclared function 'crt_fabstf'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
/home/dim/log/universe-2023-12-22a/_.riscv.riscv64.buildworld:/home/dim/src/freebsd/llvm-18-update/contrib/llvm-project/compiler-rt/lib/builtins/divxc3.c:20:35: error: unknown type name 'xf_float'; did you mean 'tf_float'?

@arichardson do you remember the details about this? I think HAS_80_BIT_LONG_DOUBLE might also have to be defined to 1 for armv7, or we have to stop building divxc3.c ? And similar for aarch64 and riscv?

(The powerpc64 failures seem to be something entirely different, these are calls to undeclared crt_fabstf and crt_copysigntf functions. Not sure what is going on there.)

DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Dec 24, 2023
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Dec 25, 2023
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Dec 28, 2023
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 1, 2024
fix libsa including compiler-rt builtins.
@DimitryAndric
Copy link
Collaborator Author

@arichardson the problem, at least on FreeBSD, is that we've been building xf_float based primitives for platforms that strictly do not support 80 bit long double, such as aarch64, arm, powerpc64, and riscv. (See https://github.com/freebsd/freebsd-src/blob/main/lib/libcompiler_rt/Makefile.inc, specifically the initial list for all arches, which includes divtc3.c and divxc3.c.) I could remove these from the list for any architectures that do not support 80 bit long doubles, but then I would be breaking backwards compat.

I.e. in older versions of compiler-rt, functions like divtc3 were just defined with long double in their parameter lists. I think I need to have an alternative where xf_float is a plain long double...

After 05a4212 a number of long double related declarations are
enabled in `int_types.h`, whenever the CPU architecture and platform
support it. However, this does not work with FreeBSD's standalone
environment, which disallows any use of floating point.

In add98b2 this was made conditional with `CRT_HAS_FLOATING_POINT`,
so extend the block guarded by that define to include all floating point
related declarations.
@DimitryAndric DimitryAndric force-pushed the users/DimitryAndric/builtins-avoid-long-double-standalone branch from 9971e98 to d75acf3 Compare January 2, 2024 15:39
@DimitryAndric
Copy link
Collaborator Author

Ok, in the end it was much easier to just extend the CRT_HAS_FLOATING_POINT block to cover all floating point declarations. That fixes the FreeBSD libstand case, and should not influence any other cases.

DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 2, 2024
fix libsa including compiler-rt builtins.
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this seems reasonable. I still wonder if anyone is going to be impacted by the missing type definitions, but if they are, we can deal with them then.

Copy link
Member

@arichardson arichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the uqwords struct should be hoisted before the #ifdef block for the floating point types but otherwise this looks good to me.

@@ -139,7 +139,6 @@ typedef union {
udwords u;
double f;
} double_bits;
#endif

typedef struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this struct not needed outside of the no-fp case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, uqwords is only used in the subsequent declarations of the xf_bits union (for 80 bit long doubles) and the tf_bits union (for 128 bit quads). (This is not the case for the earlier udwords, btw)

@arichardson
Copy link
Member

@arichardson the problem, at least on FreeBSD, is that we've been building xf_float based primitives for platforms that strictly do not support 80 bit long double, such as aarch64, arm, powerpc64, and riscv. (See https://github.com/freebsd/freebsd-src/blob/main/lib/libcompiler_rt/Makefile.inc, specifically the initial list for all arches, which includes divtc3.c and divxc3.c.) I could remove these from the list for any architectures that do not support 80 bit long doubles, but then I would be breaking backwards compat.

I.e. in older versions of compiler-rt, functions like divtc3 were just defined with long double in their parameter lists. I think I need to have an alternative where xf_float is a plain long double...

The tf functions are not long double, they are tetra-float, i.e. 128-bit floating point. Using long double was incorrect for x86 which should only be using it for the xf functions. So you should remove the xf files for !x86.

The other option would be to use the same pattern as in the tf files where they compile to nothing if 80-bit floats are not available (this would require updating the ifdef guards and is probably a bit more work than just changing the makefile).

@DimitryAndric
Copy link
Collaborator Author

The tf functions are not long double, they are tetra-float, i.e. 128-bit floating point. Using long double was incorrect for x86 which should only be using it for the xf functions. So you should remove the xf files for !x86.

The other option would be to use the same pattern as in the tf files where they compile to nothing if 80-bit floats are not available (this would require updating the ifdef guards and is probably a bit more work than just changing the makefile).

Yes, I've done this in DimitryAndric/freebsd-src@2d20348 , effectively moving divxc3 and friends to 80-bit x86-only, and divtc3 and friends to the 128-bit quad section.

@DimitryAndric DimitryAndric merged commit 0b3a89f into main Jan 2, 2024
4 checks passed
@DimitryAndric DimitryAndric deleted the users/DimitryAndric/builtins-avoid-long-double-standalone branch January 2, 2024 18:23
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 3, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 11, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 11, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 22, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Jan 24, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Feb 9, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 9, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 14, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 14, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 15, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 15, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 15, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 16, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 16, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Feb 21, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Feb 21, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Feb 22, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 24, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Feb 26, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 1, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 5, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Mar 10, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 17, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Mar 19, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 19, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Mar 21, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 21, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Mar 21, 2024
fix libsa including compiler-rt builtins.
emaste added a commit to emaste/freebsd that referenced this pull request Mar 22, 2024
commit a7fb520
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 22:50:52 2024 +0100

    Update libllvm for new RISCVGenMacroFusion.inc tblgen header.

commit 92e38d7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 19:01:09 2024 +0100

    Update libllvm for removed file.

commit 1f05b14
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 16:59:11 2024 +0100

    Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit dd2f072
Merge: 024a010 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:58:02 2024 +0100

    Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

    PR:		276104
    MFC after:	1 month

commit 024a010
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 12:41:51 2024 +0100

    [libc++] Rename __bit_reference template parameter to avoid conflict

    As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
    contains a template `__fill_n` with a bool `_FillValue` parameter.

    Unfortunately there is a relatively widely used piece of scientific
    software called NetCDF, which exposes a (C) macro `_FillValue` in its
    public headers.

    When building the NetCDF C++ bindings, this quickly leads to compilation
    errors when the macro interferes with the template in `__bit_reference`.

    Rename the parameter to `_FillVal` to avoid the conflict.

commit 4721947
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Feb 5 10:16:17 2024 +0100

    Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi):

      [Clang][AST] Fix a crash on attaching doc comments (#78716)

      This crash is basically caused by calling
      `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments
      `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different
      files. A reduced reproducer is provided in this patch.

      After the source locations for instantiations of funtion template are
      corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the
      variable `CommitsInThisFile` in the function
      `ASTContext::attachCommentsToJustParsedDecls` would refer to the source
      file rather than the header file for implicit function template
      instantiation. Therefore, in the first loop in
      `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be
      adjusted for relevant scenarios like the second loop.

      Fixes #67979
      Fixes #68524
      Fixes #70550

    This should fix a segfault when compiling graphics/gdal.

commit d4389cf
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 28 21:34:42 2024 +0100

    Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko):

      Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

      This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation
      errors on valid code, see
      llvm/llvm-project#77768 (comment).

commit 638a121
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:21:16 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0).

commit fb7b27d
Merge: 2ed68de 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:04:14 2024 +0100

    Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e.

    PR:		276104
    MFC after:	1 month

commit 2ed68de
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:03:20 2024 +0100

    Tentatively apply libcxxrt/libcxxrt#27.

commit a0cf20a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 26 16:02:51 2024 +0100

    libc++: use build defines and flags similar to upstream.

commit 66f3903
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 09:27:12 2024 +0100

    Add one more header to libc++.

commit ddf7238
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 00:39:43 2024 +0100

    Update libclang, libllvm, llc and lli Makefiles.

commit e025714
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:35:46 2024 +0100

    Update libc++ generated files, and add __assertion_handler.

commit e7cb0e2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:31:39 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae.

commit efd9603
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:23:36 2024 +0100

    Update contrib/llvm-project/FREEBSD-Xlist.

commit 550d813
Merge: 74464e8 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:17:23 2024 +0100

    Merge llvm-project main llvmorg-18-init-18359-g93248729cfae

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the
    last commit before the upstream release/18.x branch was created.

    PR:		276104
    MFC after:	1 month

commit 74464e8
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 15 00:18:22 2024 +0100

    Tabify libc++ Makefile.

commit 1fbb16e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 14 14:20:42 2024 +0100

    Redo libc++ customizations:
    * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared
    * Instead, add direct major __FreeBSD__ check for using ::gets declaration
    * Mark EINTEGRITY values as FreeBSD customization
    * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization

commit f6cfebe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 14:47:52 2024 +0100

    Update libc++ module.modulemap.

commit 2c45cec
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Fri Jan 12 10:57:07 2024 +0100

    Fixup libllvm Makefile for DWARFLinker stuff being moved around.

commit 1f35f87
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:30:38 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424.

commit 7b02ddb
Merge: 6ec4eed 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:29:01 2024 +0100

    Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

    PR:		276104
    MFC after:	1 month

commit 6ec4eed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:49:11 2024 +0100

    Update libllvm and llvm-tblgen Makefiles.

commit b861bf2
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 14:48:50 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde.

commit 42aaf55
Merge: c8faa43 aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 21:00:28 2024 +0100

    Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

    PR:		276104
    MFC after:	1 month

commit c8faa43
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 17:03:13 2024 +0100

    Tentatively merge llvm/llvm-project#77242:

      [libcxx] Re-include <osreldate.h> in __config for FreeBSD

      In 0a97720d0197 some changes were made to `__config` for assuming that
      `__BYTE_ORDER__` is always present.

      However, this deleted a `<osreldate.h>` include for FreeBSD, which is
      required to get the value of `__FreeBSD_version`, and that is used later
      in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be
      enabled.

      Include `<osreldate.h>` just after the other includes used for feature
      detection, to fix this.

      Note that when FreeBSD 13 is EOLed, this can be removed, as then all
      supported FreeBSD versions will no longer have `gets()`.

commit 9db148e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:32:29 2024 +0100

    Add two FreeBSD customizations to libc++, to better support ports usage
    of older clang versions:
    * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
      version checks, to avoid any warnings about support. This makes some
      ports that use -Werror fall over.
    * When using clang < 15.0, avoid using a type visibility attribute on
      the std namespace, as older versions of clang do not support this.

commit ab1dc4a
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Jan 7 12:28:35 2024 +0100

    Fix up ObsoleteFiles entries for libc++.

commit 626eed6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Jan 6 20:55:41 2024 +0100

    Add more clang 17 ObsoleteFiles entries.

commit d23764d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 20:35:30 2024 +0100

    Add files needed for lldb FreeBSD-Kernel DynamicLoader.

commit 7656fbd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:22:03 2024 +0100

    Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4.

commit 9739ebd
Merge: b8840b4 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 19:04:11 2024 +0100

    Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

    PR:		276104
    MFC after:	1 month

commit b8840b4
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:09:41 2024 +0100

    compiler-rt builtins: move 80-bit long double functions into their own
    block, only enabling it for x86, and add more 128-bit quad functions.

commit b3086e6
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 2 17:07:31 2024 +0100

    Revert upstream commit 0e46b49de433:

      Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG"

      This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86.

      PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667

    Since it causes an assertion failure building /sys/dev/fb/vga.c:
    llvm/llvm-project#76416

commit c71a0fe
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Jan 1 18:58:15 2024 +0100

    Apply llvmorg-18-init-15846-g953ae94149f0.

commit fab14fd
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 19:20:33 2023 +0100

    Add new files and remove deleted files from various Makefiles.

commit 5d05e48
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:50:08 2023 +0100

    Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a.

commit 678f56a
Merge: 5f710e3 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 18:35:41 2023 +0100

    Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

    PR:		276104
    MFC after:	1 month

commit 5f710e3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 23:30:02 2023 +0100

    Tentatively apply llvm/llvm-project#76175, to
    fix libsa including compiler-rt builtins.

commit bfd4f0d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 16:56:34 2023 +0100

    Add several new builtins to compiler-rt, and enable quad support for amd64.

commit 60b6608
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Dec 21 14:47:43 2023 +0100

    Use -Wno-vla-cxx-extension for libomp, since clang 18 complains.

commit b051bbb
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:05:48 2023 +0100

    Update libomp generated headers.

commit 98d0e7c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 23:00:26 2023 +0100

    Update libclang_rt makefiles.

commit a08a308
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 21:41:18 2023 +0100

    Update build glue for libc++.

commit 326d983
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Dec 20 19:47:22 2023 +0100

    Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk.

commit 325ba5b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 23:43:32 2023 +0100

    Update build glue to build lldb.

commit 612cd33
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:54:32 2023 +0100

    Regenerate lib/clang/liblldb/LLDBWrapLua.cpp.

commit 12d2341
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 21:48:16 2023 +0100

    Update build glue to build llvm extra tools.

commit bd80bb1
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 20:10:38 2023 +0100

    Update build glue to build full clang (with static analyzer).

commit 0e60a9e
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 19:30:46 2023 +0100

    Update build glue to build default llvm tools for world.

commit 1e1229d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:08 2023 +0100

    Add new files to libclang, and re-sort.

commit 80bc357
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 17:40:00 2023 +0100

    Add new files to libllvm, and re-sort.

commit 220597d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:31 2023 +0100

    Add newly introduced .inc files to libclang.

commit daeeb74
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 15:37:11 2023 +0100

    Cleanup removed files from libclang.

commit 69a6c58
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:34:00 2023 +0100

    After llvm/llvm-project@ac182deee8287 RISCV's
    global isel td file got split off to RISCVGISel.td, so handle that in
    libllvm's Makefile.

commit e27e76b
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Dec 19 12:27:35 2023 +0100

    Cleanup removed files from libllvm.

commit fa84ac3
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:52:45 2023 +0100

    Update Makefile for llvm-tblgen.

commit d43e62d
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:40:01 2023 +0100

    Update FREEBSD-Xlist for llvm 18.

commit a3780ea
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 22:38:45 2023 +0100

    Bump llvm-project numbers from 17.0.6 to 18.0.0.

commit 5d469ef
Merge: 8758bf0 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 18 21:30:12 2023 +0100

    Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

    PR:		276104
    MFC after:	1 month

commit 4fdf604
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Feb 7 15:37:28 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967.

commit 2d835ae
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 25 19:03:34 2024 +0100

    Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e.

commit 4df029c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 24 20:11:41 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
    the last commit before the upstream release/18.x branch was created.

commit 950076c
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Thu Jan 11 19:24:21 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424.

commit aca2e42
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Tue Jan 9 20:58:18 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde.

commit 77dbea0
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Wed Jan 3 17:57:07 2024 +0100

    Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4.

commit 99aabd7
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Mon Dec 25 14:49:57 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

commit 312c0ed
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sun Dec 17 21:41:09 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

commit b1c7353
Author: Dimitry Andric <dim@FreeBSD.org>
Date:   Sat Dec 9 14:28:42 2023 +0100

    Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Apr 5, 2024
fix libsa including compiler-rt builtins.
DimitryAndric added a commit to DimitryAndric/freebsd-src that referenced this pull request Apr 5, 2024
fix libsa including compiler-rt builtins.
freebsd-git pushed a commit to freebsd/freebsd-src that referenced this pull request Apr 6, 2024
This fixes libsa including compiler-rt builtins.

PR:		276104
MFC after:	1 month
freebsd-git pushed a commit to freebsd/freebsd-src that referenced this pull request Apr 20, 2024
This fixes libsa including compiler-rt builtins.

PR:		276104
MFC after:	1 month

(cherry picked from commit 3d68ee6)
freebsd-git pushed a commit to freebsd/freebsd-src that referenced this pull request Apr 20, 2024
This fixes libsa including compiler-rt builtins.

PR:		276104
MFC after:	1 month

(cherry picked from commit 3d68ee6)
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 7, 2024
This fixes libsa including compiler-rt builtins.

PR:		276104
MFC after:	1 month
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants