LLVM/project 73306e4llvm/tools/llvm-exegesis/lib MCInstrDescView.cpp MCInstrDescView.h, llvm/unittests/tools/llvm-exegesis/Mips SnippetGeneratorTest.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.8-beta.1
DeltaFile
+13-10llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
+6-2llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
+2-1llvm/tools/llvm-exegesis/lib/LlvmState.cpp
+1-1llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
+22-144 files

LLVM/project 812d2bdclang/docs ghlinks.py, llvm/test/CodeGen/DirectX splitdouble_mat.ll

fix assertion errors

Created using spr 1.3.8-beta.1
DeltaFile
+709-671llvm/test/CodeGen/RISCV/bitint-fp-conv-200.ll
+622-0third-party/benchmark/test/user_counters_threads_test.cc
+294-256third-party/benchmark/include/benchmark/benchmark.h
+496-0llvm/test/CodeGen/DirectX/splitdouble_mat.ll
+264-10clang/docs/ghlinks.py
+229-9third-party/benchmark/tools/libpfm.BUILD.bazel
+2,614-946321 files not shown
+9,322-3,519327 files

FreeBSD/src e492ad0sys/netlink/route rt.c

netlink/route: extend pre-2.6.19 Linux compat shim to del/getroute

Commit f34aca55adef ("netlink/route: provide pre-2.6.19 Linux compat shim",
2024-06) fixed the partial fix for net/bird2 on the netlink path by mapping the
legacy 8-bit struct rtmsg::rtm_table field onto the modern 32-bit RTA_TABLE
attribute when the latter is absent.

That fix, however, was only applied to rtnl_handle_newroute. The two sibling
handlers: rtnl_handle_delroute and rtnl_handle_getroute were left looking at
attrs.rta_table directly. They are reachable from exactly the same client
(bird, in its netlink scan path), so any FIB number that fits in 8 bits
silently maps to RT_TABLE_UNSPEC in those handlers.

Reviewed by:    melifaro (previous version)
Approved by:    emaste
MFC after:      1 week
Sponsored by:   Netflix
DeltaFile
+11-3sys/netlink/route/rt.c
+11-31 files

FreeBSD/doc c029732documentation/content/en/books/porters-handbook/versions _index.adoc

Document __FreeBSD_version values 1404500, 1404501, 1501500, and 1501501.
DeltaFile
+20-0documentation/content/en/books/porters-handbook/versions/_index.adoc
+20-01 files

LLVM/project a3241c5.github/workflows build-ci-container-windows.yml

workflows/build-ci-container-windows: Remove template expansion (#200097)

https://github.com/llvm/llvm-project/security/code-scanning/1580
https://github.com/llvm/llvm-project/security/code-scanning/1581
https://github.com/llvm/llvm-project/security/code-scanning/1582
https://github.com/llvm/llvm-project/security/code-scanning/1583
https://github.com/llvm/llvm-project/security/code-scanning/1584
https://github.com/llvm/llvm-project/security/code-scanning/1585
https://github.com/llvm/llvm-project/security/code-scanning/1586
https://github.com/llvm/llvm-project/security/code-scanning/1587
DeltaFile
+16-7.github/workflows/build-ci-container-windows.yml
+16-71 files

LLVM/project 4e47b56llvm/lib/CodeGen ExpandIRInsts.cpp, llvm/test/CodeGen/AArch64 fcvt-i256.ll

[ExpandIRInsts] Fix sitofp/uitofp to float producing garbage instead of inf (#200291)

[ExpandIRInsts] Fix sitofp/uitofp producing garbage instead of inf

s/uitofp of an integer larger than the max finite floating-point value
should produce inf.  This can't happen with e.g. an int32 -> float32
conversion, but can happen for e.g. int256 -> float32.

Before this change we'd produce garbage.

Fixes #189054.

Co-Authored-By: Claude Opus 4.8 <noreply at anthropic.com>
DeltaFile
+709-671llvm/test/CodeGen/RISCV/bitint-fp-conv-200.ll
+27-13llvm/test/CodeGen/AArch64/fcvt-i256.ll
+20-4llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-si129tofp.ll
+24-0llvm/lib/CodeGen/ExpandIRInsts.cpp
+12-4llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-ui129tofp.ll
+792-6925 files

FreeBSD/src 96dbc9asys/netlink/route iface_drivers.c

netlink: Check permissions for interface flag changes

Reviewed by:    pouria, melifaro
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57332
DeltaFile
+10-1sys/netlink/route/iface_drivers.c
+10-11 files

FreeBSD/src 9ddb606sys/netlink/route iface_drivers.c

netlink: Use early exit pattern in _nl_modify_ifp_generic

No functional change.

Reviewed by:    pouria, melifaro
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57349
DeltaFile
+25-28sys/netlink/route/iface_drivers.c
+25-281 files

FreeBSD/src 11f23d7tools/test/stress2/misc msdos22.sh msdos23.sh

tools/test/stress2/misc: Fix and enable new tests

The previously committed versions of these tests failed to prevent
duplicate file names in the list of files to process, leading to
missing files when a "mv" commando tried to operate on a file that
had already been renamed.

The test for filenames containing UTF-16 surrogate pairs stays
disabled, since the required kernel changes have not been committed,
yet.
DeltaFile
+6-8tools/test/stress2/misc/msdos22.sh
+5-7tools/test/stress2/misc/msdos23.sh
+5-7tools/test/stress2/misc/msdos24.sh
+0-2tools/test/stress2/misc/all.exclude
+16-244 files

FreeBSD/src e021144usr.sbin/acpi/acpidb Makefile

Work around unterminated-string-initialization warnings in acpidb

ACPICA 20250807 fixes these warnings by adding nonstring attributes, but
since ACPICA in stable/14 has not been updated for quite some time,
suppress the warning for clang >= 21 instead. Direct commit to
stable/14, since stable/15 and main already have ACPICA 20250807.
DeltaFile
+4-0usr.sbin/acpi/acpidb/Makefile
+4-01 files

LLVM/project 9b77b22lldb/source/Plugins/DynamicLoader/MacOSX-DYLD DynamicLoaderDarwin.h DynamicLoaderDarwin.cpp

[lldb][Darwin] Correct jGetLoadedDynamicLibrariesInfos typeo & fallback (#200515)

Jonas caught that I had a typeo in checking for the
`sizeof_mh_and_loadcmds` key in the `jGetLoadedDynamicLibrariesInfos`
response from debugserver in DyanmicLoaderDarwin. Fix that.

Also I originally picked a fallback value for the mach header + load
commands as a guess. I've sinced looked at a large UI app's binaries and
based on the size of their actual mh+load commands, picked a default
that will read all the data needed in the majority of cases.

rdar://178283767
DeltaFile
+3-3lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h
+1-1lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
+4-42 files

FreeBSD/src 47f4f76sys/sys param.h

Bump __FreeBSD_version for llvm 21.1.8 merge

PR:             292067
MFC after:      1 month

(cherry picked from commit 8f95b8b19088bd8d73f6d14dab7afe848dfc0c35)
DeltaFile
+1-1sys/sys/param.h
+1-11 files

FreeBSD/src ec67978lib/clang/include/llvm/Config config.h

Fix up builds on Linux hosts after llvm 21.1.8 merge

This is because contrib/llvm-project/llvm/lib/Support/Unix/Threading.inc
attempts to use pthread_get_name_np(3) and pthread_set_name_np(3), which
are not defined on Linux.

Reported by:    ivy
PR:             292067
MFC after:      1 month

(cherry picked from commit b6d823e39072daae9df4b47a15ea7142b7a55f1a)
DeltaFile
+4-0lib/clang/include/llvm/Config/config.h
+4-01 files

FreeBSD/src 0c6a058contrib/llvm-project/clang/lib/Headers emmintrin.h xmmintrin.h

Merge commit b0d2b57f7e47 from llvm git (by Phoebe Wang):

  [Headers][X86] Remove more duplicated typedefs (#153820)

  They are defined in mmintrin.h

This fixes a -Werror warning in openzfs, which compiles for C99, and C99
does not allow for typedef redefinitions.

PR:             292067
MFC after:      1 month

(cherry picked from commit 20450c2e792084f06974cff9d2338e2d0406883f)
DeltaFile
+0-4contrib/llvm-project/clang/lib/Headers/emmintrin.h
+0-1contrib/llvm-project/clang/lib/Headers/xmmintrin.h
+0-52 files

FreeBSD/src 2e97bf2contrib/llvm-project/libcxx/src iostream.cpp

Merge commit c1d26c3c2510 from llvm git (by Nikolas Klauser):

  [libc++] Fix iostream size ABI break (#185839)

  In #124103 we changed the size of various iostream objects, which turns
  out to be ABI breaking when compiling non-PIE code.

  This ABI break is safe to fix, since for any programs allocating more
  memory for the iostream objects, the remaining bytes are simply unused
  now.

  Fixes #185724

This fixes the ABI break that causes programs that use the standard
streams to terminate in various interesting ways, usually by throwing an
unexpected std::bad_cast exception.

PR:             292067
MFC after:      1 month

    [2 lines not shown]
DeltaFile
+55-36contrib/llvm-project/libcxx/src/iostream.cpp
+55-361 files

FreeBSD/src 0b78483contrib/llvm-project/llvm/include/llvm/Option OptParser.td

Add a comment to llvm's OptParser.td, so dependent files get rebuilt.

PR:             292067
MFC after:      1 month

(cherry picked from commit 3cbf898fb49fe087cdcafe2745cca3f7a20f4388)
DeltaFile
+2-0contrib/llvm-project/llvm/include/llvm/Option/OptParser.td
+2-01 files

FreeBSD/src e4ec227. ObsoleteFiles.inc

Remove usr/include/c++/v1/__fwd/get.h from ObsoleteFiles.inc.

PR:             292067
MFC after:      1 month

(cherry picked from commit b99d02027a0fe2e9f9a4aeb6fa3484847ddc5a57)
DeltaFile
+0-1ObsoleteFiles.inc
+0-11 files

FreeBSD/src b50d6ddshare/mk bsd.sys.mk

bsd.sys.mk: also suppress clang -Wc++1[47]-extensions warnings for >= 19

This is a direct commit to stable/14, which does not yet default to
C++17 for most in-tree programs. In some cases, this would trigger
-Wc++1[47]-extensions warnings with libc++ 21.
DeltaFile
+2-0share/mk/bsd.sys.mk
+2-01 files

FreeBSD/src 8bf7343. ObsoleteFiles.inc, contrib/llvm-project/libcxx/include stdint.h cstdint

Revert 00bee6fcd77f, which partially reverted libc++ commit aa7f377c965c

After base 966fb94cb357, this revert is no longer necessary: stdint.h
will unconditionally define macros such as `SIZE_MAX`, `UINT64_C`, and
others.

Submitted by:   Nikolas Klauser <nikolasklauser at berlin.de>
MFC after:      1 month
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746

(cherry picked from commit 19ff93c921a9d31770bcfc194c078e7a42a5f14f)
DeltaFile
+0-127contrib/llvm-project/libcxx/include/stdint.h
+0-8contrib/llvm-project/libcxx/include/cstdint
+0-4lib/libc++/module.modulemap
+3-0ObsoleteFiles.inc
+0-1lib/libc++/Makefile
+3-1405 files

FreeBSD/src 2e6734econtrib/llvm-project/clang/lib/Sema SemaTemplateDeduction.cpp

Merge commit 787ba2426148 from llvm git (by Matheus Izvekov):

  [clang] create local instantiation scope for matching template template parameters (#183219)

  This fixes a bug where a partial substitution from the enclosing scope
  is used to prepopulate an unrelated template argument deduction.

  Fixes #181166

This fixes an expected error when building the devel/catch port.

PR:             292067
MFC after:      1 month

(cherry picked from commit 5ac874516b27474ab5b3d195544c72fb04b4b86e)
DeltaFile
+2-0contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp
+2-01 files

FreeBSD/src 4a5ad04contrib/llvm-project/libcxx/include/__cxx03/__type_traits add_rvalue_reference.h add_lvalue_reference.h

Fixup mismerge in __cxx03/__type_traits/add_[lr]value_reference.h.

PR:             292067
MFC after:      1 month

(cherry picked from commit 0f15398d123a9cf02711efddf5e4040f0066c6de)
DeltaFile
+1-1contrib/llvm-project/libcxx/include/__cxx03/__type_traits/add_rvalue_reference.h
+1-1contrib/llvm-project/libcxx/include/__cxx03/__type_traits/add_lvalue_reference.h
+2-22 files

FreeBSD/src fc1ab22contrib/llvm-project/clang/lib/Sema AnalysisBasedWarnings.cpp

Merge commit 871038759afb from llvm git (by Marco Elver):

  Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)

  de10e44b6fe7 ("Thread Safety Analysis: Support warning on
  passing/returning pointers to guarded variables") added checks for
  passing pointer to guarded variables. While new features do not
  necessarily need to support the deprecated attributes (`guarded_var`,
  and `pt_guarded_var`), we need to ensure that such features do not cause
  the compiler to crash.

  As such, code such as this:

          struct {
            int v __attribute__((guarded_var));
          } p;

          int *g() {
            return &p.v;  // handleNoMutexHeld() with POK_ReturnPointer

    [26 lines not shown]
DeltaFile
+20-5contrib/llvm-project/clang/lib/Sema/AnalysisBasedWarnings.cpp
+20-51 files

FreeBSD/src dbb1534contrib/llvm-project/clang/lib/Sema SemaOverload.cpp

Merge commit d803c61aca0d from llvm git (by Corentin Jabot):

  [Clang] Fix a regression introduced by #147046 (#150893)

  Static functions have an implicit object argument during deduction.

This fixes an assertion while compiling the devel/corrade port.

PR:             292067
MFC after:      1 month

(cherry picked from commit 1dfe63e4f75fa2a8c94aaf4aefaf48d164bc90db)
DeltaFile
+2-2contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp
+2-21 files

FreeBSD/src 179029bcontrib/llvm-project/clang/lib/Sema SemaExpr.cpp

Merge commit 924f773f5e26 from llvm git (by Younan Zhang):

  [Clang] Don't diagnose missing members when looking at the instantiating class template (#180725)

  The perfect matching patch revealed another bug where recursive
  instantiations could lead to the escape of SFINAE errors, as shown in
  the issue.

  Fixes https://github.com/llvm/llvm-project/issues/179118

This fixes compile errors in the www/qt5-webengine port.

PR:             292067
MFC after:      1 month

(cherry picked from commit 3fd796204fe6aa2e8a2b70bb9ea95f7497247fa3)
DeltaFile
+1-1contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
+1-11 files

FreeBSD/src 1cbc4a8contrib/llvm-project/libcxx/include/__exception exception_ptr.h

libcxx-compat: fix llvmorg-21-init-18351-gfcc09b6f0267:

  [libc++] Fix std::make_exception_ptr interaction with ObjC (#135386)

  Clang treats throwing/catching ObjC types differently from C++ types,
  and omitting the `throw` in `std::make_exception_ptr` breaks ObjC
  invariants about how types are thrown/caught.

  Fixes #135089

  Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>

Only use lambdas when in !defined(_LIBCPP_CXX03_LANG), so this will
compile with clang 18 and lower, in C++03 mode and earlier.

PR:             292067
MFC after:      1 month

(cherry picked from commit 987ac31018cba9f1763ad3acfb68b933f58a4c52)
DeltaFile
+1-1contrib/llvm-project/libcxx/include/__exception/exception_ptr.h
+1-11 files

FreeBSD/src a2694eacontrib/llvm-project/libcxx/include/__type_traits remove_reference.h

libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83:

  [libc++] Simplify the implementation of remove_reference (#85207)

  GCC 13 introduced the type trait `__remove_reference`. We can simplify
  the implementation of `remove_reference` a bit by using it.

This is part of making libc++ 21 build with clang 18.

PR:             292067
MFC after:      1 month

(cherry picked from commit a114ece3e6158f49088b0704b4afef07040d83f3)
DeltaFile
+8-1contrib/llvm-project/libcxx/include/__type_traits/remove_reference.h
+8-11 files

FreeBSD/src c350cdfcontrib/llvm-project/libcxx/include/__memory pointer_traits.h

libcxx-compat: revert llvmorg-21-init-15984-g650b451d0065:

  [libc++] Simplify the implementation of pointer_traits a bit (#142260)

This is part of making libc++ 21 build with clang 18.

PR:             292067
MFC after:      1 month

(cherry picked from commit bb6713d38cc0d988378394f599d81d3a83dbaf03)
DeltaFile
+84-34contrib/llvm-project/libcxx/include/__memory/pointer_traits.h
+84-341 files

FreeBSD/src 502fd54contrib/llvm-project/clang/lib/Format QualifierAlignmentFixer.cpp UnwrappedLineParser.cpp, contrib/llvm-project/compiler-rt/lib/sanitizer_common sanitizer_linux.cpp

Merge llvm-project release/21.x llvmorg-21.1.8-0-g2078da43e25a

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/21.x llvmorg-21.1.8-0-g2078da43e25a,
a.k.a. 21.1.8 release.

PR:             292067
MFC after:      1 month

(cherry picked from commit 7351d001fc7f5a77a18a102e12a3ca2cbfd6988c)
DeltaFile
+13-4contrib/llvm-project/clang/lib/Format/QualifierAlignmentFixer.cpp
+14-0contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
+10-2contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+4-4contrib/llvm-project/clang/lib/Format/UnwrappedLineParser.cpp
+3-3lib/clang/include/lldb/Version/Version.inc
+3-3lib/clang/include/clang/Basic/Version.inc
+47-1612 files not shown
+74-3018 files

FreeBSD/src 3e45558contrib/llvm-project/libc/include/llvm-libc-macros float-macros.h

llvm-libc-macros: work around gcc defining LDBL_MANT_DIG as 53 on i386

Otherwise, gcc will not be able to compile parts of libc++ 21 in -m32
mode, resulting in errors similar to:

    In file included from /usr/src/contrib/llvm-project/libc/shared/str_to_float.h:13,
                     from /usr/src/contrib/llvm-project/libcxx/src/include/from_chars_floating_point.h:14,
                     from /usr/src/contrib/llvm-project/libcxx/src/charconv.cpp:12:
    /usr/src/contrib/llvm-project/libc/src/__support/str_to_float.h: In function 'void __llvm_libc::internal::set_implicit_bit(__llvm_libc::fputil::FPBits<T>&) [with T = long double]':
    /usr/src/contrib/llvm-project/libc/src/__support/str_to_float.h:77:10: error: 'struct __llvm_libc::fputil::FPBits<long double>' has no member named 'set_implicit_bit'
       77 |   result.set_implicit_bit(result.get_biased_exponent() != 0);
          |          ^~~~~~~~~~~~~~~~

PR:             292067
MFC after:      1 month

(cherry picked from commit 718e5874be0306ea302fd2b8e1d97fc79682abbe)
DeltaFile
+5-0contrib/llvm-project/libc/include/llvm-libc-macros/float-macros.h
+5-01 files

FreeBSD/src dbafbd4contrib/llvm-project/libcxx/include/__type_traits add_reference.h decay.h

libcxx-compat: revert llvmorg-21-init-17684-gae9990ed9651:

  [libc++] Remove dead code from <type_traits> (#143854)

  Since we've upgraded to GCC 15 now, we can remove a bunch of dead code
  from `<type_traits>`.

This is part of making libc++ 21 build with GCC 14.

PR:             292067
MFC after:      1 month

(cherry picked from commit f7bcd8d8c9336b97569265e5ad36b73b30357beb)
DeltaFile
+45-18contrib/llvm-project/libcxx/include/__type_traits/add_reference.h
+42-10contrib/llvm-project/libcxx/include/__type_traits/decay.h
+33-0contrib/llvm-project/libcxx/include/__type_traits/is_pointer.h
+22-2contrib/llvm-project/libcxx/include/__type_traits/is_array.h
+18-5contrib/llvm-project/libcxx/include/__type_traits/remove_all_extents.h
+18-5contrib/llvm-project/libcxx/include/__type_traits/remove_extent.h
+178-404 files not shown
+223-5710 files