LLVM/project ee5d6f5utils/bazel/llvm-project-overlay/clang BUILD.bazel

[Bazel] Fixes c1c278e (#210451)

This fixes c1c278e7484038f1d14314f38736532975fafd20.

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=c1c278e7484038f1d14314f38736532975fafd20

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+2-01 files

LLVM/project b0440cbllvm/include/llvm/ADT GenericCycleImpl.h GenericCycleInfo.h

[CycleInfo] Reference cycles by preorder index, not pointer. NFC (#210271)

The block-to-innermost-cycle map (BlockMap) and each cycle's parent link
hold a GenericCycle pointer. Store the cycle's preorder index instead,
so no raw cycle pointer remains in the stored representation: BlockMap
becomes a SmallVector<unsigned>, four bytes per block rather than eight,
and the parent link becomes ParentIndex.

The flat Cycles array does not exist during construction, so both hold
creation-order indices into the temporary forest until flatten()
resolves them to preorder indices.

Aided by Claude Opus 4.8
DeltaFile
+48-27llvm/include/llvm/ADT/GenericCycleImpl.h
+30-22llvm/include/llvm/ADT/GenericCycleInfo.h
+78-492 files

FreeBSD/src 299bbb7sys/fs/nfs nfsclstate.h, sys/fs/nfsclient nfs_clstate.c

nfs_clstate.c: Fix handling of delegation upgrades

Commit 016570c4463d modified the client to handle
the upgrade of a read delegation to a write delegation,
where the server provides the same delegation stateid
to the client.  However, it failed to check if the
delegation structure was currently in use.  Without this
patch, if the structure was in use, a use after free
could occur.

This patch handles the "in use" case by copying the
necessary fields into the current/old structure and
free's the new one instead of the old one that is
"in use".

PR:     296224

(cherry picked from commit fe6677e7f440d1aa52de036639efc55047ab9a2b)
DeltaFile
+36-9sys/fs/nfsclient/nfs_clstate.c
+4-2sys/fs/nfs/nfsclstate.h
+40-112 files

NetBSD/src eUNuFxPsys/conf std, sys/uvm uvm_swap.c uvm_pager.c

   Make swap encryption truly optional, rather than just able to be
   default-disabled
   - New option VMSWAP_ENCRYPTION (enabled by default in conf/std along with
     VMSWAP)
   - Remove the "aes" attribute from VMSWAP and hand it to VMSWAP_ENCRYPTION.
   - Conditionalize all code and data related to swap encryption on the
     new VMSWAP_ENCRYPTION option.

   While the swap encryption code itself is not that large, it drags in
   the AES code if enabled.  If a constrained platform doesn't care about
   encrypted swap, this lets it not pay the cost for AES.
VersionDeltaFile
1.235+30-4sys/uvm/uvm_swap.c
1.137+3-3sys/uvm/uvm_pager.c
1.38+3-2sys/uvm/files.uvm
1.26+2-1sys/conf/std
+38-104 files

FreeBSD/ports af77559security/wazuh-manager Makefile distinfo

security/wazuh-manager: Fix build/install

- Remove sqlite3 from USES. Now it consumes sqlite3 inside of wazuh
  libraries
- Other minor modifications

Reported by:    pkg-fallout

(cherry picked from commit 324fe51ac4e07189e75aa25435cce269425ee2ad)
DeltaFile
+5-6security/wazuh-manager/Makefile
+3-3security/wazuh-manager/distinfo
+8-92 files

FreeBSD/ports 324fe51security/wazuh-manager Makefile distinfo

security/wazuh-manager: Fix build/install

- Remove sqlite3 from USES. Now it consumes sqlite3 inside of wazuh
  libraries
- Other minor modifications

Reported by:    pkg-fallout
DeltaFile
+5-6security/wazuh-manager/Makefile
+3-3security/wazuh-manager/distinfo
+8-92 files

FreeBSD/ports 70c226bmisc/hermes-agent/files patch-hermes__cli_gateway.py patch-hermes__cli_main.py

misc/hermes-agent: update to 0.15.0
DeltaFile
+145-133misc/hermes-agent/files/patch-hermes__cli_gateway.py
+17-64misc/hermes-agent/files/patch-hermes__cli_main.py
+18-33misc/hermes-agent/files/patch-hermes__cli_setup.py
+18-27misc/hermes-agent/files/patch-hermes__cli_uninstall.py
+9-13misc/hermes-agent/files/patch-hermes__cli_config.py
+13-0misc/hermes-agent/files/patch-tools_lazy__deps.py
+220-2704 files not shown
+251-28110 files

LLVM/project fb2fa0bclang/lib/CIR/CodeGen CIRGenBuiltinX86.cpp, clang/test/CIR/CodeGenBuiltins/X86 sse-builtins.c avx512bw-builtins.c

[clang][clangIR]: X86 upstream avx psrldqi/pslldqi (#208025)

This PR upstreams the implementation and corresponding test suites for
X86 byte-shift intrinsics (pslldqi / psrldqi) spanning 128, 256, and
512-bit vector variants from the incubator.

I consolidated both left and right shifts into a single code path since
the underlying lane topology is identical, extracting the
direction-specific index arithmetic into clean variables at the top. Let
me know if you prefer this unified data-driven approach or if explicit
split functions for left/right shifts would be preferred for local
readability.

All integrated tests from the incubator have been upstreamed and are
currently passing.

Minimal compile case
```cpp
#include <emmintrin.h>

    [32 lines not shown]
DeltaFile
+120-0clang/test/CIR/CodeGenBuiltins/X86/sse-builtins.c
+66-6clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+28-0clang/test/CIR/CodeGenBuiltins/X86/avx512bw-builtins.c
+28-0clang/test/CIR/CodeGenBuiltins/X86/avx2-builtins.c
+242-64 files

FreeBSD/src 672345csys/fs/tmpfs tmpfs_vnops.c

tmpfs: implement AT_RENAME_EXCHANGE

(cherry picked from commit 7e06c33151e7664f6d664ee282d8da1985ce94aa)
DeltaFile
+68-24sys/fs/tmpfs/tmpfs_vnops.c
+68-241 files

FreeBSD/src feb4c9dsys/fs/tmpfs tmpfs_vnops.c

tmpfs: extract tmpfs_rename_check/set_parent() from tmpfs_rename()

(cherry picked from commit 5e0b96e728af9916ac59d65e37155a95e06c3b5e)
DeltaFile
+89-78sys/fs/tmpfs/tmpfs_vnops.c
+89-781 files

FreeBSD/src 5dc55ccsys/fs/tmpfs tmpfs_vnops.c

tmpfs_rename(): style

(cherry picked from commit 631b8ff9318a83b985d3a8a790dd0fc1bab9d5cd)
DeltaFile
+2-2sys/fs/tmpfs/tmpfs_vnops.c
+2-21 files

FreeBSD/src 090fff7lib/libsys rename.2

rename.2: Document AT_RENAME_EXCHANGE

(cherry picked from commit 3055c47f6024b087a90021edb05992304a119827)
DeltaFile
+6-0lib/libsys/rename.2
+6-01 files

FreeBSD/src e0fe823sys/kern vfs_syscalls.c, sys/sys fcntl.h

renameat(2): add AT_RENAME_EXCHANGE flag

(cherry picked from commit 8e6e77ec25bc5809500d29bf318a843b40205657)
DeltaFile
+57-13sys/kern/vfs_syscalls.c
+2-0sys/sys/fcntl.h
+59-132 files

LLVM/project d007100lldb/packages/Python/lldbsuite/test/tools/lldb-dap dap_server.py

[lldb-dap][test] Avoid a hang on a test failure (#209988)

Tests in `TestDAP_server.py` create `DebugAdapterServer`, passing a
connection string. `DebugAdapterServer.__init__()` creates a socket and
passes the associated input and output streams to its parent class,
`DebugCommunication`. `DAPTestCaseBase.launch()`, which is called from
`TestDAP_server.run_debug_session()`, adds a teardown hook that
eventually calls `DebugCommunication.terminate()`. If the socket is not
closed when this hook executes, it waits indefinitely for the receiving
thread to join.

In the normal case, when a test passes, the connection is closed by
calling `self.dap_server.request_disconnect()` at the end of
`TestDAP_server.run_debug_session()`. If a test fails, the cleanup hook
is called while the connection is still active, which results in a hang.
This can be reproduced by removing the call to `request_disconnect()` or
by changing the condition in the `assertEqual()` on the previous line.

The fix passes the opened socket to 'DebugCommunication' and closes the
socket explicitly in 'DebugCommunication.terminate()'.
DeltaFile
+9-0lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
+9-01 files

LLVM/project 42eb7dbclang/cmake/modules ClangConfig.cmake.in, compiler-rt/cmake/Modules CompilerRTUtils.cmake

Revert "Skipping host target exports during cross-compilation" (#210468)

Reverts llvm/llvm-project#209922
It broke runtimes build on amdgpu-amd-amdhsa
DeltaFile
+2-7clang/cmake/modules/ClangConfig.cmake.in
+0-6runtimes/CMakeLists.txt
+0-5compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+1-1llvm/cmake/modules/LLVMConfig.cmake.in
+3-194 files

LLVM/project 03b9039llvm/docs AdminTasks.md

[docs] Update the commit review admin task with process details (#210420)

As discussed in the infra area team meeting. Mostly this serves as a
place to stash helpful links.

I picked an arbitrary two week timeout for requests. We can re-evaluate at any time.
It seems less than ideal that one needs issue tracker labelling
privileges to reopen the issue, but I think that's accurate.
DeltaFile
+17-10llvm/docs/AdminTasks.md
+17-101 files

FreeBSD/src 123dfd3sys/arm64/vmm/io vgic_v3.c

arm64/vmm: Fix vgic_v3 dropping EOI for disabled IRQs

Now that IRQs can properly be disabled by GICD_ICENABLERn, an EOI for a
disabled IRQ ends up being lost, since we don't assign it to a list
register and don't enable maintenance interrupts for such cases. As a
result, we keep the IRQ active, which stops it from ever being delivered
again (which would be true even if we supported the active and pending
state). Keep disabled but active IRQs around in list registers so we can
see the EOI having taken place in a future sync (noting that since we
already don't create list registers in active and pending state there
are no concerns with causing a disabled IRQ to be delivered).

Fixes:          47e073941f4e ("Import the kernel parts of bhyve/arm64")
MFC after:      1 week
DeltaFile
+7-1sys/arm64/vmm/io/vgic_v3.c
+7-11 files

FreeBSD/src 422a530sys/arm64/vmm/io vgic_v3.c

arm64/vmm: Fix vgic_v3 copy paste error for writing to GICD_ICENABLERn

Otherwise we try to disable the wrong IRQ.

Fixes:          47e073941f4e ("Import the kernel parts of bhyve/arm64")
MFC after:      1 week
DeltaFile
+1-1sys/arm64/vmm/io/vgic_v3.c
+1-11 files

LLVM/project d29ab26llvm/docs AdminTasks.md

Extend duration to two weeks
DeltaFile
+1-1llvm/docs/AdminTasks.md
+1-11 files

NetBSD/pkgsrc pxOQuBRdoc CHANGES-2026

   Removed databases/mongodb3 [gdt 2026-07-17]
VersionDeltaFile
1.4525+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc inJUG89databases Makefile, databases/mongodb3 Makefile PLIST

   databases/mongodb3: Remove

   as long-unmaintained and believed to have no users.  As proposed on
   pkgsrc-users, with no objections and one "seconded".
VersionDeltaFile
1.753+1-2databases/Makefile
1.2+1-1databases/mongodb3/patches/patch-src_third__party_s2_s2loop.cc
1.38+1-1databases/mongodb3/Makefile
1.2+1-1databases/mongodb3/PLIST
1.18+1-1databases/mongodb3/distinfo
1.2+1-1databases/mongodb3/files/mongodb.sh
+6-737 files not shown
+40-4143 files

NetBSD/pkgsrc hLhQidsmeta-pkgs/bulk-test-icu Makefile

   bulk-test-icu: Patch up comment about mongodb3

   which is really about mongodb*, no longer including 3.
VersionDeltaFile
1.21+2-2meta-pkgs/bulk-test-icu/Makefile
+2-21 files

LLVM/project ab6ef56lldb/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp ProcessGDBRemote.h, lldb/unittests/Process/gdb-remote ProcessGDBRemoteTest.cpp CMakeLists.txt

[lldb] Contribute the GDB-remote packet history to diagnostics bundles (#210418)

Register a Diagnostics artifact provider from ProcessGDBRemote so a
diagnostics bundle captures the GDB-remote packet history, the same data
"process plugin packet history" prints.
DeltaFile
+106-0lldb/unittests/Process/gdb-remote/ProcessGDBRemoteTest.cpp
+21-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+4-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+1-0lldb/unittests/Process/gdb-remote/CMakeLists.txt
+132-04 files

NetBSD/pkgsrc FvoIy19meta-pkgs/bulk-test-python27 Makefile

   bulk-test-python27: Drop mongodb3

   because it is about to be deleted.
VersionDeltaFile
1.14+2-3meta-pkgs/bulk-test-python27/Makefile
+2-31 files

NetBSD/pkgsrc 6q9aDftmeta-pkgs/bulk-test-boost Makefile

   bulk-test-boost: Drop mongodb3

   because it's about to be deleted.

   (It seems all mongodb are using vendored boost, but as non-MAINTAINER
   I'm simply deleting mongodb3.)
VersionDeltaFile
1.26+2-3meta-pkgs/bulk-test-boost/Makefile
+2-31 files

NetBSD/pkgsrc RGpap3ometa-pkgs/bulk-test-icu Makefile

   bulk-test-icu: Drop mongodb3

   because it is about to be removed.
VersionDeltaFile
1.20+2-3meta-pkgs/bulk-test-icu/Makefile
+2-31 files

LLVM/project 4f2b5acclang/docs ReleaseNotes.md

Fix release notes
DeltaFile
+1-1clang/docs/ReleaseNotes.md
+1-11 files

LLVM/project ccd75bbclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Introduce loop cleanup regions (#210212)

For loops and while loops can create variables in their condition
regions that require per-iteration cleanup. The CIR dialect previously
had no clean way to represent these cleanups while maintaining a
separate condition region for the loop operation.

This change introduces an optional cleanup region to these loop ops and
updates the relevant region successor handling to reflect the insertion
of the cleanup region in the control flow when a non-empty cleanup
region is present.

The CFG flattening pass will handle routing the control flow through the
cleanup region in both the normal and EH unwind cases, but this is not
yet implemented. That will be added in a follow-up change, as will
creation of the cleanup region when it is needed during IR generation.

Assisted-by: Cursor / various models
DeltaFile
+109-0clang/test/CIR/IR/invalid-loop-cleanup.cir
+99-0clang/test/CIR/IR/loop-cleanup.cir
+84-8clang/include/clang/CIR/Dialect/IR/CIROps.td
+69-0clang/unittests/CIR/ControlFlowTest.cpp
+33-18clang/lib/CIR/Interfaces/CIRLoopOpInterface.cpp
+34-2clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+428-282 files not shown
+466-288 files

LLVM/project c4962f5lldb/source/Commands CommandObjectScripting.cpp Options.td, lldb/source/Core PluginManager.cpp

[lldb/script] Add scripting extension template generator (#209647)

This patch adds a `scripting extension generate <ExtensionType>...`
command that introspects a Python extension base class and emits a
skeleton subclass with `# TODO: Implement` stubs for its abstract
methods (or, with `-a`, every method), then opens the result in an
editor.

Generated imports use `from <module> import <class>`, and the generated
`__init__` forwards its arguments to `super().__init__(...)` since every
base class relies on its constructor to set up attributes
(`self.target`, `self.process`, ...) that inherited, non-overridden
methods depend on. When the host can't open an external editor (e.g.
non-macOS), the command reports that as a message rather than an error,
since the file is already written.

To catch regressions in the generator itself instead of just checking
that a file was produced, this patch adds
`TestScriptingExtensionGenerate.py`, which generates a template for

    [4 lines not shown]
DeltaFile
+359-0lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+188-0lldb/source/Commands/CommandObjectScripting.cpp
+167-0lldb/test/API/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate.py
+125-0lldb/source/Interpreter/embedded_interpreter.py
+21-9lldb/source/Core/PluginManager.cpp
+28-0lldb/source/Commands/Options.td
+888-97 files not shown
+961-1213 files

LLVM/project 2066a3fllvm/docs NVPTXUsage.md ExtendingLLVM.md

Fix issues caught during review
DeltaFile
+59-59llvm/docs/NVPTXUsage.md
+22-22llvm/docs/ExtendingLLVM.md
+5-5llvm/docs/HowToCrossCompileBuiltinsOnArm.md
+3-3llvm/docs/BigEndianNEON.md
+1-1llvm/docs/CompileCudaWithLLVM.md
+1-1llvm/docs/AArch64SME.md
+91-916 files