LLVM/project 34b702b — clang/test/Analysis correct-order-of-CFG-elements.cpp

Remove cfg-lifetime=true from test file.
DeltaFile
+1-1clang/test/Analysis/correct-order-of-CFG-elements.cpp
+1-11 files

LLVM/project 3ab799e — llvm/lib/Target/Sparc/MCTargetDesc SparcMCExpr.cpp SparcAsmBackend.cpp, llvm/test/MC/Sparc/Relocations relocation-specifier.s data-directive-specifier.s

[SPARC] Accept more GNU as relocation specifiers (#246814)

Add the data specifiers that GNU as accepts and LLVM did not: %r_disp8,
%r_disp16 and %r_disp64 for R_SPARC_DISP8/16/64, and %r_plt32 and
%r_plt64 for R_SPARC_PLT32/64. Like %r_disp32, each one can only be used
in a data directive of its size.

Also add %h34 for R_SPARC_H34, and %l34, which GNU as accepts as an
alias of %l44.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+51-1llvm/test/MC/Sparc/Relocations/data-directive-specifier.s
+38-11llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
+24-0llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
+16-0llvm/test/MC/Sparc/Relocations/relocation-specifier.s
+14-0llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
+143-125 files

LLVM/project 5131ee2 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/RISCV strided-access-predicated-udiv.ll

[VPlan] Expand strided access start in SafeUDivMode. (#246948)

convertToStridedAccesses expands the start of the strided address from
SCEV at the access. The access may be predicated, e.g. with its address
computed from a udiv in a conditional block, but the expansion executes
unconditionally (and invariant parts are hoisted), so the expanded udiv
can divide by zero or poison where the original loop never evaluates it.

Expand the start in SafeUDivMode. If any lane of the access is active,
the original udiv executed with the same invariant operands, so the safe
divisor yields the same value.
DeltaFile
+66-0llvm/test/Transforms/LoopVectorize/RISCV/strided-access-predicated-udiv.ll
+5-2llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+71-22 files

LLVM/project 27c90d9 — clang/lib/AST AttrDocTable.cpp, clang/utils/TableGen ClangAttrEmitter.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+12-9clang/lib/AST/AttrDocTable.cpp
+2-2clang/utils/TableGen/ClangAttrEmitter.cpp
+14-112 files

LLVM/project 244134e — llvm/test/CodeGen/X86 combine-rotates.ll

[X86] Add tests showing failure to fold rot(undef/poison,X) (#246944)

Prep work for #246251
DeltaFile
+28-4llvm/test/CodeGen/X86/combine-rotates.ll
+28-41 files

LLVM/project d092088 — llvm/lib/TargetParser RISCVISAInfo.cpp, llvm/test/TableGen riscv-target-def.td

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+60-46llvm/utils/TableGen/Basic/RISCVTargetDefEmitter.cpp
+40-32llvm/lib/TargetParser/RISCVISAInfo.cpp
+16-16llvm/test/TableGen/riscv-target-def.td
+116-943 files

LLVM/project cdd7d1c — llvm/test/TableGen SystemZInsnDirectiveEmitter.td, llvm/utils/TableGen SystemZInsnDirectiveEmitter.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+4-4llvm/utils/TableGen/SystemZInsnDirectiveEmitter.cpp
+3-3llvm/test/TableGen/SystemZInsnDirectiveEmitter.td
+7-72 files

LLVM/project b577f07 — llvm/cmake/modules AddLLVM.cmake HandleLLVMOptions.cmake

[CMake] Move -Bsymbolic-functions linker check to HandleLLVMOptions (#246238)

The check was in add_link_opts, which runs for every library and
executable. Move it to HandleLLVMOptions so it only runs once. It is
still visible to both llvm-shlib and clang-shlib, including standalone
clang builds.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-3llvm/cmake/modules/HandleLLVMOptions.cmake
+0-6llvm/cmake/modules/AddLLVM.cmake
+8-92 files

LLVM/project 953d00b — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN cond_br.ll

fixup! [GVN] Extend processFoldableCondBr to support switch
DeltaFile
+40-0llvm/test/Transforms/GVN/cond_br.ll
+6-5llvm/lib/Transforms/Scalar/GVN.cpp
+46-52 files

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

[MC][NFC] Make MCAsmInfo::getExprForPersonalitySymbol non-virtual (#246826)

This is Darwin-only; replace with two member variables. Saves 400B of
.data.rel.ro.
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 41c5f90 — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[MC][NFC] Make MCAsmInfo::usesCompInstByteOrder non-virtual (#246824)

Saves 400B of .data.rel.ro.
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 7cdf671 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArchISelDAGToDAG.cpp

[LoongArch] Port SelectionDAG to NewPM

Standard NewPM pass porting.

Reviewers: SixWeining, heiher

Pull Request: https://github.com/llvm/llvm-project/pull/244932
DeltaFile
+11-2llvm/lib/Target/LoongArch/LoongArch.h
+10-2llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+2-1llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+23-53 files

LLVM/project b7acd8a — llvm/lib/Transforms/Scalar GVN.cpp

[GVN] Drop bitcast in PointerUsesQueue. NFC

Typed ptr is retired in previous LLVM version. Adding this to queue
performs no-op in here. Drop this directly.
DeltaFile
+3-5llvm/lib/Transforms/Scalar/GVN.cpp
+3-51 files

LLVM/project f6fea93 — llvm/lib/Transforms/Scalar GVN.cpp

[GVN] Drop useless setDebugLoc. NFC
DeltaFile
+0-1llvm/lib/Transforms/Scalar/GVN.cpp
+0-11 files

LLVM/project ed93dc8 — libc/src/sys/prctl/linux CMakeLists.txt prctl.cpp, utils/bazel/llvm-project-overlay/libc/src/sys/prctl BUILD.bazel

[libc] Use a syscall wrapper for prctl (#243787)

This PR move prctl behind the centralized syscall wrappers, following
libc/docs/dev/syscall_wrapper_refactor.md.
DeltaFile
+13-9libc/src/sys/prctl/linux/prctl.cpp
+4-2libc/src/sys/prctl/linux/CMakeLists.txt
+1-1utils/bazel/llvm-project-overlay/libc/src/sys/prctl/BUILD.bazel
+18-123 files

LLVM/project 2674508 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN cond_br.ll

[GVN] Extend processFoldableCondBr to support switch

A switch with constant condition can also be folded. As a result, we
rename processFoldableCondBr to support switch. The logic of the
function is rewrite as switch can have multiple destinations. Instead
of recording something dead, we record the Live sucessor, and skip
same live BB.

splitCriticalEdges in here is also support merging same BB so that GVN
can reach converge earlier.

Assisted-by: Claude # Test
DeltaFile
+395-1llvm/test/Transforms/GVN/cond_br.ll
+43-26llvm/lib/Transforms/Scalar/GVN.cpp
+438-272 files

LLVM/project ec8945a — llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn build] Port f24773d94e88 (#246926)
DeltaFile
+2-0llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+2-01 files

LLVM/project 6bfb0e6 — llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn build] Port 137344a1574a (#246925)
DeltaFile
+2-1llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+2-11 files

LLVM/project e692084 — llvm/utils/gn/secondary/clang/lib/Headers BUILD.gn

[gn build] Port 088b8d8146fa (#246924)
DeltaFile
+2-0llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
+2-01 files

LLVM/project 01a244e — llvm/docs NVPTXUsage.md, llvm/include/llvm/IR NVVMIntrinsicUtils.h

[NVPTX] Add support for comparison and set intrinsics (#246077)

This patch adds support for instruction types `.u8x4`, `.s8x4`, 
`.u16x2`, `.s16x2` for set instruction introduced in PTX 9.4:

- `llvm.nvvm.compare.and.set.{v4i8, v2i16}`

PTX ISA Reference:
https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#comparison-and-selection-instructions-set

---------

Signed-off-by: DharuniRAcharya <dharunira at nvidia.com>
DeltaFile
+419-0llvm/test/CodeGen/NVPTX/compare-and-set.ll
+48-0llvm/include/llvm/IR/NVVMIntrinsicUtils.h
+47-0llvm/docs/NVPTXUsage.md
+31-0llvm/test/Verifier/NVPTX/compare-and-set.ll
+18-0llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
+16-0llvm/lib/IR/VerifierNVVM.cpp
+579-05 files not shown
+615-011 files

LLVM/project 31c7b14 — mlir/include/mlir/Analysis/Presburger IntegerRelation.h, mlir/lib/Analysis/Presburger Matrix.cpp IntegerRelation.cpp

[mlir][Presburger] Add IntegerRelation::gist (context-based simplification)

Add IntegerRelation::gist(context), a port of ISL's isl_basic_map_gist
(uset_gist / uset_gist_full), along with the supporting row-reduction
helpers IntMatrix::rowReduce and IntegerRelation::reduceUsingEqualities.

Supporting helpers:
- IntMatrix::rowReduce: performs Gauss-Jordan row reduction in place
  along a caller-specified column order, swapping pivot rows to the top,
  normalizing modified rows by GCD, and returning the pivot columns
  (with unit tests in MatrixTest.cpp).
- IntegerRelation::eliminateVarUsingEquality(ArrayRef, col): eliminates
  a variable from every constraint using an external equality row.
- IntegerRelation::reduceUsingEqualities: orchestrates IntMatrix::rowReduce
  to project context equalities onto involved variables, detect
  inconsistent equalities, and rewrite all constraints of a relation
  using the remaining equalities (port of ISL's
  isl_basic_set_reduce_using_equalities with project_onto_involved).


    [58 lines not shown]
DeltaFile
+489-0mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
+331-0mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+75-5mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
+50-0mlir/unittests/Analysis/Presburger/MatrixTest.cpp
+41-0mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
+36-0mlir/lib/Analysis/Presburger/Matrix.cpp
+1,022-52 files not shown
+1,069-58 files

LLVM/project 8b19c47 — mlir/include/mlir/Analysis/Presburger IntegerRelation.h Matrix.h, mlir/lib/Analysis/Presburger Matrix.cpp IntegerRelation.cpp

[mlir][Presburger] NFC: extract eliminateColumnUsingRow and eliminateVarUsingEquality

Extract IntMatrix::eliminateColumnUsingRow (eliminating a column from a
row using a pivot row with the smallest positive multiplier on the row)
and IntegerRelation::eliminateVarUsingEquality (applying it to every
other equality and every inequality of the relation).

Replace the file-local eliminateFromConstraint helper with these
primitives in gaussianEliminateVars, gaussianEliminate, and
removeRedundantLocalVars, and add a unit test for
IntMatrix::eliminateColumnUsingRow.
DeltaFile
+27-63mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+22-0mlir/unittests/Analysis/Presburger/MatrixTest.cpp
+20-0mlir/lib/Analysis/Presburger/Matrix.cpp
+11-0mlir/include/mlir/Analysis/Presburger/Matrix.h
+7-0mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
+87-635 files

LLVM/project 9f78e66 — 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 4eaa092 — 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 0727409 — clang/lib/CIR/CodeGen CIRGenBuiltin.cpp CIRGenBuiltinAMDGPU.cpp

[CIR][AMDGPU] Remove R600 builtin handling. NFC (#246816)

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 1de6d35 — bolt/include/bolt/Passes BinaryPasses.h, bolt/lib/Passes FrameOptimizer.cpp ShrinkWrapping.cpp

[BOLT] Use LLVM statistics for pass counters (NFC) (#246445)
DeltaFile
+71-35bolt/lib/Passes/BinaryPasses.cpp
+21-11bolt/lib/Passes/IdenticalCodeFolding.cpp
+16-8bolt/lib/Passes/ShrinkWrapping.cpp
+18-1bolt/lib/Passes/FrameOptimizer.cpp
+16-0bolt/test/X86/stats.test
+0-11bolt/include/bolt/Passes/BinaryPasses.h
+142-667 files not shown
+161-9113 files

LLVM/project b3aee63 — clang-tools-extra/clang-tidy/misc ExplicitConstructorCheck.cpp, clang-tools-extra/docs ReleaseNotes.md

[clang-tidy] Respect explicit(false) on conversion operators (#240521)

Commit eb3b063995d6 (#82689) taught `ExplicitConstructorCheck`
(`misc-explicit-constructor`, aliased as `google-explicit-constructor`
and `cppcoreguidelines-explicit-constructor`) to ignore C++20
`explicit(false)` and instantiation-dependent `explicit(...)`
expressions on constructors, and to diagnose non-literal `false`
expressions without emitting an invalid `explicit` fix-it.

However, the `CXXConversionDecl` branch still unconditionally warned on
any conversion operator where `isExplicit()` was false and suggested
inserting `explicit `, even when `explicit(false)` or a dependent
`explicit(...)` specifier was already written. Apply the same
`ExplicitSpecifier` inspection to conversion operators so deliberately
implicit C++20 `explicit(false)` and dependent `explicit(...)`
conversion operators are not diagnosed.

Assisted-by: Gemini
DeltaFile
+51-1clang-tools-extra/test/clang-tidy/checkers/misc/explicit-constructor-cxx20.cpp
+16-2clang-tools-extra/clang-tidy/misc/ExplicitConstructorCheck.cpp
+5-0clang-tools-extra/docs/ReleaseNotes.md
+1-0clang-tools-extra/docs/clang-tidy/checks/misc/explicit-constructor.rst
+73-34 files

LLVM/project d7e2583 — clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow PointerFlowPairs.h

Replace deprecated PointerUnion::dyn_cast with dyn_cast_if_present
DeltaFile
+2-2clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairs.h
+2-21 files

LLVM/project c064c26 — llvm/lib/Transforms/IPO AttributorAttributes.cpp, llvm/test/Transforms/Attributor value-simplify-duplicate-scope.ll

[Attributor] Merge the scopes of potential values with a `|=`

`recurseForValue` merges the scopes of a value with `+=`. If a value appears
more than once in the values of one scope, the sum is not a valid scope.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+38-0llvm/test/Transforms/Attributor/value-simplify-duplicate-scope.ll
+2-1llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+40-12 files

LLVM/project fcdd266 — clang/test/Analysis lifetime-end-path-notes.cpp

Update the RUN line.
DeltaFile
+1-5clang/test/Analysis/lifetime-end-path-notes.cpp
+1-51 files