AMDGPU: Add gfx7 disassembler tests
Generated from the encodings in the gfx7_asm_*.s assembler tests.
s_cbranch_join with src_vccz, src_execz or src_scc is left
out. Despite assembling, these are already broken on gfx8+ and don't
decode.
Assisted-by: Claude
[lldb] Enforce the maximum register size at runtime (#247373)
gdb-remote stubs can report arbitrary register sizes in target.xml and
qRegisterInfo. RegisterValue::kMaxRegisterByteSize was only checked with
an assert, and Scalar::SetValueFromData computed the bit width in an
unsigned, which overflows on large byte sizes and causes an
out-of-bounds write.
Return an error from RegisterValue::SetValueFromData when a register
exceeds kMaxRegisterByteSize, and fail in Scalar::SetValueFromData if
the bit width overflows unsigned.
Also skip oversized registers when parsing target.xml and qRegisterInfo
instead of allocating buffers for registers lldb cannot read. Track
qRegisterInfo register numbers explicitly so skipping one does not shift
the numbers of later registers.
rdar://187191507
Assisted-by: Claude
[cir][openacc] Use signless integer for lowering to gang/vector/worker clauses (#249041)
Currently, CIR is lowering expression for
`gang`/`vector`/`worker`/`num_workers`/`vector_length`/`num_gangs` to
signed integer. While this is not forbidden by the dialect today, it
doesn't fit with the OpenACC backend lowering and would make the code
crash when casting these values to index types.
This patch updates the lowering to use signless integer like flang. A
follow up patch will update the dialect to make this contract enforced
by the verifier.
[AArch64] Implement InstCombine for sve_and_u and sve_eor_u
Canonicalize the following same-predicate expressions:
sve_and_u/m(p, a, sve_eor_m(p, a, c))
sve_eor_u/m(p, a, sve_and_m(p, a, c))
sve_and_u/m(p, a, sve_not(p, passthru, c))
to:
sve_bic_u/m(p, a, c)
The inner operation must have one use. This keeps the transform
instruction-count neutral and allows SelectionDAG to lower the
undef forms to generic AND and XOR nodes.
[ctxprof] Track under-context depth across nested and contended roots (#244042)
Entering a root marks the thread as under a root regardless of whether
the thread acquires the root's collection lock, but exiting cleared that
state only when the thread held the lock. Track a per-thread root entry
depth instead, so flat profiling resumes once a contended root exits and
stays suppressed across nested or recursive root activations until the
outermost root exits.
A function the root auto-detector promotes while one of its activations
is already running exits that activation without a matching entry. The
depth does not go below zero, but if that activation runs under another
root, flat profiling resumes on that thread before the outer root exits.
This affects only activations in flight at promotion time; explicitly
stated roots are not affected.
Assisted-by: agy
[libc++] Fix CI failures after landing change to type info comparison (#249008)
The RTTI comparison test: type_info.comparison.unmerged.sh.cpp added in
#220864 links against a shared library by its build-host path. On the
windows hosted Linux bot, the test runs on a different machine where
that path doesn't exist, so it fails to load the library:
https://lab.llvm.org/buildbot/#/builders/193/builds/20825
The test now builds the library as %{temp}/libunmerged.so . On Linux it
now links the library with -Wl,-soname,libunmerged.so and the executable
with -Wl,-rpath,'%ORIGIN', so the executable loads the copy of the
library next to it.
This patch also makes a test that relies on the just-landed Clang change
`UNSUPPORTED` until the CI has a version of Clang that contains the
change.
fixup! [AArch64] NFC: Add pre-commit InstCombine tests for SVE AND-XOR/XOR-AND
Remove the tests using inner zeroing forms and use the merging form for the predicate-mismatch test.
[CIR][Docs] Add the CIR lifetime check blog post (#249059)
Add the October 2026 post "CIR Lifetime Check: Performance and
Diagnostic Quality" to the "Talks and posts" section of the ClangIR docs
page. Missed it in my previous PR.
[lldb] Intern the last SB API strings in the system pool (#249046)
Intern the last remaining SB API strings in the system pool that still
interned their result through ConstString.
Assisted-by: Claude
[lldb] Assign target.xml register numbers while parsing (#249067)
Assign the number for a register during parsing, so that a register
without a a regnum in target.xml still gets a number.
Assisted-by: Claude
[X86] Enable SlotIndexes compaction by default
Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.
Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills and reloads drop 0.4% and .text 0.04%, with compile time
unchanged.
Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for. reloc-opt.ll gets an NF add that keeps
its source live, because compaction compresses the existing one to the
[3 lines not shown]
[OpenMP] Use device scope for atomic constructs on the device (#240426)
OpenMP 6.0, 17.8.5 specifies that "The memscope clause determines the
binding thread set for an atomic region. If the memscope clause is not
present, the behavior is as if the memscope clause appeared on the
construct with the device scope-specifier."
Thread the sync scopes through codegen amd also add a release note
because this is changing existing behavior.
Existing behavior was overly cautios for OpenMP 5.2, too, though. The
atomic construct never specified the option of having system-level
scope. This only came with the memscope clause and it's "all"
scope-specifier.
Assisted-by: LLM