[qt/clang/llvm]: Summary of bulk changes made

KDE Git Services - Bulk Change <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git repository change summary for qt/clang/llvm
Pushed by mirror-service into branch 'upstream/users/wangleiat/spr/main.loongarch-generate-more-pcrel-relocations-for-resolvable-sub-symbols'.
Changed from cc22185b16049b209a22de290e41d31261e4c322 to b54678d8536418fc05043560010f4fb17c0f069c
Acknowledgement was received that this change introduces only existing code that has been pushed to another public open source repository.

This change contains the following new commits:

Git commit 677f13efef9c48acdfba73703344c5234a04ae9e by GitHub (on behalf of Victor Perez) on 26/07/2026 at 23:20..
[mlir][arith] Fix folds crashing on dynamic-shaped tensors (#212072)

`Builder::getZeroAttr` asserts when asked to build a constant of a
ranked tensor with a dynamic shape (`DenseElementsAttr` requires a
static shape). Three self-identity folds/patterns reached it without a
guard and aborted on dynamic-shaped operands:

```mlir
arith.xori %x, %x : tensor<?xi32>
arith.subui_extended %x, %x : tensor<?xi32>, tensor<?xi1>
arith.subi (arith.subi %a, %b), %a : tensor<?xi32>   (SubISubILHSRHSLHS)
```

Guard each with a static-shape check (as `arith.subi(x,x)` already does)
so they leave the op unfolded instead of crashing. The TableGen pattern
gets a new `IsScalarOrHasStaticShape` constraint.

Signed-off-by: Víctor Pérez Carrasco <[email protected]>
https://invent.kde.org/qt/clang/llvm/-/commit/677f13efef9c48acdfba73703344c5234a04ae9e

Git commit af1a3d2591f236613306a317018e855b6a388538 by GitHub (on behalf of Fangrui Song) on 27/07/2026 at 00:01..
[ELF,SPARC] Handle more relocation types and fix simm13 field writes (#212157)

Add the absolute (R_SPARC_8/16/UA16, R_SPARC_13, R_SPARC_HIX22/LOX10),
PC-relative (R_SPARC_DISP8/16/64, R_SPARC_WDISP16/19/22) and GOT
(R_SPARC_GOT13) forms. The assembler emits these, but lld reports
"unknown relocation".

Since aff950e95d4a, R_SPARC_LO10, R_SPARC_HM10 and R_SPARC_L44 clear the
whole simm13 field while writing only its low 10, 10 and 12 bits,
dropping
bits that GNU ld preserves. Narrow each mask to the bits it writes.

Give R_SPARC_PC22 its own case, as a displacement needing a range check.
Express the R_SPARC_HI22 and R_SPARC_H44 checks in terms of the
unshifted
value to improve the diagnostic, and drop the R_SPARC_HH22 check, which
no 64-bit value can fail.

Co-authored-by: Kirill A. Korinsky <[email protected]>
Co-authored-by: LemonBoy <[email protected]>
Co-authored-by: Alex Rønne Petersen <[email protected]>

Co-authored-by: Kirill A. Korinsky <[email protected]>
Co-authored-by: LemonBoy <[email protected]>
Co-authored-by: Alex Rønne Petersen <[email protected]>
https://invent.kde.org/qt/clang/llvm/-/commit/af1a3d2591f236613306a317018e855b6a388538

Git commit a54947f4061498fa5aadf2f8e832ae96a3405c4d by GitHub (on behalf of wanglei) on 27/07/2026 at 01:00..
[Clang][LoongArch] Implement getConstraintRegister for LoongArch (#210898)

Implement `getConstraintRegister` so Clang can diagnose inline asm
register clobber conflicts for LoongArch, matching GCC.
https://invent.kde.org/qt/clang/llvm/-/commit/a54947f4061498fa5aadf2f8e832ae96a3405c4d

Git commit e4205abdad5081abbb393c0d2f6286695eb772eb by GitHub (on behalf of wanglei) on 27/07/2026 at 01:03..
[LoongArch] Simplify addReloc relocation handling. NFC (#211755)

Remove the unused return value of addReloc and simplify the control
flow for linker relaxation and PC-relative relocation handling.
https://invent.kde.org/qt/clang/llvm/-/commit/e4205abdad5081abbb393c0d2f6286695eb772eb

Git commit e9240abc521a7dbc1ee15f0e705b95f0e71ff987 by GitHub (on behalf of Nathan Ridge) on 27/07/2026 at 01:07..
[clangd] Respect ArgumentLists for struct templates (#212094)

Also fix a bug in index::getSymbolKind where the returned symbol kind
would be Class for a struct template.

Fixes https://github.com/clangd/clangd/issues/2684
https://invent.kde.org/qt/clang/llvm/-/commit/e9240abc521a7dbc1ee15f0e705b95f0e71ff987

Git commit 43a704b657423a0eead02e64911b413c4afca73f by GitHub (on behalf of Fangrui Song) on 27/07/2026 at 01:14..
[ELF,SPARC] Add the GOT header entry and place R_SPARC_JMP_SLOT in .plt (#212161)

SPARC dynamic linker finds _DYNAMIC by dereferencing the GOT pointer
register (glibc elf_machine_dynamic), so reserve .got[0] for it. It
resolves a PLT entry by rewriting the entry's instructions (glibc
sparc64_fixup_plt), so R_SPARC_JMP_SLOT applies to .plt and there is no
.got.plt.

Add TargetInfo::usesGotPlt, which SPARC sets to false, and use it to
place the relocation and derive the sh_info of .rela.plt. The four
reserved PLT entries stay zeroed, as with GNU ld; the dynamic linker
fills in .PLT0 and .PLT1 at startup.

Co-authored-by: Kirill A. Korinsky <[email protected]>
Co-authored-by: LemonBoy <[email protected]>
https://invent.kde.org/qt/clang/llvm/-/commit/43a704b657423a0eead02e64911b413c4afca73f

Git commit 27bf172508608a1a55ac74aeb9830b8340a77af5 by GitHub (on behalf of Jin Huang) on 27/07/2026 at 01:34..
[profcheck][coro] Add Branch Weights in to select in replaceSwitchResumeCoroFree. (#211970)

The previous https://github.com/llvm/llvm-project/pull/184466 didn't fix
the PGO profile in select instruction in
[replaceSwitchResumeCoroFree](https://github.com/jinhuang1102/llvm-project/blob/98668ee1485aa47e97cbb900bc22e0d9e1c8d795/llvm/lib/Transforms/Coroutines/CoroSplit.cpp#L207)
function in `CoroSplit.cpp` so triggered a profile verification failure:
https://lab.llvm.org/buildbot/#/builders/223/builds/7899

This PR attach unknown branch weights to the created `select`
instruction see the comment for more information.

Cmake config:
```
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DLLVM_LIT_ARGS=--exclude-xfail -DLLVM_ENABLE_PROFCHECK=ON ../llvm-project/llvm
```

Verified by
```
$ bin/llvm-lit -v /usr/local/google/home/jingold/llvm-project/llvm/test/Transforms/Coroutines
-- Testing: 170 tests, 128 workers --
PASS: LLVM :: Transforms/Coroutines/coro-spill-defs-before-corobegin.ll (1 of 170)
...
PASS: LLVM :: Transforms/Coroutines/coro-split-resume-entry-count.ll (121 of 170)
PASS: LLVM :: Transforms/Coroutines/coro-split-resume-entry-count-no-suspend.ll (149 of 170)
PASS: LLVM :: Transforms/Coroutines/coro-split-resume-fallthrough-destroy-slot.ll (155 of 170)
...
PASS: LLVM :: Transforms/Coroutines/coro-readnone-02.ll (170 of 170)

Testing Time: 0.70s

Total Discovered Tests: 170
  Passed: 170 (100.00%)
```

Co-authored-by: Jin Huang <[email protected]>
https://invent.kde.org/qt/clang/llvm/-/commit/27bf172508608a1a55ac74aeb9830b8340a77af5

Git commit b54678d8536418fc05043560010f4fb17c0f069c by wanglei on 27/07/2026 at 01:36..
[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
https://invent.kde.org/qt/clang/llvm/-/commit/b54678d8536418fc05043560010f4fb17c0f069c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.