[libc++] Fix locale_base on generic Unix (#238740)
This re-adds an `#if` for MVS that was dropped in 182ae96a82fc, and
uses the generic linux path whenever glibc is in use.
[libc++][NFC] Fix figure captions in __vector/layout.h (#242817)
The caption of Figure 1 refers to boxes marked with `xx`, but the
diagram marks allocated-but-unused slots with `------`.
Signed-off-by: Alexander Kuleshov <kuleshovmail at gmail.com>
[GlobalsModRef] Remove leftover TLI pass dependency (NFC) (#246470)
The last use of TargetLibraryInfoWrapperPass in GlobalsAAWrapperPass was
removed on November 26, 2026 in commit
6e3568595dfd49d950b75c00be2b522455885bd1. This patch removes the
remaining analysis requirement and the unused Trip variable.
Assisted-by: Antigravity
[llvm] Remove write-only and unused members (NFC) (#246266)
This patch removes private member variables across llvm/ that are
initialized or assigned to but never read, along with their initializers
and assignments. This patch also removes two unimplemented private
member function declarations, MachOWriter::strTableSize and
XCoreTargetLowering::LowerGlobalTLSAddress.
Assisted-by: Antigravity
[analyzer][NFC] Skip NumberObjectConversionChecker in TUs without number objects (#246446)
NumberObjectConversionChecker runs its AST matcher on every function
body. Every match involves a declaration named CFNumberRef,
CFBooleanRef, OSBoolean, OSNumber or NSNumber, so nothing can match if
none of these identifiers is in the identifier table, which is the case
for most C++ translation units. Skip the matching then. The lookups use
IdentifierTable::find, so that they do not create the identifiers.
Declarations deserialized from a PCH or module add their identifiers to
the table, so this works with those too.
The matcher itself is already built only once per checker; this avoids
running it. On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr)
this reduces the instructions of the static analyzer by 0.6-2.2% and the
cycles by 0.9-2.4%.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[RISCV] Clear Zvl*b in getHostCPUFeatures when vector is unavailable (#244253)
The impetus for this was seeing this post
<https://lore.kernel.org/spacemit/apSYF5x1Tu7PlyL1@aurel32.net/T/#ma79474016077620f81ff0a3caeba52f7b4b85da4>
complaining that an LLVM JIT immediately fails if booting a system with
V disabled. Looking into what could cause that, I found two relevant
issues and this is the first.
For this code path we have a problem in the following scenario (as I
understand it!):
* The kernel has vector disabled, e.g. removing 'v' from the devicetree.
* JITTargetMachineBuilder::detectHost (or `-mcpu=native` for llc/lli)
takes the CPU from getHostCPUName and builds a feature string from
getHostCPUFeatures.
* getHostCPUName returns the name of a core that supports vector (say
spacemit-x60). #142745 returns the CPU name based on examining
mvendorid/marchid/mimpid as reported by hwprobe. spacemit-x60 of course
is defined as including V and Zvl256b.
[33 lines not shown]
net-p2p/autopulse: Update 1.5.0 => 2.0.0
Upstream 2.0.0 adds settings rather than replacing them: app gains
base_path, secure_cookies and trusted_proxies, opts gains the webhook
retry, timeout and interval knobs, hookshot and json webhooks are new,
and the database migrations are additive and run at startup. No 1.x
configuration key was removed, so existing configuration files keep
working.
Build with the system OpenSSL instead of the bundled copy. Patch the
library manifest and Cargo.lock to drop the vendored feature and the
openssl-src build dependency, following sysutils/eza, so CARGO_CRATES
and distinfo no longer carry openssl-src.
Ship a full sample configuration covering every setting, installed as
autopulse:autopulse 0600 because it holds credentials, and run the
daemon under daemon(8) as the autopulse user with output to
/var/log/autopulse.log. Add a newsyslog drop-in for log rotation and
create /var/db/autopulse for the sqlite database in the rc script. The
[14 lines not shown]
wpa_supplicant: Mark FreeBSD scan result levels as dBm
The FreeBSD driver wrapper converts net80211's half-dB RSSI relative
to the noise floor into an absolute signal level, but leaves
WPA_SCAN_LEVEL_DBM unset.
Without the flag, scan_snr() uses the raw level instead of subtracting
the noise floor. The scan comparator also uses uncapped raw levels
rather than its dB-based SNR calculation. This can favour a stronger
2.4 GHz BSS over a faster 5 GHz BSS.
Set the flag alongside the existing conversion in the __FreeBSD__
branch, as other driver wrappers do for levels reported in dBm.
Tested with base wpa_supplicant 2.11 on FreeBSD 15.1-RELEASE-p7,
using an Intel 8265 on a dual-band network. Three stock cold starts
selected 2.4 GHz; two starts with this change selected 5 GHz HT40.
PR: 301132
Reviewed by: emaste
[LifetimeSafety][NFC] Do not store empty loan sets (#246460)
An origin missing from the loan propagation lattice has no loans, so
remove it instead of storing an empty set when it is killed, expires or
receives no loans from a flow. This keeps the maps smaller.
On the lifetime safety benchmarks this reduces the peak memory by 8% for
the CFG merge test and 3% for the switch fan-out test, with no change in
instructions for the others.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Gabor Horvath <gaborh at apple.com>
report bytes received in scsi_report_luns() and fail with EIO in the
impossible case
take the lun count from the smaller of the length field or bytes received
this way we avoid taking garbage from devices when we enable report luns on USB
ok miod@
[BuildLibCalls] Do not mark ctermid argument as nocapture (#241813)
Remove setDoesNotCapture flag from ctermid.
char* ctermid(char* s), according to POSIX spec returns either address
of static buffer, or its argument if non-NULL, which counts as capture.
This was detected with RTEMS tests, clang incorrectly optimized out
input to ctermid assuming nocapture.
[SandboxVec][LoadStoreVec] Factor out canUnpack and unpackIfNeeded (NFC) (#245732)
This moves the logic that unpacks each original load from the lanes it
occupies in a vector load, and the check that those lanes can be
reinterpreted as the load's type, out of `vectorizeLoads()` into two new
helpers, `canUnpack()` and `unpackIfNeeded()`.
Co-authored-by: Cursor <cursoragent at cursor.com>
[analyzer][NFC] Skip RetainSummaryManager's OSObject and ISL checks when they cannot match (#246458)
For every call it summarizes, RetainSummaryManager runs AST matchers to
check whether a record derives from OSMetaClassBase, and prints
parameter types to check for an "isl_" prefix. Neither can match if no
identifier in the translation unit is named OSMetaClassBase or starts
with "isl_", which is the case for most translation units, so skip them
then.
On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 1.5-2.4%.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[X86] matchBinaryShuffle - don't fold BLEND(X,Y) --> OR(X,Y) if any demanded elts may contain poison/undef (#246461)
Similar to #245048, KnownBits analysis doesn't guarantee that a value
isn't UNDEF/POISON, so after MaskedVectorIsZero we need to confirm with
isGuaranteedNotToBeUndefOrPoison
Fixes #246348
[llvm-cov] Look up expansion regions by FileID with binary search
Region vectors are already sorted by FileID, so filtering for one file
is just selecting a contiguous subrange. Do that with a binary search
instead of scanning the whole function.
nim: update doc option so it pulls in all the code
Previous to this commit, the docs would've need git and an internet connection to build. This fixes this by adding all the needed code as submodules and disabling some documentation that would need a internet connection.
acpica: Fix SRAT memory region insertion sort
The SRAT table can list memory regions in any order, but we need them
sorted. There is an insertion sort to accomplish this when building
the mem_info array, but instead of inserting the new region before
the *first* higher-base-address region, it was inserting the new
region before the *last* higher-base-address region; i.e. if the array
already held "1 3 4" then inserting "2" would produce "1 3 2 4".
Break out of the insertion-location-finding loop when we find the right
spot to insert the new memory region into the list, rather than looking
further.
Reviewed by: jhb
Fixes: dd540b46236b ("Add a parser for the ACPI SRAT table...")
MFC after: 1 day
Sponsored by: Amazon
Tested on: c5n.9xlarge, c6a.24xlarge, c6a.metal, c7a.metal-48xl
c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl
[5 lines not shown]
EC2: Set hw.dmar.enable="1"
Large EC2 "bare metal" instances route interrupts to APIC IDs > 255,
and unlike the "virtualized" instances, don't support extended APIC
destination IDs (since that's a hypervisor feature, and bare metal
instances have no hypervisor).
Enable the IOMMU for interrupt remapping; this unbreaks booting on
m8i.metal-96xl and variants thereof (e.g. c8in).
MFC after: 1 day
Sponsored by: Amazon
Tested on: c5n.9xlarge, c6a.24xlarge, c8in.96xlarge, c5.metal,
c6in.metal, c6a.metal, c7a.metal-48xl, c7i.metal-24xl,
c7i.metal-48xl, c8a.metal-24xl, c8a.metal-48xl,
c8i.metal-48xl, c8i.metal-96xl, c8in.metal-48xl,
c8in.metal-96xl, m5.metal, m8azn.metal-24xl
(cherry picked from commit 3c03ab02cf312d4fdf37ce3ff90b901722c4b3cb)
net-im/purple-gowhatsapp: Upgrade 1.22 => 1.26
Upstream changes since 1.22:
- mentions are resolved;
- typing notifications are sent;
- newsletters are ignored by default (account setting
"ignore-newsletters");
- images of all types can be inlined ("inline-all-images");
- the auto-downloader's symbolic links can be turned off
("attachment-symlink");
- PNG images are sent as image messages rather than documents;
- saving an incoming document suggests the sender's file name;
- changes to a contact's name are picked up.
https://github.com/hoehermann/purple-gowhatsapp/blob/v1.26.0/CHANGELOG.md
Upstream's go.mod now names Go 1.27, but nothing the port compiles
needs more than 1.26, so it stays with the default Go version.
While here, update all Go dependencies to their latest versions,
[5 lines not shown]
[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode
A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.
Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.
Also reset the VA_VDST field of a duplicate S_WAITCNT_DEPCTR to "no
wait" once its wait has been folded into the first one, instead of
leaving a redundant copy of the combined wait behind.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>