[UTC] Handle x86 vectorcall labels on Win32 (#235424)
Fixes #31744
`update_llc_test_checks.py` was unable to correctly handle decorated
function labels for `x86_vectorcallcc` functions targeting 32-bit
Windows. These labels can contain suffixes such as `@@0` or `@@4`, while
the function name in the assembly comment does not include the suffix.
This patch fixes the x86 assembly function-label regex to handle these
decorated labels correctly. It also adds a regression test covering
Win32 vectorcall functions with and without integer arguments.
### AI Usage
The root-cause analysis and proposed fix are my own work. I used an AI
assistant to help understand parts of the existing code, review my
changes, and assist with testing and debugging.
[IR] Add `alwaysuniform` function attribute (#214644)
The attribute indicates that the function's result is always uniform,
even when its inputs are divergent. This is a stronger guarantee than
nodivergencesource (which only promises the function doesn't introduce
new divergence) and is intended to be emitted by front-end and used by
UniformityAnalysis.
Specifically it allows marking a downstream front-end ballot function such
that the guaranteed uniformity of the result (of the call to the function)
allow optimization of a subsequent consumer.
[X86] Avoid combineSub cycle when ~C2 does not constant fold (#246346)
The X86 fold `sub(C1, xor(X, C2)) -> add(xor(X, ~C2), C1+1)` builds
`~C2` with `getNOT`. When `C2` is a bitcast of a build vector with undef
lanes, `~C2` doesn't constant fold, and the generic xor/add combines
turn the result back into the original sub, so the DAG combiner never
terminates. This only does the fold when `~C2` constant folds. On the
issue's IR, `llc -O2` (default and `-mattr=+sse4.1`) went from killed
after 60s to about 13ms, with no other X86 CodeGen test changes.
Fixes #246312
Assisted-by: Grok Bot (AI coding agent)
www/nginx-module-vod: Reject out of range track indexes
The track index from the request URL went into the track mask without a
bounds check, so a crafted request made the worker write outside of it.
Sponsored by: Netzkommune GmbH
16721 x2APIC mode should persist across INIT in bhyve
16722 allow x2APIC mode changes in bhyve
16723 bhyve x2APIC should disallow improper MSR accesses
Portions contributed by: Luqman Aden <luqman at oxide.computer>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Reviewed by: Dan Cross <cross at oxidecomputer.com>
Approved by: Hans Rosenfeld <rosenfeld at grumpf.hope-2000.org>
syslog-ng: updated to 4.13.0
4.13.0
Highlights
format-json: Added the --order option to $(format-json) and $(format-flat-json) to control the order of
the emitted keys. It accepts descending (the unchanged default), ascending, and as-written, the latter
keeping the keys in their first-seen order instead of sorting them. A name that occurs more than once keeps its
first position under as-written and takes its last value under every order.
cloudwatchlogshlc: Added CloudWatch Logs HLC destination
New SCL destination that sends logs to the AWS CloudWatch Logs HTTP Log Collector (HLC)
endpoint using bearer token authentication. No AWS SDK dependency required.
cloud-auth: Azure authentication now supports PEM RSA certificate credentials through cert() and private-key(),
with an optional private-key-passphrase() for encrypted keys, as an alternative to app-secret().
Upload the matching public certificate to the Entra app registration; the private key remains on the syslog-ng host.
[4 lines not shown]
[libc] Fix has_zeroes() function not working with long Word type (#244197)
The LOW_BITS constant in the has_zeroes() function is an unsigned int,
which means if Word is a type larger than the platform's int e.g. a
long, then the block parameter will be truncated during the subtraction
operation. This results in zero bytes in the higher-order half not being
detected.
[CIR] Mark LoweringPrepare init functions strictfp
Classic codegen's StartFunction makes a function that has no
FunctionDecl `strictfp` when the TU-wide default FP environment is
constrained: FP exceptions are not ignored or the rounding mode is
dynamic. Of those functions ClangIR creates `_GLOBAL__sub_I_*`,
`_GLOBAL__I_*`, the C++20 module initializer, `__cxx_global_var_init*`,
`__cxx_global_array_dtor*` and `__tls_init`. It marked only
`__cxx_global_var_init*`, through a `strictfp` attribute on `cir.global`,
so the other functions and the calls in them were not `strictfp`.
Classic also marks the `__dtor_*` stubs, `_GLOBAL__D_a` and
`__GLOBAL_cleanup_*`, which ClangIR does not emit.
LoweringPrepare creates these functions after CIRGen, so it reads the
TU-wide default from `#cir.lowering_options`. `no_trapping_math` already
records whether FP exceptions are ignored, and the new `rounding_math`
field mirrors `LangOptions::RoundingMath`. It is omitted when false, so
the module attribute prints as before without `-frounding-math`.
`buildRuntimeFunction` adds `strictfp` together with the other TU-wide
[8 lines not shown]
py-pyrate-limiter: updated to 4.6.0
4.6.0
Rate-limited iterators, a batch of fixes, and a faster sync acquire path.
Additive: no public API is removed or changed.
[AMDGPU] Remove R600 usage from llvm tests. NFC (#245924)
Tests that only cover R600 are deleted, including the tests of the
`llvm.r600.*` intrinsics. In tests shared with GCN, the r600 RUN lines
and their now unused EG, CM and R600 checks and comments are removed,
and autogenerated checks are regenerated. The R600 cases in the yaml,
TableGen, TargetParser, Triple and DataLayout upgrade tests are removed
too:
```
; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s
```
The `llvm.r600.read.local.size.y/z` checks in `amdgpu.private-memory.ll`
are kept, because AMDGPUPromoteAlloca still emits them for non HSA
targets. A follow up patch removes the R600 backend code.
RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
Assisted-by: Claude Opus 5.5
[SystemZ] Enable update_llc_test_checks.py for HLASM on z/OS (#246417)
This change adds the required regular expression to match the HLASM
output generated for z/OS.
Assisted by: IBM Bob
[SimplifyCFG] Optimize switches on constant globals loads
This introduces a new `SimplifyCFG` fold that transforms switches on loads from
constant tables into loads from a new table, eliminating the switch.
The motivating example is in the new test `switch-to-table-1.ll`.
The fold is deliberately tried in every `simplifycfg` run to allow more
inlining after early runs of `simplifycfg`. When run, the fold converts a
`switch` to (in the worst case) a single `load` per PHI at the destination of
the `switch`. When the destination doesn't have any other incoming edges other
than the `switch`, the PHIs disappear completely. In all cases, the function
usually gets smaller, which allows more inlining.
(This fold reuses the `SwitchReplacement` code from the existing `SimplifyCFG`
folds, so it can also replace a PHI at the destination with a sequence of
arithmetic instructions or with a register-sized bitmap lookup.)
Code size impact of this pass comes from new globals, which we limit as
[7 lines not shown]
[Offload][Omp] Use olMemCpy3D in omp_target_memcpy_rect
Implement olMemCpyRect more generically in DeviceTy using the
accelerated olMemCy3D if supported by the device.
Use it to reimplement omp_target_memcpy_rect.
Assisted by Claude.
[mlir][tosa] Support CONV2D and CONV3D with EXT-DYNAMIC in tosa-to-linalg-named (#243377)
Support non-constant input tensor zero point (`input_zp`) and weight
zero point (`weight_zp`) operands for CONV2D and CONV3D in the
`tosa-to-linalg-named` pass. EXT-DYNAMIC allows these operands to be
non-constant.
For each non-constant zero point:
- Use `tensor.extract` to get the scalar value from the zero point
tensor
- If the zero point's type is `i8`, sign-extend the scalar to `i32` for
the quantized convolution
- Otherwise, for non-`i8` types, emit `cf.assert` to check that the
value is zero
- If the quantized convolution is used, pass an `i32` constant zero for
that operand
Use the input zero point scalar as the padding value.
[100 lines not shown]