[mlir][ODS] Register the operations of a dialect by default
Dialects registered their ODS operations by expanding `GET_OP_LIST` into
`addOperations` in `initialize`, while sharded and partitioned dialects
had to call the generated `register<Dialect>Operations` themselves.
This was not only an inconsistent interface but also boilerplate for every dialect definition.
Like attributes and types do since https://github.com/llvm/llvm-project/pull/243481, operations are now only registered by a generated
`register<Dialect>Operations` hook that the generated dialect
constructor calls, for all generated files whether sharded, partitioned
or neither (i.e., we are consistent again!).
Contrary to attributes and types, this is the default, as
almost every dialect defines operations in ODS. Dialects without
operations, or that register them manually, set
`useDefaultOperationRegistration` to 0. `-op-registration-name` names the
hooks of dialects whose operations are generated from several files.
Dialects whose `initialize` would now be empty can set `hasInitializer`
to 0 instead of defining an empty one.
[9 lines not shown]
[MLIR] Fix LICM hoisting of tensor.pad regions (#245008)
- Replace the `Pure` trait on `tensor.pad` with
`RecursiveMemoryEffects`, accounting for effects in its padding region.
`tensor.pad` was marked as `Pure` regardless of the operations inside
its padding region. This allowed loop-invariant code motion (LICM) to
hoist the operation out of a loop, potentially executing operations in
the padding region that would otherwise never run.
Using `RecursiveMemoryEffects` ensures that the effects of the padding
region are considered, consistent with `tensor.generate`.
Related to https://github.com/llvm/llvm-project/issues/241711
[mlir][x86] Do not lower masked or out-of-bounds reads to AMX (#245003)
`VectorContractToAMXDotProduct` replaces the LHS, RHS and accumulator
reads of a `vector.contract` with loads, even if a read is masked or out
of bounds. The mask gets lost, and the loads can run past the end of the
memref.
For example, this read of rows 24 to 39 of a 32-row memref
```mlir
%rhs = vector.transfer_read %arg1[%c24, %c0, %c0], %pad {in_bounds = [false, true, true]} : memref<32x32x4xi8>, vector<16x16x4xi8>
```
became a full tile load:
```mlir
%2 = x86.amx.tile_load %collapse_shape_0[%c24, %c0] : memref<32x128xi8> into !x86.amx.tile<16x64xi8>
```
[12 lines not shown]
[CIR] Introduce `cir.fcmp` op (#244577)
This adds a dedicated CIR op for floating scalar comparisons and
converts a couple of obvious fp comparison places to use the new op.
The operations converted in this commit can be expressed by `cir.cmp`
but the long term goal is to switch all fp comparisons to `cir.fcmp`
like it is done for the vector case with `cir.vec.fcmp`.
[Mips] Do not use neg.fmt for fneg in legacy abs mode (#245226)
Unless in abs2008 mode, neg.s and neg.d are arithmetic: they raise
invalid for a signaling NaN and do not flip the sign of a NaN. fneg
must only flip the sign bit and never raise an exception, but it was
always selected to neg.fmt.
Custom lower fneg like fabs: use neg.fmt only in abs2008 mode or with
the nnan flag, otherwise flip the sign bit in a GPR. This matches GCC,
which only uses neg.fmt with -mabs=2008 or when NaNs are not honored.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
py-grpcio*: update to 1.85.3
#43961 Fixed a deadlock that could freeze the entire Python process
when closing a channel (synchronous API) while gRPC's background
threads were running Python callbacks (for example, call credentials
plugins). (Backport of #42247; credits: @PeterZhizhin)
[Driver][test] Use -fuse-ld=ld in fuchsia.c -rtlib=none test (#245158)
-fuse-ld=lld checks that ld.lld is executable and fails on builders
configured without lld, use -fuse-ld=ld like the rest of fuchsia.c.
[AMDGPU][GlobalISel] Fix ds_append/ds_consume addressing
This matches the SelectionDAG fix. For LDS, ds_append and ds_consume
address memory only through the 16 bit instruction offset and ignore
M0, but the selector copied the pointer base into M0. Select a constant,
dword aligned LDS address into the offset field and diagnose any other
LDS address as unsupported.
For GDS, the offset field must be zero and the address comes from
M0.base, so build M0 as `(addr << 16) | gds_size`. Using GDS on a
subtarget without GDS is now diagnosed.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
ds_append v0 offset:16
```
[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
[MachineOutliner] Track exposed uses by register units (#243597)
The MachineOutliner does not account for sub-registers when adding
implicit uses to the call to an outlined function. This produces
liveness information that the machine verifier rejects. Track the
defined register units while walking the outlined range, so that
implicit uses are added more accurately.
devel/ruby-tins: update to 1.63.0
1.63.0 (2026-11-18)
Fixes
* Removed redundant test_files.concat Dir[...] line from the Rakefile to
prevent duplicate test file entries in the gemspec, as GemHadar already
populates this list via test_dir.
Build & CI
* Bumped the gem_hadar development dependency constraint to >= **2.24.1**.
* Updated rubygems_version in the gemspec to **4.0.24**.
Documentation
* Replaced the legacy YARD cheatsheet in .contexts/yard.md with new
instructions for AI-generated documentation.
[6 lines not shown]
[AMDGPU] Fix ds_append/ds_consume addressing in SelectionDAG
For LDS, ds_append and ds_consume address memory only through the 16 bit
instruction offset. M0 is not used, but isel put the pointer (or its
base) into M0, so the counter was read at the wrong address. Select a
constant, dword aligned LDS address into the offset field and diagnose
any other LDS address as unsupported.
For GDS, the ISA requires the offset field to be zero and takes the
address from M0.base, so pack the whole address into M0 as
`(addr << 16) | gds_size`. Using GDS on a subtarget without GDS is now
diagnosed instead of silently encoding a GDS bit.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
[4 lines not shown]