[TableGen][Decoder] Emit 2-argument RegClassByHwMode decoders for bits<0> (#247448)
Operands with a bits<0> encoding call their decoder with two arguments
(Inst, Decoder), so targets using RegClassByHwMode on bits<0> operands
currently have to hand-write a 2-argument overload in the anonymous
namespace to avoid hiding by the TableGen-generated 4-argument overload.
Track bits<0> operand decoders separately and emit the 2-argument
RegClassByHwMode dispatcher when referenced, forwarding to the member
register classes' 2-argument decoders.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/247448
[TableGen][Decoder] Only emit used RegClassByHwMode decoders (#247447)
Track which operand decoder methods are referenced by decoded encodings
before emitting the default RegClassByHwMode dispatchers, skipping any
that are unused (such as classes only decoded via custom operand or
instruction decoders). This lets us drop [[maybe_unused]] on the
emitted decoders and remove the unused stub decoders in MipsDisassembler.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/247447
[llvm-exegesis] Use raw syscall for memfd_create (#248351)
There are apparently some buildbots that use a glibc <2.27 which is the
first version to introduce memfd_create. This was released a couple
years after the first Linux kernel version to support memfd_create, so
just use the raw syscall for now as we do in other places.
[LoongArch] Add PartialReduceMLA and getPartialReductionCost support (#203851)
Use `vmulwev.h.b[u] + vmulwod.h.b[u] + 2 x vhaddw.w.h + 2 x vadd.w` in a
row for `PARTIAL_REDUCE_MLA` opcodes. Also implement
`getPartialReductionCost` so that we could guarantee the generated
pattern is legal and efficient.
For example, this snippet from 706.stockfish_r:
```
#include <cstdint>
using IndexType = std::uint32_t;
void transform(std::int32_t *__restrict__ output, const std::int8_t *weights,
const std::int32_t *biases, const std::uint8_t *input) {
for (IndexType i = 0; i < 0x1000; ++i) {
const IndexType offset = i * 0x1000;
std::int32_t sum = biases[i];
[71 lines not shown]
sysutils/lsyncd: Update to 2.3.1, reset maintainer
The project moved from axkibe/lsyncd to lsyncd/lsyncd. 2.3.1 requires
CMake 3.5 and builds with CMake 4, and it supports Lua 5.4, so the port
no longer needs Lua 5.3.
- Point CMake at the Lua version from USES=lua, since FindLua.cmake
takes the newest one it finds.
- Link libinotify by name and find it through USES=localbase:ldflags.
- Rebase the FreeBSD daemonize patch: libinotify runs a worker thread,
so lsyncd has to fork before open_inotify().
- default-rsync.lua now calls "rsync" from PATH, which does not contain
${LOCALBASE}/bin under rc(8); keep the absolute path.
- Add net/rsync to RUN_DEPENDS; the default rsync and rsyncssh
layers need it.
- Install the examples with the EXAMPLES option instead of to
${PREFIX}/doc.
The maintainer did not respond to the PR, and upstream is
[7 lines not shown]
[ProfileData] Guard parsing value profile when the profile is generated in continuous mode (#247389)
In continuous mode, profilert does not write value profile data, yet the
data records still carry the `NumValueSites` emitted by instrumentation.
So for every function with a value site,
`RawInstrProfReader::readValueProfilingData` tries to decode a
`ValueProfData` header after the names and vtable-names sections, where
there is none. This causes a `truncated profile data` error, preventing
merging.
Assisted-by: Claude
[ObjectYAML] Fix UBSan null memcpy in ContiguousBlobAccumulator::updateDataAt (#248153)
95e9b0902acc ([yaml2obj][ELF] Add a ProgramHeaderTable entry, #245205)
lets an empty program header table be emitted via `updateDataAt()` with
`PHeaders.data() == nullptr` and `Size == 0`. Passing a null pointer to
`memcpy` is UB even for zero size, so a UBSan build fails
`tools/yaml2obj/ELF/program-header-table.yaml` (the `--docnum=2`
no-program-headers case):
```
llvm/lib/ObjectYAML/ContiguousBlobAccumulator.cpp:77:37: runtime error: null pointer passed as argument 2, which is declared to never be null
```
Skip the copy when `Size` is 0.
Tested with `LLVM_USE_SANITIZER="Address;Undefined"`: the test fails
without this change and passes with it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Change no-loop test to be amdgpu only
Change on which GPUs the no-loop test runs due to the kernel launch info
it checks being specific to the amdgpu plugin.
[LiveIntervals] Move the handleMoveUp dead-def test to LiveIntervalTest
Replace the AMDGPU MIR test, which relied on the machine scheduler moving
an instruction up, with a LiveIntervalTest unittest that performs the move
directly with handleMove.
Co-authored-by: Cursor <cursoragent at cursor.com>
[LoongArch] Select [x]vbitset/[x]vbitrev for or/xor of bitcasted shl(splat(1), y)
When the shift of splat(1) is performed in a narrower element type than
the or/xor, e.g.
```llvm
%s = shl <8 x i16> splat (i16 1), %y
%m = bitcast <8 x i16> %s to <2 x i64>
%r = xor <2 x i64> %x, %m
```
the existing [x]vbitset.{b/h/w} and [x]vbitrev.{b/h/w} patterns fail to
match and we emit vrepli + vsll + vor.v/vxor.v.
Fold OP(bitcast(shl(splat(1), y)), x) into
bitcast(OP(shl(splat(1), y), bitcast(x))) for OP in {or, xor} so that
the operation is done in the shift's element type and selected as a
single [x]vbitset or [x]vbitrev.
Assisted-By: LLM
[TargetParser][NFC] Use EnumStrings for IGCATargetNames (#246982)
Avoids 2.2kiB of .data.rel.ro. Strings are no longer null-terminated,
which was an implicit assumption made by Clang (StringRef should not be
assumed to be null-terminated).
[SampleProfile] Address direct import-hint review comments
Skip self-merges before collecting import GUID sets. Rename the control to -sample-profile-propagate-import-hints and simplify its help text. Remove checks for the retired pending-import metadata. Make the ThinLTO import test self-contained. Add unit coverage for unchanged metadata when caller and callee are the same function.
Validated the Inline, SampleProfile, and Bitcode suites plus the ThinLTO import test in Debug and Release. Also ran all IR unit tests and reran the self-contained import test from fresh directories.
audio/fasttracker2: Update to 2.30
Changes since 2.29:
v2.30 - 30.11.2026
* Fixed: When saving a 16-bit sample as .RAW, the length was halved
* Fixed: When saving a sample as .WAV, the "LIST" field in the header
would have a wrongly set length.
* Fixed: When loading a stereo .MP3 file as a sample and selecting
either the left or right channel data for import, the sample data
would start at index 1 instead of 0 (beginning), and the very last
sample point would be missing.