LLVM/project 1e7e166utils/bazel/llvm-project-overlay/flang/lib/Optimizer/Transforms BUILD.bazel, utils/bazel/llvm-project-overlay/libc/test/UnitTest BUILD.bazel

[bazel][libc] Port 03c62ca40d pt2 (#207846)

This was missed in https://github.com/llvm/llvm-project/pull/207820 adding dep. Along with flang deps.
DeltaFile
+1-0utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/flang/lib/Optimizer/Transforms/BUILD.bazel
+2-02 files

LLVM/project 6132638llvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+119-53llvm/lib/Target/BPF/BPFMIPeephole.cpp
+122-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+66-10llvm/lib/Target/BPF/BPF.h
+33-33llvm/lib/Target/BPF/BPFMIChecking.cpp
+37-28llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+437-1536 files not shown
+483-20212 files

LLVM/project ec77062llvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+119-53llvm/lib/Target/BPF/BPFMIPeephole.cpp
+147-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+66-10llvm/lib/Target/BPF/BPF.h
+33-33llvm/lib/Target/BPF/BPFMIChecking.cpp
+16-49llvm/lib/Target/BPF/BPFTargetMachine.cpp
+441-1748 files not shown
+565-20214 files

FreeBSD/ports d471570devel/aws-crt-cpp distinfo Makefile

devel/aws-crt-cpp: Update to 0.41.0

ChangeLog: https://github.com/awslabs/aws-crt-cpp/releases/tag/v0.41.0
DeltaFile
+3-3devel/aws-crt-cpp/distinfo
+1-1devel/aws-crt-cpp/Makefile
+4-42 files

FreeBSD/ports 1f9c3acsecurity/qt-sudo distinfo Makefile

security/qt-sudo: Update to 2.4.1

ChangeLog: https://github.com/aarnt/qt-sudo/releases/tag/v2.4.1
DeltaFile
+3-3security/qt-sudo/distinfo
+1-1security/qt-sudo/Makefile
+4-42 files

LLVM/project 170ad9ebolt/include/bolt/Core BinaryFunction.h, bolt/lib/Core BinaryContext.cpp

Formatting
DeltaFile
+3-4bolt/lib/Core/BinaryContext.cpp
+1-2bolt/include/bolt/Core/BinaryFunction.h
+4-62 files

LLVM/project 6f47c92clang/docs ReleaseNotes.md, clang/include/clang/Basic DiagnosticGroups.td

Revert "[Clang] Enable -Wunused-template under -Wall" (#207848)

Reverts llvm/llvm-project#206123

See the Flang Runtime unit test failures, we probably should fix those
before merging this to keep buildbots green.
DeltaFile
+0-5clang/docs/ReleaseNotes.md
+1-1clang/include/clang/Basic/DiagnosticGroups.td
+0-2clang/test/Misc/warning-wall.c
+1-1clang/test/SemaCXX/warn-func-not-needed.cpp
+1-1clang/test/SemaCXX/warn-variable-not-needed.cpp
+3-105 files

LLVM/project 5275ff2clang/lib/Headers __clang_gpu_device_functions.h __clang_gpu_intrinsics.h, clang/test/Driver hip-device-libs-llvm-env.hip

[Clang][HIP] Add LLVM vendored device headers for `*-llvm` triple (#203980)

Summary:
We already have the `*-llvm` vendor triple to imply a hermetic LLVM
toolchain for HIP. This adds the device portion of the headers that can
be used without a ROCm installation. These are vendored just like the
CUDA ones. Despite being HIP, these are actually generic because it onyl
uses clang builtins and the `gpuintrin` shims.
DeltaFile
+411-0clang/lib/Headers/__clang_gpu_device_functions.h
+242-0clang/lib/Headers/__clang_gpu_intrinsics.h
+142-0clang/test/Headers/gpu-device-functions.cpp
+71-0clang/lib/Headers/__clang_gpu_builtin_vars.h
+23-0clang/test/Driver/hip-device-libs-llvm-env.hip
+9-0clang/test/Preprocessor/predefined-macros.c
+898-03 files not shown
+912-09 files

LLVM/project 1fd4654lldb/test/API/tools/lldb-dap/exception TestDAP_exception.py, lldb/test/API/tools/lldb-dap/exception/asan TestDAP_asan.py

[lldb-dap] Migrate DAP exceptions test. (#207029)

Migrate all the tests in the `lldb-dap/exception` folder.
DeltaFile
+53-36lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.py
+72-13lldb/test/API/tools/lldb-dap/exception/cpp/TestDAP_exception_cpp.py
+19-12lldb/test/API/tools/lldb-dap/exception/ubsan/TestDAP_ubsan.py
+15-13lldb/test/API/tools/lldb-dap/exception/asan/TestDAP_asan.py
+16-11lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py
+11-0lldb/test/API/tools/lldb-dap/exception/cpp/main.cpp
+186-851 files not shown
+190-867 files

LLVM/project 95dd950clang/test/CodeGen attr-counted-by.c, llvm/test/CodeGen/AMDGPU lower-buffer-fat-pointers-contents-legalization-alignment.ll regalloc-hoist-spill-live-range-upd.ll

Rebase

Created using spr 1.3.7
DeltaFile
+3,280-0llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-contents-legalization-alignment.ll
+0-2,870llvm/test/CodeGen/AMDGPU/regalloc-hoist-spill-live-range-upd.ll
+0-2,755clang/test/CodeGen/attr-counted-by.c
+1,793-835llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fadd.ll
+1,490-652llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmax.ll
+1,490-652llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmin.ll
+8,053-7,7641,793 files not shown
+74,233-35,5091,799 files

LLVM/project e27218ellvm/lib/DebugInfo/DWARF DWARFDebugLine.cpp DWARFDebugAbbrev.cpp, llvm/lib/DebugInfo/GSYM DwarfTransformer.cpp

Reapply "DebugInfo: Shrink-to-fit some containers to reduce peak memory usage" (#199145) (#201160)

Starting with posting this as a draft PR to run presubmit checks to
understand what failed.

This reverts commit #199145,
effectively reapplying #198935.
DeltaFile
+3-4llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
+3-0llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+1-0llvm/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
+1-0llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
+8-44 files

LLVM/project c63adb2clang/docs ReleaseNotes.md, clang/lib/AST MicrosoftMangle.cpp

[clang] Cap MS RTTI TypeDescriptor name strings like MSVC does (#206317)

On the Microsoft ABI, an RTTI TypeDescriptor stores the type's decorated
name as an inline string. Unlike symbol names, this string was never run
through the MD5 shortening that MSVC applies to over-long decorated
names. Deeply nested template types therefore produced unbounded
writable .data COMDATs: for example a type whose template arguments
contain a local lambda, whose mangled name re-spells the enclosing
template context at every level of nesting, grows exponentially with
depth. A five-level repro emitted an 82 MB object file.

Wrap the TypeDescriptor name string in the same msvc_hashing_ostream
already used for the RTTI symbol. When the name reaches the length limit
it is replaced by ??@<md5>@, mimicking MSVC. MSVC counts the leading .
of the name string toward the 4096-character limit but excludes it from
the hashed input, so the threshold here is one lower than for symbols.

Fixes #206313
DeltaFile
+36-0clang/test/CodeGenCXX/mangle-ms-md5.cpp
+11-5clang/lib/AST/MicrosoftMangle.cpp
+6-0clang/docs/ReleaseNotes.md
+53-53 files

LLVM/project ff11bbcclang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

[clang] Reland: fix getTemplateInstantiationArgs (#207825)

Relands https://github.com/llvm/llvm-project/pull/199528
Previous: https://github.com/llvm/llvm-project/pull/202088

This implements a new strategy for collecting the template arguments, by
relying on the qualifiers and template parameter lists to navigate the
template
context of out-of-line definitions.

This greatly simplifies the signature of that function, by removing a
bunch
of workarounds, and simpliffying a couple that weren't removed yet.

Since this now relies on qualifiers and template parameter lists,
this patch expends most of its effort making sure these are placed,
transformed and propagated to template instantiations.

Also makes the explicit specialization AST nodes stop abusing the

    [5 lines not shown]
DeltaFile
+194-429clang/lib/Sema/SemaTemplateInstantiate.cpp
+291-165clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+151-147clang/lib/Sema/SemaTemplate.cpp
+96-95clang/include/clang/AST/DeclTemplate.h
+59-129clang/lib/Sema/SemaConcept.cpp
+60-92clang/lib/AST/DeclTemplate.cpp
+851-1,05762 files not shown
+1,558-1,73168 files

OpenBSD/ports 7yiX0Wwsysutils/exfetch Makefile distinfo

   sysutils/exfetch: update to 1.7

   from izzy Meyer (maintainer)
VersionDeltaFile
1.9+8-5sysutils/exfetch/Makefile
1.8+4-2sysutils/exfetch/distinfo
+12-72 files

FreeBSD/ports e9034acgames/CWR-CE/files patch-engine_Poseidon_AI_AIGroupImpl.cpp patch-engine_Poseidon_World_Entities_Vehicles_TransportCore.cpp

games/CWR-CE: roll upstream fork forward and fix aarch64 build
DeltaFile
+0-118games/CWR-CE/files/patch-engine_Poseidon_AI_AIGroupImpl.cpp
+0-39games/CWR-CE/files/patch-engine_Poseidon_World_Entities_Vehicles_TransportCore.cpp
+18-0games/CWR-CE/files/patch-engine_Poseidon_Foundation_Math_V3QuadsP3.cpp
+17-0games/CWR-CE/files/patch-engine_Poseidon_Foundation_Math_Quatrix.hpp
+0-16games/CWR-CE/files/patch-engine_Poseidon_World_Entities_Vehicles_Transport.cpp
+0-15games/CWR-CE/files/patch-engine_Poseidon_World_Entities_Infantry_SoldierOldMove.cpp
+35-1884 files not shown
+72-19410 files

FreeBSD/ports 4766551devel/moon distinfo Makefile.crates, devel/moon/files patch-cargo-crates_wasmtime-41.0.4_src_runtime_vm_sys_unix_signals.rs patch-cargo-crates_wasmtime-43.0.2_src_runtime_vm_sys_unix_signals.rs

devel/moon: update to 2.4.1
DeltaFile
+385-405devel/moon/distinfo
+191-201devel/moon/Makefile.crates
+0-16devel/moon/files/patch-cargo-crates_wasmtime-41.0.4_src_runtime_vm_sys_unix_signals.rs
+16-0devel/moon/files/patch-cargo-crates_wasmtime-43.0.2_src_runtime_vm_sys_unix_signals.rs
+1-1devel/moon/Makefile
+593-6235 files

NetBSD/pkgsrc TKNoGPVmultimedia/libaom distinfo, multimedia/libaom/patches patch-aom__ports_ppc__cpudetect.c

   multimedia/libaom: restore buildability on NetBSD/macppc.

   Re-apply fix for "So far no dynamic CPU feature detection on NetBSD".
VersionDeltaFile
1.5+5-3multimedia/libaom/patches/patch-aom__ports_ppc__cpudetect.c
1.31+2-2multimedia/libaom/distinfo
+7-52 files

LLVM/project 94b3254clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaChecking.cpp

Revert "[Clang][Sema] Add -Wstringop-overread warning for source buffer overreads (#183004)" (#207840)

This reverts commit 86f2e71cb8d165b59ad31a442b2391e23826133e.

And revert followup ab1ef459069d1dbf4ee9e5a802537ababe294b25 (#205201).

Causes crashes:
https://github.com/llvm/llvm-project/pull/183004#issuecomment-4897195939
DeltaFile
+82-163clang/lib/Sema/SemaChecking.cpp
+0-175clang/test/Sema/warn-stringop-overread.c
+10-10clang/test/AST/ByteCode/builtin-functions.cpp
+3-5clang/test/Sema/warn-fortify-source.c
+0-4clang/include/clang/Basic/DiagnosticSemaKinds.td
+0-4clang/test/Analysis/bstring.c
+95-3617 files not shown
+100-37113 files

OpenBSD/src 8ndBGEPusr.bin/tmux layout.c options.c

   Could of minor tidy ups.
VersionDeltaFile
1.90+2-6usr.bin/tmux/layout.c
1.89+2-2usr.bin/tmux/options.c
+4-82 files

LLVM/project cb0b826.ci compute_projects_test.py compute_projects.py, .github/workflows libclang-python-tests.yml

CI: move libclang python byindings tests to main CI

This removes the separate python bindings CI, which run on the GitHub free
runners and take more than one hour to build libclang.

The tests are executed instead in the monolithic pipelines,
whenever clang would be tested.

This is fine in terms of resources because all the dependencies are
built anyway, and the tests themselves take less than one second to
run on the free runners.
DeltaFile
+0-59.github/workflows/libclang-python-tests.yml
+13-12.ci/compute_projects_test.py
+8-3clang/bindings/python/tests/cindex/test_source_range.py
+3-1clang/bindings/python/tests/cindex/test_translation_unit.py
+1-1.ci/compute_projects.py
+25-765 files

LLVM/project 2e42fddllvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+119-53llvm/lib/Target/BPF/BPFMIPeephole.cpp
+122-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+37-28llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+56-8llvm/lib/Target/BPF/BPF.h
+14-47llvm/lib/Target/BPF/BPFTargetMachine.cpp
+408-1655 files not shown
+437-16511 files

LLVM/project 39ad957llvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+119-53llvm/lib/Target/BPF/BPFMIPeephole.cpp
+122-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+66-10llvm/lib/Target/BPF/BPF.h
+33-33llvm/lib/Target/BPF/BPFMIChecking.cpp
+37-28llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+437-1536 files not shown
+483-20212 files

LLVM/project 4ddf6a9llvm/test/CodeGen/AMDGPU lower-buffer-fat-pointers-contents-legalization-alignment.ll regalloc-hoist-spill-live-range-upd.ll

Rebase

Created using spr 1.3.7
DeltaFile
+3,280-0llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-contents-legalization-alignment.ll
+0-2,870llvm/test/CodeGen/AMDGPU/regalloc-hoist-spill-live-range-upd.ll
+1,793-835llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fadd.ll
+1,490-652llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmin.ll
+1,490-652llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmax.ll
+1,471-539llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-mem-transfer.ll
+9,524-5,548918 files not shown
+40,115-18,192924 files

FreeBSD/src ee5d87asys/netinet raw_ip.c

raw ip: fix race of two connect(2)

The historical design of sockets is that on a re-connect the disconnect is
performed at the socket layer in soconnectat().  Since SMP times this is
known to be racy and the function has appopriate comment.  I missed that
in the recent change.  The pr_connect method should normally expect the
socket to be already disconnected, however should be able to handle a race
where socket is actually connected.  Convert the check that incorrectly
tried to handle normal path of re-connect into check that handles the
race.

Reported by:    markj
Fixes:  ece716c5d34728a170f1dfe1b3389c267d6ddd1e
DeltaFile
+1-2sys/netinet/raw_ip.c
+1-21 files

LLVM/project 77be60dclang/docs ReleaseNotes.md, clang/include/clang/Basic DiagnosticGroups.td

Revert "[Clang] Enable -Wunused-template under -Wall (#206123)"

This reverts commit f348d964af441ec454e5fc12ab1b599cfc1e7d14.
DeltaFile
+0-5clang/docs/ReleaseNotes.md
+1-1clang/include/clang/Basic/DiagnosticGroups.td
+0-2clang/test/Misc/warning-wall.c
+1-1clang/test/SemaCXX/warn-variable-not-needed.cpp
+1-1clang/test/SemaCXX/warn-func-not-needed.cpp
+3-105 files

LLVM/project 2651bd7llvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+119-53llvm/lib/Target/BPF/BPFMIPeephole.cpp
+122-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+37-28llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+56-8llvm/lib/Target/BPF/BPF.h
+14-47llvm/lib/Target/BPF/BPFTargetMachine.cpp
+408-1655 files not shown
+437-16511 files

LLVM/project fc83fd7llvm/lib/Target/BPF BPFMIPeephole.cpp BPFCodeGenPassBuilder.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+88-39llvm/lib/Target/BPF/BPFMIPeephole.cpp
+123-0llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+60-29llvm/lib/Target/BPF/BPFMISimplifyPatchable.cpp
+37-28llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+12-45llvm/lib/Target/BPF/BPFTargetMachine.cpp
+45-6llvm/lib/Target/BPF/BPF.h
+365-1475 files not shown
+393-14711 files

LLVM/project 7c04585clang/include/clang/ScalableStaticAnalysis/Analyses/OperatorNewDelete OperatorNewDeletePointers.h, clang/lib/ScalableStaticAnalysis/Analyses SSAFAnalysesCommon.h

address comments
DeltaFile
+9-8clang/lib/ScalableStaticAnalysis/Analyses/SSAFAnalysesCommon.h
+7-4clang/include/clang/ScalableStaticAnalysis/Analyses/OperatorNewDelete/OperatorNewDeletePointers.h
+4-4clang/unittests/ScalableStaticAnalysis/Analyses/OperatorNewDelete/OperatorNewDeletePointersExtractorTest.cpp
+20-163 files

FreeBSD/src 4dd9e4esys/powerpc/booke pmap_32.c

powerpc/booke(pmap): Flash-invalidate TLB on TID rollover

When the TID rolls over on a given CPU, simply flash-invalidate the
TLB instead of walking the TLB to only invalidate the repurposed TID.
Walking 256 entries is expensive, and we'll likely be inserting a bunch
new ones anyway in the new environment, since 256 really only handles
1MB of storage, so the likelihood of other mappings continuing to exist
in the TLB when their thread owner is scheduled again is very very
small.
DeltaFile
+2-22sys/powerpc/booke/pmap_32.c
+2-221 files

FreeBSD/src dec79d2sys/powerpc/booke pmap.c

powerpc/pmap(booke): Fix TLB TID eviction

Fix tid_set_busy() for when `pmap` is NULL. Obviously a NULL pointer
cannot be correctly used, so I'm not sure how it worked in testing on
64-bit.
DeltaFile
+8-5sys/powerpc/booke/pmap.c
+8-51 files