updates only visible rows, making the spinner appear quickly. However, Tabulator keeps extra rows just outside the viewport in its virtual-DOM buffer. Those rows may show a spinner but are excluded from the “visible” update that removes it, leaving them spinning indefinitely.
[libc] End a semaphore wait with EINTR when a signal handler runs (#236969)
The futex wait started again after every interruption, so sem_wait,
sem_timedwait and sem_clockwait never returned for a signal. POSIX has
them fail with EINTR, and Python's locks rely on it to deliver
KeyboardInterrupt while waiting. Futex::wait takes a new argument to
return EINTR; the other callers keep restarting
AI disclosure: this patch was written with Claude Code. I reviewed the
change and ran the sem_wait unit test in a full build; without the fix
the new test never returns, and with it all 9 tests pass
Assisted-by: Claude
[AMDGPU] Fold out of range async LDS copy offsets into the addresses (#239216)
The async copies between global memory and LDS
(global_load_async_to_lds_*, cluster_load_async_to_lds_* and
global_store_async_from_lds_*) take one instruction offset that applies
to both addresses. On gfx1250 the global address gets the full 24-bit
signed offset, but the LDS address only gets the low 16 bits, unsigned.
SILoadStoreOptimizer already knows this and only promotes non-negative
offsets that fit in 16 bits into these instructions, but the intrinsic
lowering copies the offset argument into the instruction as is. So an
offset of 64 KiB or more, or a negative one, gives the right global
address and the wrong LDS address.
When the offset is outside 0..0xffff, add it to both pointers and use
offset 0 in the instruction. That's what the instruction is defined to
do anyway, so the result doesn't depend on how the upper bits are
handled. Offsets that fit keep the current encoding. Done in
LowerINTRINSIC_VOID for SelectionDAG and in legalizeIntrinsic for
GlobalISel.
[3 lines not shown]
[rtsan] Ensure unit tests rebuild when rtsan headers change (#245136)
Make test objects depend on every header in RTSAN_HEADERS.
This is the same style as TSan and ORC. There's probably a nicer way to
do this in general, but that'd be a bigger change.
If you don't do this, you can run into annoying situations where tests
build against old declarations.
[rtsan] Fix call-stack-contains suppressions for inlined functions (#245133)
Suppose you have an inlined function containing an unsafe call. Suppose
that the inlined function is suppressed in a suppression file e.g. via
`call-stack-contains:InlinedViolation`.
```
__attribute__((always_inline)) static inline void InlinedViolation() {
usleep(1); // unsafe
}
void process() [[clang::nonblocking]] { InlinedViolation(); }
```
To match suppressions we symbolize the return address of each frame.
A return address is the instruction after a call.
Here the call to `usleep` is the last instruction of `InlinedViolation`,
[24 lines not shown]
[CIR] Handle integers wider than 64 bits in the vector constant folders
`cir::IntAttr::getUInt()` and `getSInt()` assert when the value needs
more than 64 bits. The folders of `cir.vec.cmp`, `cir.vec.ternary` and
`cir.vec.shuffle.dynamic` read constant elements through them, so they
asserted on a vector of `__int128` with such an element. C++ reaches
all three at -O0. The verifier of `cir.vec.shuffle` read its indices the
same way and asserted while parsing an index wider than 64 bits.
They now work on the `APInt` values:
- `cir.vec.cmp` compares the elements at their full width.
- `cir.vec.ternary` tests whether the condition element is zero.
- `cir.vec.shuffle.dynamic` masks the index before narrowing it.
- The `cir.vec.shuffle` verifier recognizes the -1 index by all of its
bits being set and range-checks the other indices without narrowing
them.
Folds of integers up to 64 bits are unchanged.
[2 lines not shown]
[CIR] Fix crashes in the vector constant folders
A constant vector can hold elements that are not integer or
floating-point literals, such as undef and poison. Folding a
`cir.vec.shuffle` with a -1 index produces one. The folders of
`cir.vec.cmp`, `cir.vec.fcmp`, `cir.vec.ternary` and
`cir.vec.shuffle.dynamic` cast every element they evaluate to a literal
and asserted on such a vector. They now leave the operation alone. This
also covers a `cir.vec.ternary` whose condition is a constant vector of
bool, which is still not folded.
Two more assertions in the same folders are fixed the same way:
- The `true` and `false` shortcut of `cir.vec.fcmp` built a constant
from the fixed size of the result type and asserted on a scalable
vector.
- `cir.vec.shuffle.dynamic` indexed past the end of a vector whose
element count is not a power of two.
[14 lines not shown]
[CIR] Return the dominating store to the return slot directly
At -O0, classic codegen returns the value stored to the return slot
directly when that store dominates the return, and then drops the slot
(findDominatingStoreToReturnValue in CGCall.cpp). CIR always lowered the
slot to alloca, store, load and ret, so most scalar-returning functions
differed from classic codegen.
Add a cir-forward-return-store function pass with the same rules. It runs
before LLVM lowering, after FlattenCFG and ABI lowering, so -emit-cir
output does not change. Volatile, atomic, record, array and complex slots
are left alone.
The tests change only in their LLVM checks. In files where the LLVM and
OGCG checks of a function are now identical, they share the LLVM prefix.
Assisted-by: Claude Code (claude-opus-5-5).
[SCEV] Avoid re-normalizing use flags when converting SCEVUse (NFC). (#245194)
Converting between SCEVUseT types went through the SCEVUseT(Ptr, Flags)
constructor, which re-loads the expression's no-wrap flags. The result
uses the same expression, so copy the use flag bits directly instead.
Should help to reduce overhead after
https://github.com/llvm/llvm-project/pull/243883
[mlir][DLTI] Reject invalid index bit widths (#246163)
Verify DLTI index type size in `(0, IntegerType::kMaxWidth]`. Also,
current code interprets `IntegerAttr` contents as unsigned so add a test
for negative values.
[DebugInfo][FLMD] Add parsing for expanded !!dbgLoc attachments
This patch expands the textual IR parsing support added previously, to
also support parsing "expanded" FLDebugLocs, where the SrcLoc fields (line,
column, scope) are all printed in-line. This adds some complications to
parsing, primarily in that it requires us to read and write to the
MDFunctionLocalContext pre-verifier, and that we need yet another form of
"forward-reference" state tracking.
games/ginrose: Add gtk-update-icon-cache and xdg-mime run dependencies
Ginrose runs xdg-mime to check whether it opens roblox:// links and to
make itself their default handler, and gtk-update-icon-cache after
installing its icons. Without them the settings page cannot tell or
set the default.