[AMDGPU][NFC] Use MCRegister instead of MCPhysReg in SIRegisterInfo::get32BitRegister (#232830)
Changes the signature of `get32BitRegister ` to avoid casts at call sites. The callers pass Register or MCRegister values and keep the result in Register or MCRegister and getMatchingSuperReg returns MCRegister, so use MCRegister instead of narrowing through MCPhysReg.
Fixes several instances of MSVC warning C4244 ("possible loss of data") across multiple files in llvm/lib/Target/AMDGPU.
Assisted-by: Claude <noreply at anthropic.com>
[AMDGPU][NFC] Change disassembler callback parameters from unsigned to uint64_t (#215190)
Every call from the TableGen-generated disassembler to a decoder callback in the AMDGPU backend narrows implicitly: the caller passes a uint64_t and the callback declares its operand parameter as unsigned. There are around 5900 such call sites in AMDGPUGenDisassemblerTables.inc.
This patch changes the parameter type of the callbacks from unsigned to uint64_t so that it matches the caller, and adds a static_cast where the value is forwarded on to an interface that takes unsigned. Changing the TableGen disassembler backend to emit an explicit conversion would change the generated .inc file of every target. This patch addresses AMDGPU only.
Assisted-by: Claude <noreply at anthropic.com>
[mlir][arith] Preserve unsigned values when narrowing operations (#233323)
Require unsigned representability for `divui`, `ceildivui`, `remui`, and
`shrui`. A signed range fitting the narrower type does not preserve the
unsigned operand values, even when the result fits.
Add concrete counterexamples and coverage for safe narrowing of
zero-extended and proven non-negative operands.
Assisted-by: Codex
japanese/mozc-server: Update from 2.23.2815.102.01 to 3.35.6354.101
- Adapt FreeBSD support and installation paths to the updated sources.
- Use the base system's zlib and ports-provided Python, Qt 6, and
input method framework libraries.
- Add a static list of distfiles required by Bazel 9 to avoid network
downloads during the build.
- Update the IBus and uim frontends, and replace Fcitx 4 support
with Fcitx 5.
- Share icons installed by mozc-server with the input method frontends.
- Fix Emacs input method registration and make mozc_emacs_helper
available in PATH. This allows mozc.el from MELPA to work without
additional configuration.
[3 lines not shown]
[mlir][arith] Check overflow when reassociating integer constants (#233155)
Folding `(x + 100 nsw) + 100 nsw` to `x + (-56) nsw` in `i8` introduces
poison for inputs such as `x = -100` that were previously defined.
Check signed and unsigned overflow when folding constants in the
add/sub/mul reassociation patterns. Retain each common nsw/nuw flag only
when its constant arithmetic does not overflow.
Assisted-by: Codex
[ELF] --print-icf-sections: print classes in input order (#233345)
... instead of the hash-sorted section order, so a change to the hash no
longer reorders the output.
buf: updated to 1.74.0
v1.74.0 - 2026-10-14
- Improve the performance of the `PROTOVALIDATE` lint rule, which is now up to 3x faster
and allocates less memory on modules using `cel` rules or `example` values.
- Send the module name of each file to check plugins, which is available as
`FileDescriptor.ModuleName()` in bufplugin-go v0.11.0 and later.
- Update `buf curl` to automatically use HTTP/2 prior knowledge for `http` URLs when server
reflection, the gRPC protocol, or a bidirectional streaming method is used, since all of these
require HTTP/2. The `--http2-prior-knowledge` flag is no longer required in these cases.
- Add `--stdin-filepath` flag to `buf format`, which reads a single `.proto` file from
stdin and writes the formatted result to stdout. The path is not read from disk, and is
only used to report parse errors and diffs.
- Fix `buf convert` panic when converting images that contain files without a `syntax`
declaration or with unused imports.
- Fix `buf generate` with `strategy: directory` and `include_imports: true` adding imports
to the `CodeGeneratorRequest` of the directory that imports them. Imports are now split
by directory into their own requests, the same as non-imports.
[15 lines not shown]
py-apsw: updated to 3.54.1.0
3.54.1.0
Fixed build failure on recent gcc, due to using header that was included by other headers. (APSW issue 640)
Fixed reference count leak due to incorrect reference count handling. The main symptom would be connections not automatically being garbage collected. (APSW issue 641)
databases/openldap2[567]-server: Restore SMBPWD
Since FreeBSD 15 switched to MIT Kerberos, the SMBPWD option
was excluded because smbk5pwd requires Heimdal for its Kerberos
support. However, the Samba and shadow password hash parts of
the overlay do not depend on Kerberos and are still useful.
On FreeBSD 15 and later, build smbk5pwd without DO_KRB5 instead
of excluding the option altogether.
PR: 299408
Reported by: Geoffroy Desvernay <dgeo at centrale-med.fr>
databases/openldap2[567]-server: Restore SMBPWD
Since FreeBSD 15 switched to MIT Kerberos, the SMBPWD option
was excluded because smbk5pwd requires Heimdal for its Kerberos
support. However, the Samba and shadow password hash parts of
the overlay do not depend on Kerberos and are still useful.
On FreeBSD 15 and later, build smbk5pwd without DO_KRB5 instead
of excluding the option altogether.
PR: 299408
Reported by: Geoffroy Desvernay <dgeo at centrale-med.fr>
[SLP] Handle REVEC when costing expanded compress mask (#232810)
With REVEC the scalars are vectors.
After https://github.com/llvm/llvm-project/pull/135174 the
masked-load-compress
shuffle that is emitted uses the compress mask expanded to the elements
of
those vectors (transformScalarShuffleIndiciesToVector), but the cost was
left
computed with the unexpanded per-vector mask, so a shuffle such as <24 x
i8> ->
<16 x i8> was costed as a <2 x i8> shuffle. This made the compress
sequence
looked cheaper than it is.
Assisted-By: Claude Sonnet 5.5
libthr: drop use of try_gc in the end of thr_join
thr_try_gc unlock and lock again to make sure the lock order. However,
there is no reason for such roundtrip if the caller holds the correct
oder. As a result, we create a new helper function to add the thread
to gc list without unlock + lock and wire the join_common to this new helper.
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D60717
libthr: drop use of try_gc in the end of thr_join
thr_try_gc unlock and lock again to make sure the lock order. However,
there is no reason for such roundtrip if the caller holds the correct
oder. As a result, we create a new helper function to add the thread
to gc list without unlock + lock and wire the join_common to this new helper.
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D60717
[WebAssembly] Disallow Wasm EH + Emscripten SjLj in backend (#232559)
This combination has long been disallowed in Emscripten
(https://github.com/emscripten-core/emscripten/pull/18692) and in Clang
(#122466) but the backend code assumed it was possible. This removes
code that handled this in LowerEmscriptenEHSjLj and explicitly errors
out if the combination is given.