LLVM/project 9462a68 — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+6-15llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
+4-11llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+12-3llvm/include/llvm/MC/MCAsmInfo.h
+15-0llvm/lib/MC/MCAsmInfo.cpp
+0-3llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.h
+0-3llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.h
+37-356 files

LLVM/project 8e4c0b6 — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+10-8llvm/include/llvm/MC/MCAsmInfo.h
+2-5llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
+2-5llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+7-0llvm/lib/MC/MCAsmInfo.cpp
+0-1llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.h
+0-1llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h
+21-206 files

LLVM/project b2192b4 — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+7-4llvm/include/llvm/MC/MCAsmInfo.h
+1-9llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+5-1llvm/lib/MC/MCAsmInfo.cpp
+0-2llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
+13-164 files

LLVM/project d992413 — llvm/lib/Target/AArch64/MCTargetDesc AArch64MCAsmInfo.cpp, llvm/lib/Target/ARM/MCTargetDesc ARMMCAsmInfo.h

[MC][NFC] Replace MCAsmInfo::evaluateAsRelocatableImpl with func ptr (#246744)

Avoid a virtual function by using a function pointer for evaluating
specifier exprs. Saves ~400B of .data.rel.ro.
DeltaFile
+28-32llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
+24-33llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
+4-20llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
+0-17llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h
+7-9llvm/lib/Target/VE/MCTargetDesc/VEMCAsmInfo.cpp
+7-8llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+70-11910 files not shown
+84-15416 files

LLVM/project 394a633 — lld/ELF InputFiles.cpp

[lld][AMDGPU] Remove r600 bitcode handling

Remove the r600 case from `getBitcodeMachineKind`, since the r600
target is being removed and lld never linked R600 objects.

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+0-1lld/ELF/InputFiles.cpp
+0-11 files

LLVM/project 027d8b2 — clang/docs UsersManual.md, clang/include/clang/Basic BuiltinsAMDGPUDocs.td BuiltinsAMDGPU.td

[Clang][AMDGPU] Remove R600 target support

Remove the r600 triple from the clang frontend, driver and CodeGen,
together with the `__R600__` macro and the `__builtin_r600_*` builtins.
AMDGPUTargetInfo now only handles amdgcn, so the R600 branches are gone.

```
$ clang --target=r600 -S test.cl
error: unknown target triple 'r600'
```

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+41-68clang/lib/Basic/Targets/AMDGPU.h
+6-17clang/lib/Basic/Targets/AMDGPU.cpp
+0-17clang/include/clang/Basic/BuiltinsAMDGPU.td
+0-6clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
+0-6clang/docs/UsersManual.md
+3-3clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+50-11710 files not shown
+54-13016 files

LLVM/project 8ab6d0c — clang/lib/Basic/Targets AMDGPU.h AMDGPU.cpp

[Clang][AMDGPU] Remove redundant isAMDGCN checks. NFC

After the r600 target removal, AMDGPUTargetInfo is only created for
the amdgcn triple, so every `isAMDGCN()` check in it is always true.
Drop those checks and the helpers that only wrapped them.

```
if (hasFMAF())
  Builder.defineMacro("__HAS_FMAF__");
  -->
Builder.defineMacro("__HAS_FMAF__");
```

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+15-22clang/lib/Basic/Targets/AMDGPU.cpp
+5-25clang/lib/Basic/Targets/AMDGPU.h
+20-472 files

LLVM/project cb363de — clang/lib/CIR/CodeGen CIRGenBuiltin.cpp CIRGenBuiltinAMDGPU.cpp

[CIR][AMDGPU] Remove R600 builtin handling. NFC

Remove the r600 triple case and the `__builtin_r600_recipsqrt_ieee*`
cases. CIR never implemented them, and they now fall through to the
`default` NYI path.

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+0-7clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp
+0-1clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+0-82 files

LLVM/project a6321f2 — clang/tools/clang-diff CMakeLists.txt Opts.td, llvm/utils/gn/secondary/clang/tools/clang-diff BUILD.gn

[clang-diff] Switch to OptTable (#246766)

Parse the command line with OptTable instead of cl::opt, as part of
removing cl::opt from clang/. Help output uses the OptTable format, and
LLVM's global options (e.g. -debug-only, --version) are no longer
accepted.

LLM-aided
DeltaFile
+54-49clang/tools/clang-diff/ClangDiff.cpp
+19-0clang/tools/clang-diff/Opts.td
+11-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+9-0llvm/utils/gn/secondary/clang/tools/clang-diff/BUILD.gn
+8-0clang/tools/clang-diff/CMakeLists.txt
+101-495 files

LLVM/project 071b3c9 — llvm/lib/Target/AVR/MCTargetDesc AVRMCAsmInfo.cpp

revert

Created using spr 2.0.0-beta.2
DeltaFile
+28-30llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
+28-301 files

LLVM/project fcbfb40 — clang/docs LanguageExtensions.md, clang/test/OpenMP GH136294.c task_codegen.cpp

use static function for AVR

Created using spr 2.0.0-beta.2
DeltaFile
+1,617-1,626clang/test/OpenMP/task_codegen.cpp
+667-0llvm/test/Analysis/LoopAccessAnalysis/invariant-accesses-disjoint.ll
+552-26llvm/test/CodeGen/NVPTX/bf16-instructions.ll
+281-272clang/docs/LanguageExtensions.md
+191-191llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-phi-rv64.mir
+0-364clang/test/OpenMP/GH136294.c
+3,308-2,479177 files not shown
+6,365-4,412183 files

LLVM/project c40414b — llvm/include/llvm/Object Wasm.h, llvm/lib/Object WasmObjectFile.cpp

[Object/Wasm][NFC] Make DisallowedPredecessors constant (#246611)

Move the 1.6kB DisallowedPredecessors array to .rodata and shrink it to
400B.
DeltaFile
+2-2llvm/include/llvm/Object/Wasm.h
+3-1llvm/lib/Object/WasmObjectFile.cpp
+5-32 files

LLVM/project b66e783 — clang/docs LanguageExtensions.md

[docs] Document signature of builtin functions more consistently (#246637)

This greatly increases the consistency in how the signature of builtin
functions is documented. Historically, only some of the intrinsics had a
proper pseudo-C++ declaration, only some provided a documented return
type, etc. Also, the formatting (west-pointer vs. east-pointer) was
inconsistent, and some declarations used `type` to express generics
while others use `T`.

This patch also fixes some more severe documentation issues:
- `__builtin_unpredictable` was documented to operate on `long long`,
but actually operates on `long`.
- `__builtin_bitreverseg` is undocumented.

---------

Co-authored-by: Timm Baeder <tbaeder at redhat.com>
DeltaFile
+89-93clang/docs/LanguageExtensions.md
+89-931 files

LLVM/project e0a759b — llvm/include/llvm/IR Module.h, llvm/lib/IR Module.cpp

[IR][NFC] Mark Module::getTargetABIFromMD() as const. (#246779)
DeltaFile
+1-1llvm/lib/IR/Module.cpp
+1-1llvm/include/llvm/IR/Module.h
+2-22 files

LLVM/project 964c17a — clang/docs LanguageExtensions.md

[docs] Apply code font throughout LanguageExtensions.md (#246604)
DeltaFile
+175-173clang/docs/LanguageExtensions.md
+175-1731 files

LLVM/project e2b6d86 — clang/docs LanguageExtensions.md

[docs] Fix incomplete list of `constexpr` elementwise intrinsics (#246615)

The current list is missing several intrinsics that can be used in
constant expressions, such as `__builtin_elementwise_clmul`.
DeltaFile
+17-6clang/docs/LanguageExtensions.md
+17-61 files

LLVM/project 1609628 — llvm/lib/Target/Sparc SparcInstr64Bit.td SparcInstrAliases.td, llvm/lib/Target/Sparc/MCTargetDesc SparcAsmBackend.cpp SparcMCCodeEmitter.cpp

[SPARC] Emit relocations for symbolic immediates of sethi, unimp, Tcc, movr and movcc (#245946)

The immediate operands of sethi, unimp, Tcc, movr and movcc had no
encoder
method, so a symbolic operand reached getMachineOpValue() and hit
llvm_unreachable("Unhandled expression!"). This also happened for values
that are only known after encoding, such as a label difference or a
later
.set.

Give these operands encoder methods that emit a fixup for the field, as
GNU as does: R_SPARC_22 for sethi and unimp, R_SPARC_10 for movr and
R_SPARC_11 for movcc. GNU as uses R_SPARC_13 for a trap number, but on
V9
bits 12-11 of that field are the condition code, so use R_SPARC_7, which
covers just the trap number.

Fold the simm5/simm13 encoders into the same helper.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+52-27llvm/lib/Target/Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp
+79-0llvm/test/MC/Sparc/Relocations/imm-operand.s
+30-7llvm/lib/Target/Sparc/SparcInstrInfo.td
+13-13llvm/lib/Target/Sparc/SparcInstrAliases.td
+24-0llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
+2-2llvm/lib/Target/Sparc/SparcInstr64Bit.td
+200-496 files

LLVM/project 61b24cb — clang/lib/Driver Driver.cpp, clang/lib/Driver/ToolChains CommonArgs.cpp CSKYToolChain.h

[Driver] Merge CSKY bare-metal toolchain into BareMetal (#240290)

CSKYToolChain is only used for csky targets that are not Linux;
csky-*-linux-* is already handled by the generic Linux toolchain.
Fold the bare-metal handling into the BareMetal toolchain, as was
done for RISCVToolChain, and remove CSKYToolChain.

- Route csky in the default switch to BareMetal and add csky with an
  unknown OS to BareMetal::handlesTarget().
- Use the "cskyelf" linker emulation for non-Linux csky targets.
- With a GCC installation, use libgcc/libstdc++ and no unwind library,
  do not warn about multilibs, and apply the selected multilib's OS
  suffix to the GCC install and sysroot library paths when the
  multilib set does not provide a file paths callback.
- Add sysroot/include and sysroot/sys-include, link crti.o/crtn.o and
  -lnosys (or -lsemi with -msim) instead of -lgloss.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+0-205clang/lib/Driver/ToolChains/CSKYToolChain.cpp
+48-18clang/lib/Driver/ToolChains/BareMetal.cpp
+0-63clang/lib/Driver/ToolChains/CSKYToolChain.h
+34-2clang/test/Driver/csky-toolchain.c
+3-1clang/lib/Driver/ToolChains/CommonArgs.cpp
+1-2clang/lib/Driver/Driver.cpp
+86-29115 files not shown
+86-29321 files

LLVM/project 7361a13 — llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp, llvm/test/MC/Sparc sparc-asm-errors.s

[Sparc][MC] Make register names case-sensitive (#245945)

matchRegisterName lowercased the name before calling the generated
matchers, so "%G1", "%SP" and "%R14" were accepted, but the hand-written
checks such as "%xcc", "%gsr" and "%tick" were case-sensitive, so "%XCC"
and "%GSR" were rejected.

GNU as only accepts lowercase register names. Do the same and stop
lowercasing the name.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+16-0llvm/test/MC/Sparc/sparc-asm-errors.s
+7-6llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+23-62 files

LLVM/project cdce644 — clang/lib/Basic Targets.cpp, clang/test/Preprocessor predefined-macros-no-warnings.c init-rtems.c

[clang][RISCV] Added RTEMS OS target info for RISC-V (#241839)

Use RTEMSTargetInfo for riscv32-*-rtems and riscv64-*-rtems triples,
this is already done for ARM, SPARC and other architectures.
It makes clang emit __rtems__ macro when triples are used.

Add RISC-V RTEMS triples to predefined-macros-no-warnings.c
Add rtems-init.c test checking macros for all RTEMS targets.
DeltaFile
+24-0clang/test/Preprocessor/init-rtems.c
+4-0clang/lib/Basic/Targets.cpp
+2-0clang/test/Preprocessor/predefined-macros-no-warnings.c
+30-03 files

LLVM/project a010fee — lld/ELF/Arch Hexagon.cpp, lld/test/ELF hexagon-copy-relocation.s

[lld][Hexagon] Set copyRel to R_HEX_COPY (#245243)

copyRel was never initialized for Hexagon, so non-PIE copy relocations
were emitted as R_HEX_NONE and the linux musl loader left the copied
data zeroed, e.g. BusyBox's stdout.
DeltaFile
+41-0lld/test/ELF/hexagon-copy-relocation.s
+1-0lld/ELF/Arch/Hexagon.cpp
+42-02 files

LLVM/project 061f05a — clang/docs ReleaseNotes.md, clang/lib/Parse ParsePragma.cpp

[clang] Fix crash on trailing comma in vectorize_width

With `#pragma clang loop vectorize_width(4, )`, the token after the comma
is the end marker for the loop hint. The parser diagnoses the missing
argument, then lexes past the marker. Error recovery consumes the
following loop and crashes at the end of the file.

```text
Stack dump:
1.      <eof> parser at end of file
2.      <stdin>:1:10: parsing function body 'f'
3.      <stdin>:1:10: in compound statement ('{}')
```

Leave the end marker for the existing recovery path so parsing resumes
at the following loop. Clang now emits only the malformed hint error.

```text
<stdin>:2:40: error: vectorize_width loop hint malformed; use vectorize_width(X, fixed) or vectorize_width(X, scalable) where X is an integer, or vectorize_width('fixed' or 'scalable')

    [6 lines not shown]
DeltaFile
+7-0clang/test/Preprocessor/pragma-nested.c
+5-0clang/test/Parser/pragma-loop-vectorize.cpp
+3-1clang/lib/Parse/ParsePragma.cpp
+2-0clang/docs/ReleaseNotes.md
+17-14 files

LLVM/project 0cc681e — llvm/lib/Target/RISCV/GISel RISCVLegalizerInfo.cpp, llvm/test/CodeGen/RISCV/GlobalISel/legalizer legalize-mulo-rv64.mir legalize-mulo-rv32.mir

[RISCV][GISel] Use LLT::integer(2 * XLen) in SMULO legalizer rule. (#246720)

This removes s32/s64 from test output.
DeltaFile
+16-17llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-mulo-rv64.mir
+16-17llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-mulo-rv32.mir
+1-1llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+33-353 files

LLVM/project a83d484 — llvm/test/CodeGen/RISCV/GlobalISel/legalizer legalize-jump-table-brjt-medium-rv64.mir legalize-jump-table-brjt-small-rv64.mir

[RISCV][GISel] Use concrete types in remaining legalizer tests. (#246742)
DeltaFile
+191-191llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-phi-rv64.mir
+164-164llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-phi-rv32.mir
+55-55llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-constbarrier-rv64.mir
+50-50llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-jump-table-brjt-small-rv64.mir
+50-50llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-jump-table-brjt-pic-rv64.mir
+48-48llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-jump-table-brjt-medium-rv64.mir
+558-55810 files not shown
+717-71716 files

LLVM/project a92feb5 — llvm/lib/Transforms/Scalar LICM.cpp, llvm/test/Transforms/LICM hoist-binop.ll

[LICM] Don't reassociate an nsw add that only feeds sign extensions

hoistBOAssociation rewrites "(LV + C1) + C2" as "LV + (C1 + C2)" and
drops nsw unless C1 + C2 provably cannot overflow or both adds are also
nuw. When the sum only feeds sign extensions, as in an array index such
as i * S0 + j * S1 + k * S2, the dropped nsw means the extensions no
longer distribute over the adds. Leave such adds alone.

In llvm-test-suite at -O3 on x86-64, 4 programs change. lencod and
ldecod (MultiSource/Applications/JM) shrink by 64 and 81 instructions,
and miniGMG (MultiSource/Benchmarks/DOE-ProxyApps-C/miniGMG) by 2.
tramp3d-v4 (MultiSource/Benchmarks/tramp3d-v4) grows by 398
instructions, but a run executes 3.2% fewer instructions (898M -> 869M,
counted by callgrind); its run time is within noise (median +1.1% over
31 runs, interquartile ranges overlapping).

Assisted-by: Claude Code
DeltaFile
+15-7llvm/lib/Transforms/Scalar/LICM.cpp
+4-4llvm/test/Transforms/LICM/hoist-binop.ll
+19-112 files

LLVM/project 1bfe4fa — llvm/test/Transforms/LICM hoist-binop.ll

[LICM] Precommit tests for sign-extended nsw adds (NFC)

Assisted-by: Claude Code
DeltaFile
+156-0llvm/test/Transforms/LICM/hoist-binop.ll
+156-01 files

LLVM/project 117b144 — llvm/lib/Target/Xtensa XtensaTargetMachine.h XtensaTargetMachine.cpp

Xtensa: Use LastSubtargetCache in getSubtargetImpl (#242853)

Migrate to the new common target pattern.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+19-5llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp
+13-0llvm/lib/Target/Xtensa/XtensaTargetMachine.h
+32-52 files

LLVM/project 58d63c9 — clang/lib/CodeGen CGOpenMPRuntime.cpp, clang/lib/Sema SemaOpenMP.cpp

Revert "[Clang][OpenMP] Allow array shaping as the base of array sections in target update" (#246790)

Reverts llvm/llvm-project#244591

asserts on test case attached in :
https://github.com/llvm/llvm-project/pull/244591
DeltaFile
+1,617-1,626clang/test/OpenMP/task_codegen.cpp
+0-364clang/test/OpenMP/GH136294.c
+40-141clang/lib/Sema/SemaOpenMP.cpp
+14-60clang/lib/CodeGen/CGOpenMPRuntime.cpp
+8-55clang/test/OpenMP/target_update_to_messages.cpp
+7-53clang/test/OpenMP/target_update_from_messages.cpp
+1,686-2,29913 files not shown
+1,720-2,45219 files

LLVM/project 4fb692e — llvm/lib/Target/SystemZ SystemZISelLowering.cpp

Fix formatting
DeltaFile
+2-2llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+2-21 files

LLVM/project 5b23ae3 — llvm/lib/Target/SystemZ SystemZInstrVector.td SystemZOperators.td, llvm/test/CodeGen/SystemZ vftci-is-fpclass.ll

[SystemZ] Use VFTCI*/WFTCIXB for llvm.is.fpclass on vector and f128 types

Lower ISD::IS_FPCLASS on <2 x double> and <4 x float> to VFTCIDB/VFTCISB
(one instruction) instead of the 3-instruction comparison sequence currently
produced by generic expansion.  Lower IS_FPCLASS on fp128 on z14+ to WFTCIXB
instead of TCXB, keeping the value in a single VR128 and avoiding the vrepg
split and the GroupAlone dispatch restriction of TCXB.

For vectors, register IS_FPCLASS as Custom for v2f64 (z13+) and v4f32 (z14+),
emit SystemZISD::VFTCI with the TDC 12-bit mask as a TargetConstant, and
return the all-ones/all-zeros element result directly as the boolean mask.

For f128 on z14+, add a new SystemZISD::WFTCIXB node and wire it to the
existing WFTCIXB instruction.  Extract the boolean from the i128 result
with vlgvg + srlg 63.

Assisted by: IBM Bob
DeltaFile
+88-0llvm/test/CodeGen/SystemZ/vftci-is-fpclass.ll
+35-1llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+7-0llvm/lib/Target/SystemZ/SystemZOperators.td
+1-1llvm/lib/Target/SystemZ/SystemZInstrVector.td
+131-24 files