[SPIR-V] Set register class on entry block i32 constants (#245610)
Without it the vreg gets the generic ID class and later i32 constant
lookups reuse it as an iID operand
This verifier failure caused the revert of switching to NewPM in #239489
[LoongArch] Lower insertion of masks into zero vectors to [x]vmsk*
[x]vmsk* already zero-extends the mask of each 128-bit lane to the lane, so
there is no need to move the mask to GPR and back:
```
xvmskltz.b $xr0, $xr0
xvpickve2gr.wu $a0, $xr0, 0
xvpickve2gr.wu $a1, $xr0, 4
bstrins.d $a0, $a1, 31, 16
bstrpick.d $a1, $a0, 15, 0
srli.d $a0, $a0, 16
xvrepli.b $xr0, 0
xvinsgr2vr.d $xr0, $a1, 0
xvinsgr2vr.d $xr0, $a0, 2
```
becomes:
[5 lines not shown]
[LoongArch] Compute known bits for [X]VMSK* nodes
The bits above the mask are known to be zero, so redundant zero-extensions
can be removed.
This turns the inversion of a mask into a XOR with a constant, which doesn't
fit in xori if the mask has more than 12 bits. Invert the mask in the vector
instead, or use NOR and BSTRPICK if that isn't possible. Likewise, compare
the inverted mask with zero instead of the mask with all ones.
```
vmskltz.b $vr0, $vr0
vpickve2gr.hu $a0, $vr0, 0
nor $a0, $a0, $zero
bstrpick.d $a0, $a0, 15, 0
```
becomes:
[9 lines not shown]
build: better load_config handling and TOOLSTAG check; closes #529
I think we can close this and add other configs under RECIPE
protection later on. hotfix runs fine with and without RECIPE
and thus covers ports, plugins, core, and packages no problem.
build: back to the beginning #529
The CONFDIGEST is now the same as 7f52269887ee again and
we can restore plugins.conf, ports.conf and make.conf from
git under RECIPE.
Add some exceptions for RECIPE-bound scripts. It helps
with identifying parts that are missing support.
Also refactor a bit more.
py-rstr: updated to 4.0.0
4.0.0
- Refactor: Xeger and Rstr are distinct, Xeger no longer inherits from XegerBase
- Default to use SystemRandom() CSPRNG
- Expose star_plus_limit as a property on Xeger
- Fix error when regex specified a repeat larger than the star_plus limit
- Behavior change: explicit repeats (e.g. `a{1000}`) are not restricted by star_plus_limit
- Drops support for Pythons 3.7, 3.8, 3.9, 3.10 adds support for 3.12, 3.13, 3.14, 3.15, 3.16.
py-lmdb: updated to 3.0.0
3.0.0
Features
- py-lmdb now bundles both LMDB release lines and links them into a single
extension module: LMDB 0.9.36 (data format v1) and LMDB 1.0.2 (data
format v3). The two formats are mutually unreadable, so each
``Environment`` is bound to one engine at construction: an existing
database is opened with whatever engine matches its on-disk format, and a
new one uses LMDB 0.9 unless told otherwise. Databases written by either
version can therefore be opened without the caller doing anything.
- Update the bundled LMDB 0.9 tree from 0.9.35 to 0.9.36 (2026-08-06).
It brings ITS#7772 (a sub-page is no longer grown when the data being
re-added already fits), ITS#9388 (``stat()`` reported wrong
``branch_pages``/``leaf_pages`` for ``dupsort`` databases), ITS#8335
(input validation for ``MDB_MULTIPLE`` puts), ITS#10454 (metapage sync on
[254 lines not shown]
p5-PDF-API2: update to 2.049.
2.049 2026-11-20
- Prevent an infinite loop in PDFs with multiple cross-reference streams
using the same object ID.
- Prevent an infinite loop if a series of cross-reference tables contain a
circular reference.
- [GH-97] Fix: When embedding from multiple PDFs, import_page/embed_page can
embed an object from a prior PDF due to an unreliable cache key (reported
by Adam Wipprecht).
[clang-tidy] readability-enum-initial-value: fix self-reference detection (#228401)
[clang-tidy] readability-enum-initial-value: fix self-reference
detection
Fix `AllowReferencedInitialValues` failing to recognize references to
another enumerator in unscoped enums when the reference is implicitly
converted to the enum's underlying type.
Add a regression test for this case.
---
LLVM already supports enumerators that explicitly refer to another
enumerator through AllowReferencedInitialValues.
For example, the existing implementation supports:
E_a,
E_b,
E_last = E_b,
[35 lines not shown]
[RISCV] Predicate AMO patterns on Zaamo instead of A (#246235)
The AMO patterns were guarded by `+a` and the LR/SC pseudo patterns by
the absence of `+zaamo`. With `+zaamo,+zalrsc` but no `+a`, neither
matches
and `atomicrmw` fails with "Cannot select".
Guard them with `HasStdExtZaamo`, the predicate the `amo*` instructions
are defined under. The new `-a,+zaamo,+zalrsc` test runs share the `+a`
check prefixes.
Fixes #246093.
Assisted-by: TRAE CLI (GLM-5.4)
[LV] Add test command for divergent main/epilogue interleaved group widening decisions. nfc (#246022)
The new test command uses a scalar main vector loop (VF=1, UF=4) and an
epilogue vector loop with VF=2. The interleave group analysis finds a
load group with a gap that requires a scalar epilogue. Neither plan
widens it as an interleaved access (for VF=2 the cost model prefers
scalarization), but the epilogue vector loop is still forced to require
a scalar epilogue while the main loop does not.
This discrepancy in scalar epilogue requirements between the main and
epilogue loops causes an incorrect min-iteration check.
See #245054.
[CIR] Return the dominating store to the return slot directly
Classic codegen returns the stored value directly when the only store to
the return value slot dominates the return (findDominatingStoreToReturnValue
in CGCall.cpp), and then usually erases the slot. ClangIR always lowered the
slot to alloca, store, load and ret, so the LLVM IR of nearly every
scalar-returning function differed from classic codegen at -O0.
Add cir-forward-return-store to the pre-lowering pipeline, after FlattenCFG,
so -emit-cir output is unchanged and the ABI-lowered return is already in
place. It follows the classic rules: one cir.return of a value (classic has
one return block); a single store whose block is reached by following single
predecessors up from the return, or, if the slot has other uses, a store
right before the load; no volatile or atomic accesses; no record, array or
complex slots. The return takes the store's location and the slot is erased
once unused.
Assisted-by: Claude Code (claude-opus-5-5).
[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
[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]
[VPlan] Move extract-lane(0, canWideIV) combine before unrolling
Some extract-lane combines can't be performed before unrolling, e.g. the one that combines it to Instruction::ExtractElement can end up extracting from a different part. But the extract-lane(0, canWideIV) can because at index 0 you're always extracting from the first part. Do this before unrolling, which improves codegen of unrolled code.
[VPlan] Remove header masks whose tail lanes aren't used
Replace a use of header-mask && x with x if the user, transitively
through freeze, logical-and, not and mask.beforefirst(freeze ...), only
reaches masks that are and'ed with the header mask again. The header
mask is a prefix and lane i of mask.beforefirst only depends on lanes
0..i, so the lanes outside of the header mask are never used.
This avoids the i1 vp.merge that EVL tail folding needs for the inner
header mask, e.g. in the early exit mask.beforefirst(freeze(header-mask
&& c)) and in switch default edges.
[VPlan] Allow tail folding early exits with side effects
Continues the work in #179595.
This allows us to tail fold e.g. the following loop:
```c
extern char a[1024], b[1024], c[1024], y[1024];
void two_guards(void) {
for (int i = 0; i < 1000; i++) {
if (a[i] == 0)
break;
if (b[i] > 3) {
if (c[i] < 9)
y[i] = 1;
}
}
}
```
[30 lines not shown]