[libc] Add sys/timerfd.h and timerfd_create on Linux. (#243360)
* Add `<sys/timerfd.h>` header on Linux platforms.
* Provide macro definitions for `TFD_*` constants, and ensure `CLOCK_*`
values are also available.
* Implement one of the syscall wrappers defined in this file -
timerfd_create (as a straightforward syscall wrapper).
* Add a simple unit test that validates that returned fd has correct
flags and can be read/closed.
See https://man7.org/linux/man-pages/man2/timerfd_create.2.html for the
docs.
[LLD][COFF] Avoid repeated vector insertion during thunk creation (up to 10x improvement for large links) (#241059)
Inserting each range-extension thunk into OutputSection::chunks shifts
the remaining chunk pointers. When many chunks need thunks, this makes
chunk-list construction quadratic.
Append the original chunks and their thunks to a new vector and swap it
into the output section, preserving their order and the existing thunk
placement, reuse, relocation rewriting, and retry policy. Newly created
range-extension thunks need no additional visit because they inherit the
no-op extendRanges implementation.
On my x64 Windows machine it reduces a large ARM64 debug link from 43
minutes down to 2 minutes.
Tested with ninja -C build check-lld-coff: 559 passed, 6 unsupported.
Assisted-by: GitHub Copilot CLI (GPT-6.1 Sol)
[llvm-objdump] Start an ARMNT export at its even address (#242496)
On ARMNT the export RVA of a Thumb function has its low bit set.
llvm-objdump used it as the symbol address, so it disassembled
each export from the odd address and everything after the first
export came out one byte off. I hit this checking DLLs built for
Windows on Arm.
This clears the low bit of an export in a code section.
Assisted-by: Claude Opus 5.5 (Anthropic)
Co-authored-by: Saleem Abdulrasool <compnerd at compnerd.org>
RegisterCoalescer: Only shrink subranges in ShrinkMask after a join
When joinCopy needs to shrink the main range, shrinkToUses was called
on the whole interval. This also shrinks every subrange. If the join
did not set ShrinkMainRange, no subrange is ever shrunk, so the join
is already trusted to leave only the subranges in ShrinkMask needing
it. The other reasons for shrinking the main range (pruned main range
values, uses that now read only undef lanes) do not change any
subrange. Pass ShrinkMask to shrinkToUses to restrict which subranges
it shrinks, unless the source interval was in ToBeUpdated.
llc instructions:u, AMDGPU sample: -0.11%
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
devel/py-sentinels: Add new port
Sentinels are objects with special meanings. They can be thought of as
singletons, but they serve the need of having special values that have
special meanings. This module provides the Sentinel class along with
useful predefined instances.
WWW: https://github.com/vmalloc/sentinels
PR: 300721
Approved by: osa, vvd (mentors, implicit)
databases/py-mongomock: Add new port
Mongomock is a small library to help testing Python code that interacts
with MongoDB via Pymongo. It implements a fake in-memory MongoDB server
and provides a subset of PyMongo's API, allowing tests to run without a
running MongoDB instance.
WWW: https://github.com/mongomock/mongomock
PR: 300720
Approved by: osa, vvd (mentors, implicit)
RegisterCoalescer: Don't shrink pruned subranges twice (#243347)
updatePrunedSubRanges shrank each subrange in ShrinkMask and then set
ShrinkMainRange, which makes joinCopy call shrinkToUses on the whole
interval. That shrinks every subrange again, so the first shrink was
redundant. Only set ShrinkMainRange.
llc instructions:u, output identical:
CTMark x86_64: -0.04%
CTMark arm64: -0.02%
AMDGPU sample: -1.09%
Largest AMDGPU improvements:
rocsolver stedc (gfx942): -8.77%
rocsolver stedcx (gfx942): -8.66%
rocprim warp_sort (gfx1100): -7.21%
rocsolver potf2-specialized-kernels-d (gfx942): -7.07%
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
CodeGen: Skip main range predecessor lookup in shrinkToUses (#243346)
When a value is live-in to a block, extendSegmentsToUses looked up the
old value live-out of each predecessor. The main range always has one,
and it must be the same value, so the lookup is only needed for
subranges, where undef lanes can leave a predecessor without one.
llc instructions:u, AMDGPU sample: -0.11%
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[HLSL][Matrix] Make `*`, `/`, and negation element-wise on matrices (#241993)
Fixes #241086.
This PR makes `*` and `/` between two matrices element-wise, like they
are for vectors, and allows unary `+` and `-` on matrices. It also adds
sema and codegen tests covering these operators.
Assisted-by: Claude Opus 5.5
[clang] Locate backend diagnostics under -fdebug-prefix-map (#242548)
Backend diagnostics are mapped back to a clang SourceLocation by
looking up the file name recorded in the debug info. With
-fdebug-prefix-map that name is the remapped path, which usually does
not exist, so the lookup fails and the diagnostic is reported at the
enclosing function instead. If the function lies outside the
"#pragma clang diagnostic ignored" region covering the real location,
the suppression is lost, and a build that passes without the prefix
map fails with -Werror. The notes of -fdiagnostics-show-inlining-chain
have the same problem.
Record which source file each DIFile was created for when CGDebugInfo
creates it, and resolve debug locations through their DIFile instead
of its file name. DiagnosticLocation and DebugInlineInfo now provide
the DIFile for this. Debug info that clang did not generate, e.g. from
LLVM IR input, still falls back to the file name. Files with line
directives are left out, because their debug locations use presumed
lines. Without checksums, distinct files whose remapped names are
[4 lines not shown]
[FuncSpec] Refactor Latency/CodeSize threshold checks (#242832)
The current checks against thresholds for Latency and CodeSize savings
currently contain integer division. For functions that are small, the
truncation towards zero can cause us to admit specializations that have
savings that are actually below the threshold due to the loss of
precision in the calculation.
The existing CodeSize check is:
`CodeSizeSavings < funcspec_min_codesize_savings * FuncSize / 100)`
If the minimum CodeSize savings is set to 20(%), the RHS of this
comparison will truncate to 0 for any FuncSize less than 5, and so even
a CodeSize saving of 0 will be admitted.
If the minimum CodeSize savings is set to 20(%) and the FuncSize is 8,
the threshold should be 1.6 CodeSize units saved; however the division
will truncate to 1 and so admit a CodeSize saving of below this expected
value.
[5 lines not shown]
anubis: update to 1.28.2
This is mostly for the eMudhra debacle (CVE-2026-111943).
Features:
- Add Catalan (ca) localization.
- Allow Renovate in git clients for github/gitlab api endpoint.
Fixed:
- Add utils/cmd/botgenerate for automatically updating crawler IP
ranges. Also apply the updates.
- Do not reject with 400 Bad Request a request whose Content-Type is
multipart/form-data but whose body is empty, including when the
content length is unknown (-1, for example a chunked request). Reverse
proxies that strip the body for auth subrequests (for example nginx'
auth_request) still forward the original Content-Type, which made
prepareChallengeForm fail and answer with a spurious 400.
[7 lines not shown]