LLVM/project 85e2a36llvm/lib/Analysis DependenceAnalysis.cpp

[DA] Remove dead code from the Weak Crossing SIV test (#190355)

The ConstantRange intersection check can now handle cases where the
condition of this branch is satisfied. The check is performed before
entering this function, so this part is no longer necessary.
DeltaFile
+0-11llvm/lib/Analysis/DependenceAnalysis.cpp
+0-111 files

LLVM/project 7f9e4feclang/include/clang/Serialization ASTWriter.h, clang/lib/Frontend CompilerInstance.cpp FrontendActions.cpp

[clang] Extract in-memory module cache writes from `ASTWriter` (#190062)

This PR extracts the write to the in-memory module cache from within
`ASTWriter` into `CompilerInstance.` This brings it closer to other
module cache manipulations, making the ordering much more clear and
explicit.
DeltaFile
+0-38clang/unittests/Frontend/FrontendActionTest.cpp
+12-0clang/lib/Frontend/CompilerInstance.cpp
+4-8clang/lib/Serialization/GeneratePCH.cpp
+1-7clang/lib/Serialization/ASTWriter.cpp
+2-5clang/lib/Frontend/FrontendActions.cpp
+1-4clang/include/clang/Serialization/ASTWriter.h
+20-621 files not shown
+20-637 files

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

[CIR] Fix incorrect CIR_GlobalOp.global_visibility assembly format (#189673)

Closes #189666 .

Fix incorrect printing and parsing of `cir.global` if
`global_visibility` attribute is present. Incorrect assembly format
```
(`` $global_visibility^)?
```

Resulted in keyword sticking to previous word and producing incorrect
cir like this:
```
cir.globalhidden external dso_local @hidden_var = #cir.int<10> : !s32i {alignment = 4 : i64} loc(#loc22)
cir.global "private"hidden internal dso_local @hidden_static_var = #cir.int<10> : !s32i {alignment = 4 : i64} loc(#loc24)
```

Using custom parser/printer that is used in `cir.func` parser fixes this
issue and makes printed/parsed attribute for functions and global values

    [2 lines not shown]
DeltaFile
+38-0clang/test/CIR/CodeGen/attribute-visibility.c
+28-0clang/test/CIR/IR/attribute-visibility.cir
+8-1clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+1-1clang/include/clang/CIR/Dialect/IR/CIROps.td
+75-24 files

OpenBSD/ports 0vRQnn4textproc/cookcli distinfo Makefile

   Update to CookCLI 0.27.2.
VersionDeltaFile
1.9+6-6textproc/cookcli/distinfo
1.10+1-1textproc/cookcli/Makefile
1.9+1-1textproc/cookcli/crates.inc
+8-83 files

LLVM/project fd68fa9lldb/source/Core Address.cpp, lldb/source/DataFormatters ValueObjectPrinter.cpp

[lldb] Remove unnecessary calls to ConstString::AsCString (NFC) (#190298)

Replace calls to `ConstString::AsCString` with
`ConstString::GetString(Ref)` where appropriate.

Assisted-by: Claude Code
DeltaFile
+6-8lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+5-3lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+3-2lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
+2-2lldb/source/Plugins/SymbolLocator/DebugSymbols/SymbolLocatorDebugSymbols.cpp
+2-2lldb/source/Core/Address.cpp
+2-2lldb/source/DataFormatters/ValueObjectPrinter.cpp
+20-1924 files not shown
+48-4930 files

LLVM/project 7edf8a7llvm/lib/Analysis ScalarEvolution.cpp, llvm/lib/Transforms/Utils LoopConstrainer.cpp

[SCEV] Replace some hasFlags calls with hasNo(Un)SignedWrap (NFC). (#190352)

This is slightly more compact and reduces diff when switching to enum
class (https://github.com/llvm/llvm-project/pull/190199).

PR: https://github.com/llvm/llvm-project/pull/190352
DeltaFile
+4-4llvm/lib/Transforms/Utils/LoopConstrainer.cpp
+3-3llvm/lib/Analysis/ScalarEvolution.cpp
+2-2polly/lib/Support/SCEVAffinator.cpp
+9-93 files

FreeNAS/freenas eae2d92src/middlewared/middlewared/plugins/disk_ sed.py, src/middlewared/middlewared/utils/disks_ disk_class.py

fix SED drive initialization
DeltaFile
+39-12src/middlewared/middlewared/utils/disks_/disk_class.py
+16-11src/middlewared/middlewared/plugins/disk_/sed.py
+55-232 files

LLVM/project e556454llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

address final nits
DeltaFile
+3-3llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-31 files

FreeBSD/ports e9bcfa3multimedia/ringrtc distinfo Makefile.crates

multimedia/ringrtc: Update to 2.67.0

Drop aarch64 as signal-desktop only builds on amd64
DeltaFile
+41-39multimedia/ringrtc/distinfo
+17-16multimedia/ringrtc/Makefile.crates
+4-5multimedia/ringrtc/Makefile
+1-1multimedia/ringrtc/update.txt
+1-1multimedia/ringrtc/webrtc_fetch.sh
+64-625 files

FreeBSD/ports ef0d2d0net-im/signal-desktop distinfo Makefile, net-im/signal-desktop/files pnpm-lock.yaml patch-package.json

net-im/signal-desktop: Update to 7.84.1

Drop aarch64 as signal-desktop only builds on amd64
DeltaFile
+1,888-2,137net-im/signal-desktop/files/pnpm-lock.yaml
+5-5net-im/signal-desktop/distinfo
+7-3net-im/signal-desktop/files/patch-package.json
+2-3net-im/signal-desktop/Makefile
+1-1net-im/signal-desktop/get_deps.sh
+1,903-2,1495 files

FreeBSD/ports 714dd01net-im/libsignal-node distinfo Makefile

net-im/libsignal-node: Update to 0.89.1

Drop aarch64 as signal-desktop only builds on amd64
DeltaFile
+11-7net-im/libsignal-node/distinfo
+2-3net-im/libsignal-node/Makefile
+3-1net-im/libsignal-node/Makefile.crates
+16-113 files

FreeBSD/ports 01eedd4security/node-sqlcipher Makefile distinfo

security/node-sqlcipher: Update to 3.2.1

Drop aarch64 as signal-desktop only builds on amd64
DeltaFile
+3-16security/node-sqlcipher/Makefile
+5-9security/node-sqlcipher/distinfo
+8-252 files

LLVM/project 59f9c39bolt/lib/Rewrite RewriteInstance.cpp

[BOLT] Check for write errors before keeping output file

Summary:
When the disk runs out of space during output file writing,
BOLT would crash with SIGSEGV/SIGABRT because raw_fd_ostream
silently records write errors and only reports them via abort()
in its destructor. This made it difficult to distinguish real
BOLT bugs from infrastructure issues in production monitoring.

Add an explicit error check on the output stream before calling
Out->keep(), so BOLT exits cleanly with exit code 1 and a clear
error message instead.

Test: manually verified with a full filesystem that BOLT now
prints "BOLT-ERROR: failed to write output file: No space left
on device" and exits with code 1.
DeltaFile
+7-0bolt/lib/Rewrite/RewriteInstance.cpp
+7-01 files

NetBSD/src V2ZPHuksys/dev/pci ld_virtio.c

   ld_virtio.c: work around a qemu bug

   qemu vhost-user-blk-server.c advertizes VIRTIO_BLK_F_SIZE_MAX
   with zero VIRTIO_BLK_CONFIG_SIZE_MAX. it doesn't make sense.

   references:
   https://github.com/qemu/qemu/blob/b6a7d06213e5d2f7d124d16418bc289c4a8a4b82/block/export/vhost-user-blk-server.c#L122
   https://github.com/qemu/qemu/blob/b6a7d06213e5d2f7d124d16418bc289c4a8a4b82/block/export/vhost-user-blk-server.c#L243
VersionDeltaFile
1.47+12-2sys/dev/pci/ld_virtio.c
+12-21 files

LLVM/project f8e2614clang-tools-extra/clang-doc Representation.cpp Representation.h

[clang-doc] Support deep copy between arenas for merging

Upcoming changes to the merge step will necessitate that we clear the
transient arenas and merge new items into the persistent arena. However
there are some challenges with that, as the existing types typically
don't want to be copied. We introduce some new APIs to simplify that
task and ensure we don't accidentally leak memory.

On the performance front, we reclaim about 2% of the overhead, bringing
the cumulative overhead from the series of patches down to about 7% over
the baseline.

| Metric | Baseline | Prev | This | Culm% | Seq% |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Time | 920.5s | 1014.5s | 991.5s | +7.7% | -2.3% |
| Memory | 86.0G | 39.9G | 40.0G | -53.4% | +0.3% |

| Benchmark | Baseline | Prev | This | Culm% | Seq% |
| :--- | :--- | :--- | :--- | :--- | :--- |

    [28 lines not shown]
DeltaFile
+140-21clang-tools-extra/clang-doc/Representation.cpp
+30-0clang-tools-extra/clang-doc/Representation.h
+170-212 files

LLVM/project 9c6ccacclang-tools-extra/clang-doc Representation.cpp Representation.h, clang-tools-extra/clang-doc/tool ClangDocMain.cpp

[clang-doc] Merge data into persistent memory

We have a need for persistent memory for the final info. Since each
group processes a single USR at a time, every USR is only ever processed by
a single thread from the thread pool. This means that we can keep per
thread persistent storage for all the info. There is significant
duplicated data between all the serialized records, so we can just merge
the final/unique items into the persistent arena, and clear out the
scratch/transient arena as we process each record in the bitcode.

The patch adds some APIs to help with managing the data, merging, and
allocation of data in the correct arena. It also safely merges and deep
copies data from the transient arenas into persistent storage that is
never reset until the program completes.

This patch reduces memory by another % over the previous patches,
bringing the total savings over the baseline to 57%. Runtime performance
and benchmarks stay mostly flat with modest improvements.


    [31 lines not shown]
DeltaFile
+134-10clang-tools-extra/clang-doc/Representation.cpp
+25-25clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+7-0clang-tools-extra/clang-doc/Representation.h
+166-353 files

LLVM/project 209a031clang-tools-extra/clang-doc BitcodeReader.cpp BitcodeReader.h

[clang-doc] Simplify parsing and reading bitcode blocks

Much of the logic int he readBlock implementation is boilerplate, and is
repeated for each implementation/specialization. This will become much
worse as we introduce new custom block reading logic as we migrate
towards arena allocation. In preparation for that, we're introducing the
change in logic now, which should make later refactoring much more
straightforward.
DeltaFile
+103-120clang-tools-extra/clang-doc/BitcodeReader.cpp
+5-0clang-tools-extra/clang-doc/BitcodeReader.h
+1-1clang-tools-extra/clang-doc/Representation.h
+109-1213 files

LLVM/project 4c9b84dclang-tools-extra/clang-doc BitcodeReader.cpp Serialize.cpp, clang-tools-extra/unittests/clang-doc SerializeTest.cpp MergeTest.cpp

[clang-doc] Move Info types into arenas

Info types used to own significant chunks of data. As we move these into
local arenas, these types must be trivially destructible, to avoid
leaking resources when the arena is reset. Unfortunaly, there isn't a
good way to transition all the data types one at a time, since most of
them are tied together in some way. Further, as they're now allocated in
the arenas, they often cannot be treated the same way, and even the
aliases and interfaces put in pLace to simplify the transition cannot
cover the full range of changes required.

We also use some SFINAE tricks to avoid adding boilerplate for helper
APIs, we'd otherwise ahve to support

Though it introduces some additional churn, we also try to keep tests
from using arena allocation as much as possible, since this is not
required to test the implementation of the library. As much of the test
code needed to be rewritten anyway, we take the opportunity to
transition now.

    [41 lines not shown]
DeltaFile
+419-187clang-tools-extra/clang-doc/BitcodeReader.cpp
+246-189clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+196-129clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+176-80clang-tools-extra/unittests/clang-doc/ClangDocTest.cpp
+137-75clang-tools-extra/clang-doc/Serialize.cpp
+71-41clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+1,245-70114 files not shown
+1,662-95220 files

LLVM/project 117bc23clang-tools-extra/clang-doc Representation.cpp

[clang-doc] Consolidate merging logic

As we migrate things in the arena, this logic may get more complex.
Factoring it out now, will give clear extension points to make this
easier to manage.
DeltaFile
+10-9clang-tools-extra/clang-doc/Representation.cpp
+10-91 files

LLVM/project 7297e53clang-tools-extra/clang-doc Representation.h

[clang-doc] Enforce arena allocated types are trivially destructible

We can enforce at compile-time that the types we want to place in the
arenas are always safe to allocate there.
DeltaFile
+26-0clang-tools-extra/clang-doc/Representation.h
+26-01 files

LLVM/project 8374255clang-tools-extra/clang-doc Representation.cpp Representation.h, clang-tools-extra/unittests/clang-doc MergeTest.cpp ClangDocTest.cpp

[clang-doc] Migrate Namespaces to arena allocation

This patch allocates the NamespaceInfo types in the local arenas, and
adapts the merging logic for the new list type and its children.
Memory use and performance improve slightly. Micro-benchmarks show a
regression in merge operations due to the more complex list operations.

 ## Build Clang-Doc Documentation
| Metric | Baseline | Prev | This | Culm% | Seq% |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Time | 920.5s | 1009.2s | 1002.4s | +8.9% | -0.7% |
| Memory | 86.0G | 43.2G | 43.9G | -49.0% | +1.6% |

 ## Microbenchmarks (Filtered for >1% Delta)
| Benchmark | Baseline | Prev | This | Culm% | Seq% |
| :--- | :--- | :--- | :--- | :--- | :--- |
| BM_BitcodeReader_Scale/10 | 67.9us | 69.7us | 69.3us | +1.9% | -0.7% |
| BM_BitcodeReader_Scale/10000 | 70.5ms | 22.3ms | 24.8ms | -64.8% | +11.4% |
| BM_BitcodeReader_Scale/4096 | 23.2ms | 4.7ms | 4.4ms | -80.9% | -5.7% |

    [22 lines not shown]
DeltaFile
+26-1clang-tools-extra/clang-doc/Representation.cpp
+8-8clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+7-3clang-tools-extra/unittests/clang-doc/ClangDocTest.cpp
+8-2clang-tools-extra/clang-doc/Representation.h
+6-3clang-tools-extra/clang-doc/JSONGenerator.cpp
+4-4clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+59-217 files not shown
+83-3713 files

LLVM/project bb70f42clang-tools-extra/clang-doc Generators.h MDMustacheGenerator.cpp, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Move non-arena allocated types off the OwnedPtr alias

Some types should not be using this alias, which was over applied to
APIs that wont participate in arena style allocation. This patch
restores them to their correct spelling.
DeltaFile
+7-7clang-tools-extra/clang-doc/Generators.h
+4-4clang-tools-extra/clang-doc/MDMustacheGenerator.cpp
+4-4clang-tools-extra/clang-doc/ClangDoc.cpp
+3-3clang-tools-extra/clang-doc/HTMLGenerator.cpp
+2-2clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+1-1clang-tools-extra/clang-doc/Generators.cpp
+21-211 files not shown
+22-227 files

LLVM/project dc06793clang-tools-extra/clang-doc BitcodeReader.cpp Serialize.cpp, clang-tools-extra/unittests/clang-doc MDGeneratorTest.cpp BitcodeTest.cpp

[clang-doc] Make CommentInfo arena allocated

This patch move the CommentInfo type into the arena. It updates block
handling to collect child info types and serialize the array in one
shot.

We also clean up the test code to avoid using the arenas in the tests.
This has the upside of making the test more hermetic, and avoids churn
in the related code as the allocation API interfaces evolve.

Performance and memory usage regress slightly. This is somewhat expected
as we do not yet aggressively release short term memory during merge
operations. Future patches will reclaim this overhead.

| Metric | Baseline | Prev | This | Culm% | Seq% |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Time | 920.5s | 998.5s | 1010.5s | +9.8% | +1.2% |
| Memory | 86.0G | 43.8G | 47.8G | -44.4% | +9.2% |


    [26 lines not shown]
DeltaFile
+124-94clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp
+70-111clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+66-103clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+15-30clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+17-9clang-tools-extra/clang-doc/BitcodeReader.cpp
+15-5clang-tools-extra/clang-doc/Serialize.cpp
+307-3526 files not shown
+345-37012 files

LLVM/project 08ca72fclang-tools-extra/clang-doc BitcodeWriter.cpp

clang-format
DeltaFile
+1-1clang-tools-extra/clang-doc/BitcodeWriter.cpp
+1-11 files

LLVM/project f721cfbclang-tools-extra/clang-doc BitcodeReader.cpp JSONGenerator.cpp

[clang-doc] Refactor FriendInfo parameters to use ArrayRef

This also adapts readBlock for the new layouts.
DeltaFile
+45-7clang-tools-extra/clang-doc/BitcodeReader.cpp
+2-2clang-tools-extra/clang-doc/JSONGenerator.cpp
+1-2clang-tools-extra/clang-doc/BitcodeWriter.cpp
+1-2clang-tools-extra/clang-doc/Serialize.cpp
+1-1clang-tools-extra/clang-doc/Representation.h
+50-145 files

LLVM/project d8ba56ccompiler-rt/cmake/caches GPU.cmake AMDGPU.cmake, offload/cmake/caches FlangOffload.cmake Offload.cmake

[compiler-rt] Split the GPU.cmake cache file to AMDGPU and NVPTX (#190349)

Summary:
These will have different functionality going forward. They should be
split so we can more easily support things only feasible in AMDGPU.
DeltaFile
+0-20compiler-rt/cmake/caches/GPU.cmake
+18-0compiler-rt/cmake/caches/AMDGPU.cmake
+18-0compiler-rt/cmake/caches/NVPTX.cmake
+2-2offload/cmake/caches/FlangOffload.cmake
+2-2offload/cmake/caches/Offload.cmake
+1-1offload/cmake/caches/AMDGPULibcBot.cmake
+41-256 files

FreeNAS/freenas e5fdfbasrc/middlewared/middlewared/plugins/disk_ sed.py

address review
DeltaFile
+1-1src/middlewared/middlewared/plugins/disk_/sed.py
+1-11 files

NetBSD/pkgsrc PNrqIMhx11/wezterm Makefile

   wezterm: remove duplicate include
VersionDeltaFile
1.10+1-2x11/wezterm/Makefile
+1-21 files

LLVM/project 6412767clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

[CIR] Fix mixing of catch-all and type-specific catch handlers (#190285)

If a try block has a catch-all handler and one or more type-specific
catch handlers, we were failing to generate the null type specifier when
lowering from CIR to LLVM IR. This change fixes that problem.

Assisted-by: Cursor / claude-4.6-opus-high
DeltaFile
+172-0clang/test/CIR/CodeGen/try-catch-all-with-cleanup.cpp
+27-0clang/test/CIR/Lowering/eh-inflight.cir
+20-0clang/test/CIR/IR/eh-inflight.cir
+8-8clang/test/CIR/Transforms/eh-abi-lowering-itanium.cir
+10-5clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+246-131 files not shown
+249-137 files

LLVM/project 5b56352clang/lib/CIR/CodeGen CIRGenFunction.h CIRGenDecl.cpp, clang/test/CIR/CodeGen cleanup.cpp

[CIR] Implement cleanups for temporaries with automatic duration (#189754)

This implements handling for cleanup of temporary variables with
automatic storage duration. This is a simplified implementation that
doesn't yet handle the possibility of exceptions being thrown within
this cleanup scope or the cleanup scope being inside a conditional
operation. Support for those cases will be added later.
DeltaFile
+47-3clang/lib/CIR/CodeGen/CIRGenFunction.h
+31-0clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+15-0clang/lib/CIR/CodeGen/EHScopeStack.h
+15-0clang/test/CIR/CodeGen/cleanup.cpp
+15-0clang/lib/CIR/CodeGen/CIRGenCleanup.cpp
+3-2clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+126-56 files