[mlir][Tensor] Don't merge pads with negative constant padding (#246957)
FoldConsecutiveConstantPadding adds up the paddings of two consecutive
tensor.pad ops. When both paddings are constants, the sum is folded into
the static attribute. A negative constant padding is valid IR as long as
it is passed as an SSA operand (#231389), but merging such a pad can
produce a negative static padding, which PadOp::verify rejects. So
canonicalization turns IR that verifies into IR that does not:
%c = arith.constant -3 : index
%0 = tensor.pad %t low[2] high[0] {...} : tensor<4xf32> to tensor<6xf32>
%1 = tensor.pad %0 low[%c] high[0] {...} : tensor<6xf32> to
tensor<?xf32>
error: 'tensor.pad' op padding must be non-negative, got -1
Do not merge the two ops if either of them has a negative constant
padding. This matches FoldStaticPadding, which keeps negative constants
as SSA operands. An AI assistant was used to help find and fix this, and
I have reviewed the change.
[FuzzMutate] Remove -use-undef (#247129)
As undef is deprecated, we no longer care about undef bugs found by
fuzzers. Remove the untested -use-undef option added in
https://github.com/llvm/llvm-project/pull/84959, it seems pointless to
port this to the new options system. This remove the use of global ctors
from LLVMFuzzMutate.
[SelectionDAG] Look through freeze in CombineExtLoad
Folding an extend of an illegally-wide vector into extending loads only
matched when the extend operand was the load itself. A boolean select is
combined to an OR of a frozen operand and the freeze is pushed down to the
load, so the fold was skipped: the load stayed a plain vector load and each
half of the widened result needed an extract and a register-form extend.
Look through a single-use freeze and re-apply it to the split result.
Freeze is element-wise and extends are deterministic, so freezing the split
loads is equivalent to freezing the extended value.
For the loop in #245064 this replaces four 512-bit loads with their extracts
and register-form vpmovzxwd by memory-form vpmovzxwd, going from 57 to 49
instructions per 128 elements.
Adds llvm/test/CodeGen/X86/vector-extload-freeze.ll and updates the
existing avx512-ext.ll checks.
Fixes #245064
[mlir][tensor] Implement InferIntRangeInterface for scalar/tensor bridge ops (#247004)
Implement integer range inference for `tensor.extract`,
`tensor.from_elements`, `tensor.insert`, and `tensor.splat`, mirroring
the existing `vector` dialect implementations. The range of a tensor
value bounds all of its elements, so:
- `tensor.extract` and `tensor.splat` forward the range of their
tensor/scalar input.
- `tensor.insert` produces the union of the scalar and destination
ranges.
- `tensor.from_elements` produces the union of the element ranges, or
the maximal range for an empty tensor.
This lets integer range analysis flow through scalars that are
round-tripped through tensors, including single-element tensors such as
`tensor<i32>` operated on by elementwise `arith` ops.
Since dynamically shaped tensors can now have a known constant range,
[6 lines not shown]
[analyzer][NFC] Memoize inferred symbol ranges per ProgramState
The inferred range of a symbol is a pure function of the ProgramState, yet
simplifying an SVal queries the range of every sub-expression again and again
against the same state. Memoize the ranges for the most recently queried
state in RangeConstraintManager (a DenseMap<SymbolRef, RangeSet> plus the
state it belongs to; it is cleared when a different state is queried).
SymbolicRangeInferrer takes the cache as an optional, nullable pointer; the
static inferRange() call sites pass none (a stack-local cache there never got
a lookup: 0 hits over 76406 instances on the corpus below).
Why this is safe: the cache holds a ProgramStateRef, so the state stays alive
and its address cannot be recycled for a different state while it is the
cache key. To make that hold at destruction time, ConstraintMgr is now
declared last in ProgramStateManager and is destroyed first, while the state
set, the allocator and the GDM contexts are still alive. ~ProgramStateManager
is declared out of line because the defaulted one needs the complete types
used by the members. Behavior is unchanged: the diagnostics are
byte-identical on every input below, and check-clang-analysis passes
[72 lines not shown]
[analyzer][NFC] Let GDMContextsTy destroy the GDM contexts (#246899)
ProgramStateManager destroyed its GDM contexts by hand in its
destructor. Make GDMContextsTy a small non-copyable class that owns the
map and destroys the contexts in its own destructor, so the ownership is
expressed by the member rather than by the enclosing destructor.
Assisted-by: Claude
[LoopUtils] Check the first outer iteration for co-moving pointer groups
When runtime checks are hoisted out of the outer loop, the range of each
pointer group is widened to cover all iterations of the outer loop. If both
groups of a check advance by the same step in the outer loop, e.g. two rows
of the same image:
```cpp
for (y = 0; y < H; y += 2)
for (x = 0; x < n; x++) {
img[y*S + 3*x] = ...;
img[(y+1)*S + 3*x] = ...;
}
```
the widened ranges overlap as soon as the outer loop runs twice, so the
check always fails and the vector loop never runs.
If all bounds of both groups are affine AddRecs of the outer loop with the
[7 lines not shown]
[mlir][nvgpu] Reject unsupported types and masks in createAsyncGroups (#246585)
`createAsyncGroups` could compute a wrong async copy size or number of
read elements. Skip:
- element types other than 8-, 16-, 32-, 64- and 128-bit integers or
floats: sub-byte elements were copied with a wrong size, and `index` hit
an assertion;
- scalable vectors: the size ignored vscale;
- masks extracted from `vector.create_mask` at a dynamic position: the
row index was `kDynamic`, so masked-off rows were read.
Tests: `i1`, `f4E2M1FN`, `index`, scalable and dynamic-position reads
(not converted) and a 128-bit read (converted).
Part of #239511 and #227821.
Assisted-by: Claude
[CIR][CUDA][NFC] Move CUDA/HIP registration out of LoweringPrepare
Move the host-side module ctor/dtor and __{cuda,hip}_register_globals
generation into a new cir-cuda-registration pass that runs right after
LoweringPrepare. The ctor is appended to cir.global_ctors after the C++
dynamic initializers, as before, and the pass returns early on device-side
and non-CUDA modules.
py-project-api: updated to 1.12.6
1.12.6 (2026-11-18)
Fixed
- Keep the caller's ``PYTHONPATH`` importable when ``SubprocessFrontend`` starts a backend that sets
``build-system.backend-path``; the in-tree paths now come first instead of replacing it
- Restore plain tuple results and public annotations for frontend creation and built metadata
Packaging
- Every wheel now carries a `PEP 770 <https://peps.python.org/pep-0770/>`_ CycloneDX SBOM in its ``.dist-info/sboms``
directory, written at build time by `python-sbom <https://github.com/tox-dev/python-sbom>`_
doc: terraform is EOL
All the Terraform version in pkgsrc are EOL. Newer versions changed
their license to BUSL. We still have previous versions to permit a full
migration to OpenTofu.
The link provided points to IBM Support Cycle-2 that means that releases are
supported for 2 years.
According <https://endoflife.date/terraform> Terraform 1.5.x, the newer
Terraform version that we have and the last one under mpl-2.0 was
declared EOL on 17 January 2024.
py-lxml: updated to 6.2.1
6.2.1 (2026-11-29)
This release fixes regressions in lxml 6.2.0 and covers more edge cases for its security fixes.
Upgrading is recommended.
py-asyncssh: updated to 2.24.2
2.24.2 (27 Nov 2026)
* Added support for Python 3.15.
* Added support for the AcceptEnv server config option and a new
accept_env argument in SSHServerConnectionOptions, allowing a server
to filter which environment variables a client is allowed to set.
Patterns can include '*' and '?' wildcards. For backward
compatibility, the default remains to accept all variables.
* Added support for the SetEnv server config option and a new env
argument in SSHServerConnectionOptions, allowing a server to set
environment variables in all sessions. These take precedence over
both client-provided environment variables and environment options
in authorized_keys. SetEnv parsing on both the client and server
now matches OpenSSH.
[182 lines not shown]
py-xlsxwriter: updated to 3.3.5
3.3.5
* Added support for the Excel 2010 ``3_stars``, ``3_triangles`` and
``5_boxes`` conditional format icon sets.
* Added support for the ``strikeout`` font property in charts and
textboxes.
* Fixed issue where strings that looked like rich string XML, such as
``<r>abc</r>``, were written unescaped and caused a corrupt file.
* Fixed fractional chart and textbox font sizes that were truncated to the
wrong value.
hashcat: updated to 8.1.0
8.1.0
Major New Features
Salt Reordering: Every attack now tests each part of a candidate chunk against all uncracked salts before moving on, so good candidates reach every salt sooner. The total work stays the same, but the cracks come earlier, which matters for every run that is stopped before the keyspace is exhausted.
Known Password Fragments in PCFG Attacks: The new contains setting keeps only candidates that include the fragments you know, such as a year, a name or digits, wherever those fragments occur. PCFG attacks also gained keyboard-walk rulesets for 10 keyboard layouts.
Cooperative scrypt Kernel: Under CUDA, HIP and NVIDIA's OpenCL, four work items now share one candidate and exchange values through warp shuffles and DPP, so the scrypt state stays in registers. The same kernel serves other scrypt-based hash-modes, such as the Ethereum, MultiBit, Exodus and Bisq wallets.
Support for 128-bit Keyspaces: On 64-bit hosts, keyspace positions and counts now have 128 bits instead of 64. Masks up to ?a^19 now run, and --skip and --limit reach every candidate.
Non-Latin Brute-Force Masks (-a 13): The new token mask attack fills a mask position with a whole token instead of a single byte, so one position can be a Cyrillic letter, an emoji or a syllable. The attack ships with 20 token files.