[llvm-size] Refactor output formatting into SizePrinter classes (NFC)
Introduce a class-based SizePrinter abstraction (SummarySizePrinter,
BerkeleySizePrinter, SysVSizePrinter, DarwinSizePrinter) to encapsulate
format-specific state and output logic instead of branching on
OutputFormat across printObject and printObjectSectionSizes.
Move per-run state (HeaderPrinted and totals) from file-scope globals
into printer instances, preparing llvm-size for cleanly adding
additional output formats such as GNU (-G / --format=gnu) and JSON.
Assisted-by: Gemini
[llvm-size] Deduplicate archive and universal binary traversal (NFC) (#243387)
Introduce ObjectContext, printArchiveMembers, printUniversalSlice, and a
single printObject entry point to replace the duplicated archive loops,
Mach-O universal binary slice handlers, and per-call-site OutputFormat
prefix/suffix blocks in printFileSectionSizes.
Assisted-by: Gemini
[libc++][test] Use `std::nullptr_t` when `<cstddef>` is included (#245901)
The changes are motivated by libstdc++, which does not seem to provide
`nullptr_t` in the global namespace when only `<cstddef>` is included
under some conditions.
`nullptr_t` is guaranteed to be provided in the global namespace only
when `<stddef.h>` is included. Most test files in libc++'s test suite
include `<cstddef>`, so we should use `std::`-qualification to maximize
the portability of tests (at least for those in `libcxx/test/std`).
Notes:
- Some tests are already using `using std::nullptr_t;` before, so they
are unchanged.
- Some tests lack inclusion of `<cstddef>` when `nullptr_t` is
mentioned, so this patch adds the missing includes.
[libc++][test] Fix rebinding for `operator_hijacker_allocator` (#245893)
Previously, `operator_hijacker_allocator` in the test suite lacked
proper rebinding constructors and equality operators. Also, its `rebind`
member was incorrectly implemented.
This patch adds missing functions and corrects the `rebind` member.
`rebind` is now unconditionally provided since some implementations may
provide an extension to restore `allocator::rebind` in C++20 and later.
graphics/mesa-devel: unbreak build on aarch64 after f6ff6b13a646
Run-time dependency bitflags found: NO (tried pkg-config and cmake)
Looking for a fallback subproject for the dependency bitflags
Downloading bitflags-2-rs source from https://static.crates.io/crates/bitflags/2.9.1/download
<urlopen error [Errno 49] Can't assign requested address>
src/panfrost/compiler/kraid/meson.build:5:15: ERROR: could not get bitflags 2.9.1; is the internet available?
Reported by: pkg-fallout
x11/xdg-desktop-portal-wlr: depend on fuzzel as window chooser
- licensed under MIT like xdg-desktop-portal-wlr itself
- fewer dependencies due to *not* using Pango
- used last when all other chosers haven't been installed
For example, when all "dmenu" choosers are missing OBS fails to retry
xdg-desktop-portal-wlr without Window capture.
$ obs-studio
[...]
info: PipeWire initialized
info: [pipewire] Screencast session created
/bin/sh: wmenu: not found
/bin/sh: wofi: not found
/bin/sh: rofi: not found
/bin/sh: bemenu: not found
/bin/sh: mew: not found
/bin/sh: fuzzel: not found
[4 lines not shown]
graphics/mesa-devel: unbreak build on aarch64 after f6ff6b13a646
Run-time dependency bitflags found: NO (tried pkg-config and cmake)
Looking for a fallback subproject for the dependency bitflags
Downloading bitflags-2-rs source from https://static.crates.io/crates/bitflags/2.9.1/download
<urlopen error [Errno 49] Can't assign requested address>
src/panfrost/compiler/kraid/meson.build:5:15: ERROR: could not get bitflags 2.9.1; is the internet available?
Reported by: pkg-fallout
x11/xdg-desktop-portal-wlr: depend on fuzzel as window chooser
- licensed under MIT like xdg-desktop-portal-wlr itself
- fewer dependencies due to *not* using Pango
- used last when all other chosers haven't been installed
For example, when all "dmenu" choosers are missing OBS fails to retry
xdg-desktop-portal-wlr without Window capture.
$ obs-studio
[...]
info: PipeWire initialized
info: [pipewire] Screencast session created
/bin/sh: wmenu: not found
/bin/sh: wofi: not found
/bin/sh: rofi: not found
/bin/sh: bemenu: not found
/bin/sh: mew: not found
/bin/sh: fuzzel: not found
[4 lines not shown]
[ValueTracking][NFC] Move computeKnownFPClass functions verbatim to ValueTrackingFP.cpp (#244968)
Moves `computeKnownFPClass` and related floating-point functions into
`ValueTrackingFP.cpp`.
AI Disclosure:
I used Claude Opus 5.5 to help with the code changes. I copied the code
manually to ensure that code was copied verbatim.
[lld][ELF] Fix use-after-free in section spilling
SHF_MERGE sections were finalized using code that used try_emplace on a
DenseMap, but where the second argument is based on an iterator into the
same map. Since try_emplace takes its arguments by reference and may
reallocate the map, this caused a use-after-free, fixed here by an
explicit copy.
Fixes #245888
Make RDMA link choices cache clearable
Replace the permanent @cache on rdma._get_link_choices and
rdma.get_card_choices with entries in the cache service, and add
private rdma.reset_link_choices to clear them.
[ProfCheck] Mark LowerAtomic/atomicrmw-align.ll as XFail (#246196)
The umax case in the test added in #246171 makes lowerAtomicRMWInst emit
a select without profile metadata, the same existing issue that
LowerAtomic/atomic-load.ll is already on this list for.
Fixes the profcheck bot:
https://lab.llvm.org/buildbot/#/builders/223/builds/18450
Assisted-by: Claude Code (Claude Opus 5.5)
CodeGen: Constify atomic load and store expansion hooks (#245847)
The atomicrmw and cmpxchg expansion hooks already take const
instructions.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[X86] combineOr - don't call SimplifyDemandedVectorElts on OR(X,-1) patterns (#246154)
We'd already reduced this fold in #215538, but we're still having issues
with infinite loops and OR(poison,-1) -> poison propagation due to the
recursion depth limits preventing isGuaranteedNotToBeUndefOrPoison from
always giving us the ideal result.
I've gotten the regressions down a lot (and we can work on the remaining
cases later) but need to get the infinite loops bugs fixed first.
Fixes #241292
Fixes #244602
Fixes #244777
Fixes #246044