LLVM/project ab2b890 — clang/lib/CodeGen/Targets MSP430.cpp M68k.cpp, clang/test/CodeGen attr-msp430.c attr-m68k.c

clang: Stop marking M68k and MSP430 interrupt handlers noinline

There seems to be no rationale for marking these as noinline, and no
other target does this. This helps avoid another source of IR
attributes reading existing IR attributes.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+7-0clang/test/CodeGen/attr-m68k.c
+1-4clang/lib/CodeGen/Targets/M68k.cpp
+3-0clang/test/CodeGen/attr-msp430.c
+0-1clang/lib/CodeGen/Targets/MSP430.cpp
+11-54 files

LLVM/project 4e74f4d — clang/lib/CodeGen CodeGenModule.cpp

clang: Remove HLSL checks for a preexisting noinline

SetLLVMFunctionAttributesForDefinition only adds alwaysinline to
functions that are not already noinline. Nothing marks these functions
noinline before this point. The HLSL entry functions are marked
noinline, but they are created separately and never reach here.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-3clang/lib/CodeGen/CodeGenModule.cpp
+2-31 files

LLVM/project d245e23 — llvm/lib/IR AsmWriter.cpp, llvm/test/Assembler avr-calling-conventions.ll

IR: Remove trailing space from printed AVR calling convention names (#245831)

avr_intrcc and avr_signalcc were printed with a trailing space, which
produced a double space before the return type.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-0llvm/test/Assembler/avr-calling-conventions.ll
+6-2llvm/lib/IR/AsmWriter.cpp
+16-22 files

LLVM/project 5afe184 — llvm/test/tools/llvm-mca/X86/Atom resources-x86_64.s, llvm/test/tools/llvm-mca/X86/BdVer2 resources-x86_64.s

[X86] Schedule ENDBR32/ENDBR64 as WriteNop instead of WriteSystem (#245739)

`ENDBR32`/`ENDBR64` only mark valid indirect-branch targets for CET, and
they are NOPs on processors without CET. They were scheduled as
`WriteSystem`, which every X86 model treats as a very expensive
microcoded instruction (znver3: 100 µops, 100-cycle latency). As a
result, llvm-mca greatly overestimates the cost of any analysed region
that includes a CET function entry (`-fcf-protection` is the default on
several distributions).

This patch schedules them as `WriteNop`, the same class used for the
other no-op encodings in `X86InstrSystem.td` (segment and address-size
prefixes). It adds an llvm-mca test covering x86-64, skylake, alderlake,
znver3 and znver4.

Effect on the #121344 kernel (GCC 15 `-Ofast`, Ubuntu default CET),
`llvm-mca -mcpu=znver3`, 100 iterations:

| | Total Cycles |

    [14 lines not shown]
DeltaFile
+8-1llvm/test/tools/llvm-mca/X86/Znver4/resources-x86_64.s
+8-1llvm/test/tools/llvm-mca/X86/Znver3/resources-x86_64.s
+8-1llvm/test/tools/llvm-mca/X86/BtVer2/resources-x86_64.s
+8-1llvm/test/tools/llvm-mca/X86/BdVer2/resources-x86_64.s
+8-1llvm/test/tools/llvm-mca/X86/Atom/resources-x86_64.s
+7-0llvm/test/tools/llvm-mca/X86/Znver2/resources-x86_64.s
+47-517 files not shown
+162-623 files

LLVM/project 4c331e3 — llvm/test/MC/RISCV rvzacas-valid.s

[nspr] update
DeltaFile
+18-18llvm/test/MC/RISCV/rvzacas-valid.s
+18-181 files

LLVM/project 153e35f — llvm/utils convert_mc_test_to_verify.py

[nspr] update
DeltaFile
+3-1llvm/utils/convert_mc_test_to_verify.py
+3-11 files

LLVM/project 89aad5d — llvm/lib/Support SourceMgrDiagnosticVerifier.cpp, llvm/test/tools/llvm-mc/verify basic.s

[nspr] update
DeltaFile
+8-8mlir/test/Dialect/OpenMP/memory-effects.mlir
+5-5mlir/test/Dialect/Transform/test-interpreter.mlir
+5-4llvm/test/tools/llvm-mc/verify/basic.s
+3-3mlir/test/Dialect/Transform/foreach-match.mlir
+3-2llvm/lib/Support/SourceMgrDiagnosticVerifier.cpp
+2-2mlir/test/IR/test-verification-order.mlir
+26-2413 files not shown
+45-4319 files

LLVM/project 4922256 — llvm/lib/IR AsmWriter.cpp, llvm/test/Assembler avr-calling-conventions.ll

IR: Remove trailing space from printed AVR calling convention names

avr_intrcc and avr_signalcc were printed with a trailing space, which
produced a double space before the return type.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-0llvm/test/Assembler/avr-calling-conventions.ll
+6-2llvm/lib/IR/AsmWriter.cpp
+16-22 files

LLVM/project ef65d53 — llvm/include/llvm/AsmParser LLToken.h, llvm/lib/AsmParser LLLexer.cpp LLParser.cpp

IR: Add avr_builtincc calling convention keyword (#245825)

AVR_BUILTIN had no textual IR name so it was printed as "cc86". Use
the same avr_builtincc spelling the MLIR LLVM dialect already uses for
this calling convention.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+4-4llvm/test/Transforms/Util/DeclareRuntimeLibcalls/avr.ll
+4-0llvm/test/Bitcode/compatibility.ll
+4-0llvm/lib/AsmParser/LLParser.cpp
+3-0llvm/lib/IR/AsmWriter.cpp
+1-0llvm/lib/AsmParser/LLLexer.cpp
+1-0llvm/include/llvm/AsmParser/LLToken.h
+17-46 files

LLVM/project 1ccec23 — llvm/include/llvm/CodeGen TargetLowering.h, llvm/lib/Target/AMDGPU SIISelLowering.h

CodeGen: Constify atomic load and store expansion hooks

The atomicrmw and cmpxchg expansion hooks already take const
instructions.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+4-2llvm/lib/Target/Hexagon/HexagonISelLowering.h
+4-2llvm/lib/Target/AMDGPU/SIISelLowering.h
+4-2llvm/include/llvm/CodeGen/TargetLowering.h
+2-2llvm/lib/Target/X86/X86ISelLowering.h
+2-2llvm/lib/Target/X86/X86ISelLowering.cpp
+2-2llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+18-127 files not shown
+31-2413 files

LLVM/project dbe5c9c — llvm/lib/Target/SPIRV SPIRVISelLowering.cpp SPIRVGlobalRegistry.cpp, llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_untyped_pointers do-not-emit-ir-after-lowering.ll

[SPIRV] Do not emit generic mIR after lowering (#245051)

As part of the target specific lowering finalisation steps we sometimes
might create a new type, for bitcasting. A consequence of this is that
for certain cases (e.g. for an array) we currently emit generic MIR
(e.g. a G_CONSTANT for the array size). This is invalid, as at this
point lowering is assumed to have completed, and thus no generic
constructs should be left. This change addresses that issue by setting
`EmitIR` to `false` where relevant - this required extending the
existing pointer creation interface. In the long run we want to move
these steps to pre-lowering (as an ominous pre-existing `TODO` states).
DeltaFile
+36-0llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_untyped_pointers/do-not-emit-ir-after-lowering.ll
+8-7llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
+5-5llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+2-2llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
+51-144 files

LLVM/project 6d3b8c8 — lld/test/ELF mips-plt-r6.s mips-npic-call-pic.s, llvm/lib/Target/Mips Mips64InstrInfo.td MipsInstrInfo.td

[Mips] Honor -mips-compact-branches=never for calls on R6 (#245145)

Since #241162 direct calls and tail calls on MIPS32/64 R6 always use
BALC/BC, even with -mips-compact-branches=never (clang
-mcompact-branches=never). Select JAL/TAILCALL on R6 when compact
branches are disabled.

Also:
- Restore the jal tests in MC/Mips/mips{32,64}r6/valid.s. jal is still
  valid on R6.
- Restore the jal R6 coverage in lld mips-npic-call-pic.s and
  mips-plt-r6.s, and add the balc case as an extra run instead.
- Add hasExtraSrcRegAllocReq to TAILCALL_R6 like the other tail call
  pseudos.
- Drop the 64-bit JAL texternalsym pattern, which the generic iPTR
  pattern now covers.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+81-40lld/test/ELF/mips-npic-call-pic.s
+65-0llvm/test/CodeGen/Mips/compactbranches/compact-branch-policy-call.ll
+7-19llvm/lib/Target/Mips/Mips32r6InstrInfo.td
+12-13llvm/lib/Target/Mips/MipsInstrInfo.td
+3-2lld/test/ELF/mips-plt-r6.s
+0-3llvm/lib/Target/Mips/Mips64InstrInfo.td
+168-774 files not shown
+172-7810 files

LLVM/project 0b2a84c — clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp CIRABIRewriteContextAArch64.cpp

[CIR] Implement CIR va_arg lowering for AArch64 (#244729)

This change adds an AArch64-specific rewrite context subclass to handle
va_arg lowering.

AArch64 Windows and Darwin targets, which both require special handling,
are not yet implemented.

Assisted-by: Cursor / claude-opus-5.5
DeltaFile
+308-0clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContextAArch64.cpp
+269-0clang/test/CIR/CodeGen/aarch64-var-arg.c
+65-50clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+115-0clang/test/CIR/CodeGen/aarch64-be-var-arg.c
+48-51clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+49-0clang/test/CIR/CodeGen/aarch64-soft-float-var-arg.c
+854-1014 files not shown
+930-12110 files

LLVM/project eb80fd4 — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/CIR/CodeGen aarch64-mfp8.c

[CIR] Add an explicit mfp8 type (#245394)

Previously, CIR was mapping __mfp8 values as signed 8-bit integers. This
is a slight divergence from classic codegen, which maps them as <1 x
i8>. More importantly, we will need to identify __mfp8 values during
calling convention lowering to handle them correctly.

This change introduces a new type to explicitly represent __mfp8 as an
opaque floating-point type. I am introducing a CIR_OpaqueFloatType base
class because I think this will also be useful when we eventually add
support for RISC-V's vectors of opaque floats.

Assisted-by: Cursor / claude-opus-5.5
DeltaFile
+167-0clang/test/CIR/CodeGen/aarch64-mfp8.c
+52-50clang/test/CodeGen/AArch64/neon/perm.c
+90-0clang/test/CIR/Lowering/mfp8.cir
+76-4clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+30-26clang/test/CodeGen/AArch64/neon/store.c
+26-22clang/test/CodeGen/AArch64/neon/intrinsics.c
+441-10218 files not shown
+623-15824 files

LLVM/project a7385af — llvm/lib/Target/X86 X86RegisterInfo.cpp X86CallingConv.cpp, llvm/test/CodeGen/X86 preserve_nonecc_call.ll

[X86] Fix `preserve_none` argument lowering for i1/i8/i16/i128, pointer, nest, varargs, etc (#241588)

All of these could lead to subtle miscompiles:
https://cpp.compiler-explorer.com/z/b7GWo9WaM

The issue is that after `preserve_none` in `X86CallingConv.td` matched
i32 and i64 register arguments, it then delegated to the C calling
convention without applying the preliminary argument rules from that
calling convention:

- Lack of promotion to i32 caused arguments to use SysV GPRs (EDI..R9D)
instead of the `preserve_none` GPRs.
- i128 arguments did not use `CC_X86_64_I128`, allowing an i128 to get
split between register and stack.
- varargs `preserve_none` did not fall back to correctly to the C
calling convention, despite the lowering assuming they did.
- The X86 register info didn't include RAX, R11 - R15 as argument
registers for `preserve_none`.
- nest parameters didn't use the expected R10

    [5 lines not shown]
DeltaFile
+157-0llvm/test/CodeGen/X86/preserve_nonecc_call.ll
+18-1llvm/lib/Target/X86/X86CallingConv.td
+8-1llvm/lib/Target/X86/X86RegisterInfo.cpp
+8-1llvm/lib/Target/X86/X86CallingConv.cpp
+191-34 files

LLVM/project 2502824 — llvm/lib/Target/AArch64 AArch64WinCFI.cpp, llvm/test/CodeGen/AArch64 win-shrink-wrap-arm64ec.ll win-shrink-wrap-arm64ec.mir

[aarch64][win] Reland "Support shrink-wrapped SEH unwind ranges, with limitations" (#244458)

Relands #231596 with fixes for the regressions that it caused.

I've kept the fixes in a separate commit, description from that commit:

The original Arm64 Windows Shrink Wrap PR #231596 caused two different
regressions, which this change fixes.

Firstly, tail duplication could result in the prolog being duplicated,
which resulted in the SEH directives getting duplicated and so the
unwind pass aborts. The fix for this is to mark `SEH_PrologEnd` as
non-duplicable.

The second issue is that branch folding could move the prolog into the
entry block after other ordinary instructions (that run before the frame
is established). This would cause those instructions to be considered
part of the prolog, resulting in MC aborting due to a size mismatch. The
fix is to start an explicit record at the first frame-setup instruction

    [14 lines not shown]
DeltaFile
+664-0llvm/test/CodeGen/AArch64/win-shrink-wrap-fragments.mir
+337-0llvm/test/CodeGen/AArch64/win-cfi-ranges.mir
+270-0llvm/lib/Target/AArch64/AArch64WinCFI.cpp
+155-0llvm/test/CodeGen/AArch64/win-cfi-ranges-invalid.mir
+131-0llvm/test/CodeGen/AArch64/win-shrink-wrap-arm64ec.mir
+122-0llvm/test/CodeGen/AArch64/win-shrink-wrap-arm64ec.ll
+1,679-026 files not shown
+2,425-1932 files

LLVM/project cbdedfb — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/Transforms inline-indirect-call.cir

[CIR] Handle Indirect call in callee setter (#244751)

Indirect call from function pointer has no SymbolRefAttr, which cause
assetion after dyn_cast.

According to FIROps.cpp, four cases ({Direct, Indirect} x {Direct,
Indirect}) are handled separately. As we don't have arg_attr in indirect
call, we just prepend and discard attr when call type is chaged.

Assisted-by: Claude # Test
DeltaFile
+146-0clang/unittests/CIR/CallOpTest.cpp
+32-0clang/test/CIR/Transforms/inline-indirect-call.cir
+20-5clang/include/clang/CIR/Dialect/IR/CIROps.td
+198-53 files

LLVM/project f4215f9 — llvm/lib/Target/X86 X86FrameLowering.cpp, llvm/test/CodeGen/X86 win64-eh-unwindv3-push2pop2.ll

[X86][SEH] Emit epilog SEH_Push2Regs in PUSH2 order for unwind v3 (#237829)

For Win64 unwind v3, the .seh_push2regs emitted before an epilog POP2
named the registers in POP2 order. Epilog ops are interpreted like the
prolog PUSH2 they undo, so unwinding from inside the epilog restored the
pair swapped. Emit them in PUSH2 order, matching the prolog (and the
assembler's .pop2reg handling); the epilog can now share the prolog
WODs.

Fixes #231762.

Assisted-by: Claude Opus 5.5
(cherry picked from commit 1bd40d3811d9d9585b31c7d7bef15a0f0ddb2624)
DeltaFile
+19-2llvm/test/CodeGen/X86/win64-eh-unwindv3-push2pop2.ll
+4-4llvm/test/CodeGen/X86/apx/push2-pop2-cfi-seh-v3.ll
+3-1llvm/lib/Target/X86/X86FrameLowering.cpp
+26-73 files

LLVM/project 6468882 — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV mul-to-addsub-shl-xlen.ll

[RISCV] Specially handle multiply by negative power-of-two cases (#244731)

Prior to this change, for power-of-two negative values in
`expandMulToAddOrSubOfShl()`, the `Shift1` was calculated as a `SHL` by
`32`, which for `i32` overflows, so is considered `undef`. In addition,
for the `i64` negative power-of-two case, `MulAmt + MulAmtLowBit`
overflowed in `uint64_t` causing a missed optimization.

Fixes #244328

Based on discussions with @lenary.

AI Usage: Reviewed by Codex.

(cherry picked from commit d361f7b3f5946f69f9e9e54fb28feac5da45d7d0)
DeltaFile
+116-0llvm/test/CodeGen/RISCV/mul-to-addsub-shl-xlen.ll
+20-1llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+136-12 files

LLVM/project 049c0aa — llvm/lib/Target/AMDGPU GCNSubtarget.h GCNFeatures.td

[NFC][AMDGPU] Make DsAtomicAsyncBarrierArriveB64PipeBug a target feature (#245820)

Fixes LCOMPILER-3199.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+10-0llvm/lib/Target/AMDGPU/GCNFeatures.td
+0-6llvm/lib/Target/AMDGPU/GCNSubtarget.h
+10-62 files

LLVM/project 621b6fa — llvm/lib/Target/AArch64 AArch64CodeLayoutOpt.cpp, llvm/test/CodeGen/AArch64 code-layout-opt.ll

release/23.x: Disable AArch64CodeLayoutOpt for Windows targets. (#225974)

Manual backport of 9c2e2cf0289f
DeltaFile
+102-0llvm/test/CodeGen/AArch64/code-layout-opt.ll
+5-0llvm/lib/Target/AArch64/AArch64CodeLayoutOpt.cpp
+107-02 files

LLVM/project fc165b0 — mlir/lib/Target/LLVM/XeVM Target.cpp, mlir/test/Integration/Dialect/XeVM/GPU xevm_block_load_store.mlir

[MLIR][XeVM] Enable SPV_INTEL_subgroups for the SPIR-V backend (#245742)

Add `SPV_INTEL_subgroups` to the XeVM target's default extension list.

The XeVM target cannot compile a 1-D `xevm.blockload` to SPIR-V. For
example, a `vector<2xi32>` load fails with
"intel_sub_group_block_read_ui2: the builtin requires the following
SPIR-V extension: SPV_INTEL_subgroups". `xevm.blockload` and
`xevm.blockstore` lower to Intel subgroup block builtins, which need
this extension, but XeVM does not enable it.



🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+53-0mlir/test/Integration/Dialect/XeVM/GPU/xevm_block_load_store.mlir
+1-0mlir/lib/Target/LLVM/XeVM/Target.cpp
+54-02 files

LLVM/project 41bffdc — clang/lib/CodeGen CGOpenMPRuntime.cpp

Fix review comments
DeltaFile
+15-14clang/lib/CodeGen/CGOpenMPRuntime.cpp
+15-141 files

LLVM/project 31b30ae — libc/src/__support/regex regex_expr_pool.cpp, libc/test/src/__support/regex expr_test.cpp

Rebase, improvements

Created using spr 2.0.0-beta.1
DeltaFile
+291-82libc/src/__support/regex/regex_expr_pool.cpp
+276-3libc/test/src/__support/regex/expr_test.cpp
+156-0llvm/test/Transforms/InstCombine/fabs.ll
+108-41llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPUtils.cpp
+57-48llvm/lib/Transforms/Instrumentation/KCFI.cpp
+65-0llvm/test/CodeGen/X86/regallocfast-unspillable-hint.mir
+953-17413 files not shown
+1,076-20019 files

LLVM/project e0c4cb3 — clang/test/CodeGen backend-unsupported-error.ll, clang/test/CodeGenOpenCL builtins-r600.cl

[Clang][AMDGPU] Remove R600 usage from clang, flang and lld tests. NFC (#245524)

Test cleanup plan for removing the R600 (TeraScale) backend from 
clang, flang, lld tests.

Tests that only cover R600 are deleted. In tests shared with other
targets, the r600 RUN lines and their now unused checks are removed.
annotations-global.c tests annotations on globals in a non zero address
space, so it is retargeted to amdgpu, which also uses `G1`:

```
// RUN: %clang_cc1 %s -triple r600 -emit-llvm -o - | FileCheck %s --check-prefix AS1-GLOBALS
// AS1-GLOBALS: target datalayout = "{{.+}}-A5-G1"
  -->
// RUN: %clang_cc1 %s -triple amdgpu -emit-llvm -o - | FileCheck %s --check-prefix AS1-GLOBALS
// AS1-GLOBALS: target datalayout = "{{.+}}-A5-G1{{.*}}"
```

The `__builtin_r600_*` builtins and the r600 triple are still in clang,

    [2 lines not shown]
DeltaFile
+0-153clang/test/Misc/r600.languageOptsOpenCL.cl
+0-61clang/test/Driver/amdgpu-macros.cl
+0-57clang/test/SemaCUDA/amdgpu-bf16.cu
+0-57clang/test/CodeGenOpenCL/builtins-r600.cl
+0-48clang/test/Driver/amdgpu-mcpu.cl
+0-44clang/test/CodeGen/backend-unsupported-error.ll
+0-42019 files not shown
+7-56725 files

LLVM/project 6951240 — llvm/test/CodeGen/X86 regallocfast-unspillable-hint.mir

[RegAllocFast] Cleanup the testcase (#245817)

Use '-filetype=null', remove obsolete tag, and use '-passes' instead of
'-run-pass'.
DeltaFile
+2-3llvm/test/CodeGen/X86/regallocfast-unspillable-hint.mir
+2-31 files

LLVM/project ff49e61 — clang/www c_dr_status.html

[C][Clang] Fix a link (#245816)

Thanks to @h-vetinari for catching this in post-commit review of
https://github.com/llvm/llvm-project/pull/245730
DeltaFile
+1-1clang/www/c_dr_status.html
+1-11 files

LLVM/project 891175c — llvm/lib/IR AsmWriter.cpp, llvm/test/Assembler avr-calling-conventions.ll

IR: Remove trailing space from printed AVR calling convention names

avr_intrcc and avr_signalcc were printed with a trailing space, which
produced a double space before the return type.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-0llvm/test/Assembler/avr-calling-conventions.ll
+6-2llvm/lib/IR/AsmWriter.cpp
+16-22 files

LLVM/project f2eca8d — llvm/test/CodeGen/X86 peephole.mir

Merge branch 'users/void/asm-rm-4-regallocfast-fold' into users/void/asm-rm-5-prefer-reg
DeltaFile
+14-13llvm/test/CodeGen/X86/peephole.mir
+14-131 files

LLVM/project 60a84f0 — llvm/test/CodeGen/X86 peephole.mir

Merge branch 'users/void/asm-rm-2f-peephole-asm-load-fold' into users/void/asm-rm-3-direct-mem-output-error
DeltaFile
+14-13llvm/test/CodeGen/X86/peephole.mir
+14-131 files