[KnownBits] Share the ctlz upper-bound calculation (#244551)
This is splitting out the refactoring part of #244421 into its own PR.
Move the existing ValueTracking `ctlz` rule into a new `KnownBits::ctlz`
method and use it in SelectionDAG and GlobalISel as well. To preserve
existing behavior, the SDAG/GISel callers don't pass the ZeroIsPoison
flag yet.
LLM disclosure: Astra 6.2 helped me review the PR.
[SPIRV] Enable NSDI features by default for AMD
Enable -spirv-debug-lexical-block-discriminator-scope,
-spirv-debug-scope-forward-refs and -spirv-debug-declare-untyped-variable
when the target vendor is AMD.
[clang][CIR] Add tests for SVE RINTN intrinsics (#241220)
Add CIR codegen coverage for the plain SVE f16, f32, and f64 variants of
svrintn in the zeroing, merging, and don't-care forms. Verify that they
lower to aarch64.sve.frintn with the appropriate inactive value.
Move and adapt sve-intrinsics/acle_sve_rintn.c to sve/rintn.c while
retaining conventional Clang, overloaded-form, C++, and streaming-mode
coverage.
Part of #223963
[SPIRV] Enable NSDI features by default for AMD
Enable -spirv-debug-lexical-block-discriminator-scope,
-spirv-debug-scope-forward-refs and -spirv-debug-declare-untyped-variable
when the target vendor is AMD.
[clang][CIR] Add tests for SVE RINTP intrinsics (#241236)
Add CIR codegen coverage for the plain SVE f16, f32, and f64 variants of
svrintp in the zeroing, merging, and don't-care forms. Verify that they
lower to aarch64.sve.frintp with the appropriate inactive value.
Move and adapt sve-intrinsics/acle_sve_rintp.c to sve/rintp.c while
retaining conventional Clang, overloaded-form, C++, and streaming-mode
coverage.
Part of #223963
[LifetimeSafety] Keep the loan through a dynamic_cast (#244605)
A dynamic_cast refers to the same object as its operand, but only the
read of the operand was modeled, so the borrow was dropped. Propagate it
like a static base/derived cast.
Assisted-by: Claude Opus 5.5
Co-authored-by: Gabor Horvath <gaborh at apple.com>
shells/oh-my-posh: update to 33.0.0
Bug Fixes
fish: support .Jobs global property (29df165)
git: rank info/exclude above the global excludes file (0f319d5)
feat(timewarrior)!: move annotation truncation to templates (f13369e)
Features
prompt: add prompt timing and on-demand transient rendering (#7980) (a7cb315)
segment: add unreal segment (25537ec)
BREAKING CHANGES
Timewarrior annotations are no longer limited to 48
characters by default. Existing configs may still contain
annotation_max_length and ellipsis, but those options no longer
affect output. Use {{ truncE 48 .Annotation }} to restore the old
default truncation.
[X86] combineBasicSADPattern - only match SIGN_EXTEND with ABS(SUB(ZEXT,ZEXT)) patterns (#244614)
The ABDU and SUB(UMAX/UMIN) patterns can't safely assume a SIGN_EXTEND
is for a non-negative value.
Allow all 3 patterns to peek through ZERO_EXTEND nodes, but limit the
SIGN_EXTEND matching to ABS(SUB(ZEXT,ZEXT)) - there doesn't appear to be
any need for ANY_EXTEND handling.
Fixes #244529
pckbc(4) at acpi: Fix build with -Os.
Fixes:
/home/riastradh/netbsd/current/src/sys/dev/acpi/pckbc_acpi.c: In function 'pckbc_acpi_intr_establish':
/home/riastradh/netbsd/current/src/sys/dev/acpi/pckbc_acpi.c:242:63: error: 'handle' may be used uninitialized [-Werror=maybe-uninitialized]
242 | rv = acpi_intr_establish(sc->sc_dv, (uint64_t)(uintptr_t)handle,
| ^~~~~~~~~~~~~~~~~
/home/riastradh/netbsd/current/src/sys/dev/acpi/pckbc_acpi.c:224:21: note: 'handle' was declared here
224 | ACPI_HANDLE handle;
| ^~~~~~
No functional change intended -- the code wasn't _wrong_ before; this
just makes it clearer, with less analysis effort, that handle is
initialized in the path in question.
While here, rename local variable `rv' to `ih' to make it clearer
what it is (not just some arbitrary return value of a subroutine but
specifically an interrupt handler cookie).
[3 lines not shown]
[BoundsSafety] Diagnose conflicting counts in function redeclarations
Counts are part of a function's interface, so a redeclaration has to
repeat the counts on its parameters' pointers, also on the pointers they
point to. A parameter named by a count compares by its position and
type, so a redeclaration may rename it. Functions declared in system
headers may be redeclared with counts.
A function declared with a typedef or __typeof__ gets parameters of its
own, so the counts in its type are rebuilt to name them.
[AMDGPU] Add subtarget feature for v_cvt_scalef32_[sr_]pk16 instructions
Change the gating of the v_cvt_scalef32_pk16_* and v_cvt_scalef32_sr_pk16_*
instructions, intrinsics and builtins from gfx1250-insts to the new
f32f16bf16-to-fp6bf6-cvt-pk16-scalef32-insts subtarget feature.
{lib,}ytnef: update to 2.1.3
2.1.3
ytnef 2.1.3 fixes memory-safety bugs in RTF and MAPI property parsing
that a crafted TNEF (winmail.dat) attachment can trigger. Upgrade
recommended.
GHSA-jhg4-xcxm-cfg6: heap buffer overflow (write) and heap
out-of-bounds read in DecompressRTF(), plus a NULL pointer
dereference on a partly parsed property.
CVE-2026-111145 and CVE-2026-111146 (#112): heap out-of-bounds
reads in DecompressRTF() and MAPIPrint().
v2.0.0 - April 27, 2020 - COVID Edition
Resolves CVE-2021-3403 and CVE-2021-3404
[7 lines not shown]
tests/sigtramp_test: re-enable test on aarch64
This now passes on both aarch64 (since 6a936d939b88)
and amd64. It still fails on other architectures, so
keep the xfail.
PR: 289096
Sponsored by: The FreeBSD Foundation
[FLMD][DebugInfo] Add classes for function-local DebugLocs
This patch adds two new classes. The first, FLDebugLoc, represents a
DebugLoc in a function-local context; combined with the correct
`!MDFunctionLocalContext`, this class is equivalent in information to a
`!DILocation`, with some exceptions (IsImplicitCode is not included,
IRLayers are to-be-implemented). The second, DIDbgLoc, is a new
MDNode type which wraps an `MDFunctionLocalContext*` and an `FLDebugLoc`.
This makes it an effective substitute for `DILocation` in metadata,
able to replicate the interface of `DILocation` entirely. Implementation
of this interface is added in a later patch.
Add MDFunctionLocalContext support to update_test_checks
The new `!MDFunctionLocalContext` metadata type is unique in that it may
be printed across multiple lines, which causes the update_test_checks
script to only generate checks, and transitively find other metadata, for
the opening line. This patch fixes this by recording multiple lines for
metadata, where the first line ends with '[' and the last line ends with
'])', matching the printed format of `!MDFunctionLocalContext`.
[BoundsSafety] Support counted_by on out parameters
One pointer level below a parameter may have a count, as for an out
parameter, and a parameter's count may dereference a parameter:
`int *__counted_by(*len) *buf`. The parameter's own pointer may not
have a count too.
[FLMD][DebugInfo] Add classes for function-local DebugLocs
This patch adds two new classes. The first, FLDebugLoc, represents a
DebugLoc in a function-local context; combined with the correct
`!MDFunctionLocalContext`, this class is equivalent in information to a
`!DILocation`, with some exceptions (IsImplicitCode is not included,
IRLayers are to-be-implemented). The second, DIDbgLoc, is a new
MDNode type which wraps an `MDFunctionLocalContext*` and an `FLDebugLoc`.
This makes it an effective substitute for `DILocation` in metadata,
able to replicate the interface of `DILocation` entirely. Implementation
of this interface is added in a later patch.