LLVM/project b144b9cclang/include/clang/ScalableStaticAnalysisFramework/Core/Serialization JSONFormat.h, clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat JSONFormatImpl.cpp

[clang][ssaf] Rework NestedBuildNamespaces of TU and LU summaries (#191489)

Problem:

ASTEntityMapping::getEntityName() creates EntityName with an empty
NestedBuildNamespace, but the linker expected the TU namespace to
already be present in the EntityName. This caused internal linkage
symbols to conflict during linking: since their NestedBuildNamespace was
empty, they all inherited the same LU namespace during resolution,
making internal symbols from different TUs appear identical. For
example, two "static inline" functions with the same USR in separate TUs
would be incorrectly merged into a single LU entity instead of remaining
distinct.

This is now fixed and demonstrated by the
InternalLinkageWithEmptyNamespaceAcrossTUs test, which creates two
internal linkage symbols across two TUs and verifies they remain
separate after linking.


    [27 lines not shown]
DeltaFile
+23-323clang/unittests/ScalableStaticAnalysisFramework/Serialization/JSONFormatTest/TUSummaryTest.cpp
+155-37clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/JSONFormatImpl.cpp
+0-36clang/test/Analysis/Scalable/ssaf-linker/Inputs/tu-2.json
+0-36clang/test/Analysis/Scalable/ssaf-linker/Inputs/tu-1.json
+30-1clang/unittests/ScalableStaticAnalysisFramework/EntityLinkerTest.cpp
+17-6clang/include/clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h
+225-43924 files not shown
+250-53830 files

LLVM/project 0d69fb3llvm/lib/Target/AArch64/GISel AArch64RegisterBankInfo.cpp, llvm/test/CodeGen/AArch64 arm64-neon-3vdiff.ll concat-vector.ll

[AArch64][GISel] Regbank G_BITCAST using src regbank. (#191522)

This takes the regbank of a G_BITCAST from the input srcreg that has
already been allocated, keeping the bitcast on the same bank. A copy
then might be added to the dst if needed.

onlyUsesFP is also improved for G_BITCAST, allowing operations to guess
the correct type through a onlyUsesFP too.

Originally from #177158 by Ryan Cowan with modifications.
DeltaFile
+24-48llvm/test/CodeGen/AArch64/arm64-neon-3vdiff.ll
+20-28llvm/test/CodeGen/AArch64/concat-vector.ll
+18-27llvm/test/CodeGen/AArch64/GlobalISel/arm64-regbankselect.mir
+17-23llvm/test/CodeGen/AArch64/qmovn.ll
+20-19llvm/test/CodeGen/AArch64/popcount.ll
+23-4llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
+122-14913 files not shown
+140-18219 files

LLVM/project 28c43a6lldb/source/Target Target.cpp, lldb/test/API lit.cfg.py

[lldb][windows] do not use ConPTY in tests (#192657)
DeltaFile
+79-0lldb/test/API/windows/conpty/TestConPTY.py
+22-0lldb/test/API/windows/conpty/main.c
+6-0lldb/test/Shell/lit.cfg.py
+4-0lldb/test/API/lit.cfg.py
+3-0lldb/test/API/windows/conpty/Makefile
+2-1lldb/source/Target/Target.cpp
+116-11 files not shown
+119-17 files

LLVM/project 5e0e863clang/test/CodeGenCXX homogeneous-aggregates.cpp

Fix typo in comment about MSVC sret convention (#168162)

The comment mis-spelled the word convention with convetion.
DeltaFile
+1-1clang/test/CodeGenCXX/homogeneous-aggregates.cpp
+1-11 files

LLVM/project 9732fa7mlir/lib/Dialect/Arith/Transforms ExpandOps.cpp, mlir/test/Dialect/Arith expand-flush-denormals.mlir

address comments
DeltaFile
+16-31mlir/lib/Dialect/Arith/Transforms/ExpandOps.cpp
+15-27mlir/test/Dialect/Arith/expand-flush-denormals.mlir
+31-582 files

LLVM/project 5a0b4c9clang/lib/Format DefinitionBlockSeparator.cpp, clang/unittests/Format DefinitionBlockSeparatorTest.cpp

[clang-format] Preserve trailing NOLINTEND placement with SeparateDefinitionBlocks (#190741)

Fixes https://github.com/llvm/llvm-project/issues/189384.

When `SeparateDefinitionBlocks: Always` is enabled, clang-format may
separate a clearly trailing comment block by inserting an empty line
before it.

For example, it may format:

```c++
// NOLINTBEGIN
int x = 1;
int y = 2;
// NOLINTEND

void some_function() {}
```


    [23 lines not shown]
DeltaFile
+16-0clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
+8-4clang/lib/Format/DefinitionBlockSeparator.cpp
+24-42 files

LLVM/project bbf0a6dmlir/docs Canonicalization.md

[mlir][docs] Add poison example to canonicalization section
DeltaFile
+2-0mlir/docs/Canonicalization.md
+2-01 files

LLVM/project 703dcdelldb/include/lldb/Utility FileSpecList.h, lldb/unittests/Utility FileSpecListTest.cpp

[lldb][Utility] Add FileSpecList::Append(const FileSpecList &) API (#191446)

Adds a new API to `FileSpecList` that allows appending another
`FileSpecList`.

This is used in another PR where I didn't want to iterate over the list
and push_back manually.

Assisted-by: Claude
- Used Claude to write the skeleton of the test before manually cleaning
it up.
DeltaFile
+52-0lldb/unittests/Utility/FileSpecListTest.cpp
+6-0lldb/include/lldb/Utility/FileSpecList.h
+58-02 files

LLVM/project e6359cemlir/include/mlir/Dialect/Arith/Transforms Passes.td Passes.h, mlir/lib/Dialect/Arith/Transforms ExpandOps.cpp

[mlir][arith] Add support for `arith.flush_denormals` emulation
DeltaFile
+121-0mlir/lib/Dialect/Arith/Transforms/ExpandOps.cpp
+108-0mlir/test/Dialect/Arith/expand-flush-denormals.mlir
+15-0mlir/include/mlir/Dialect/Arith/Transforms/Passes.td
+5-0mlir/include/mlir/Dialect/Arith/Transforms/Passes.h
+249-04 files

LLVM/project 8f1e24aclang/docs ReleaseNotes.rst, clang/include/clang/Basic DiagnosticFrontendKinds.td

[Clang] diagnosing missing Vulkan environment when using SPIR-V triple (#190840)

When a user passes '-target spirv' without specififying a vulkan
environment ttriple, SPIRVTargetInfo will fire an assert instead of
throwing an error diagnostic. Added this diagnostic in
CompilerInstance::createTarget() before target is initialized. Fixes
https://github.com/llvm/llvm-project/issues/189964
DeltaFile
+19-6clang/lib/Basic/Targets/SPIR.h
+7-0clang/test/Frontend/spirv-target-validation.c
+5-0clang/include/clang/Basic/DiagnosticFrontendKinds.td
+1-0clang/docs/ReleaseNotes.rst
+32-64 files

LLVM/project 4b2537bllvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 masked_gather_scatter.ll masked_gather.ll

[X86] combineINSERT_SUBVECTOR - attempt to widen mask predicate as scalar integer instead of inserting into a zero vXi1 vector (#192699)

Fold vXi1 insert_subvector(zero_vector(),bitcast(scalar_mask),idx) ->
bitcast(shl(zext(scalar_mask),idx))

vXi1 zero widening and insertion has to rely on kshiftl/kshiftr pairs,
but if the mask was a scalar it can be a lot cheaper to just widen it to
a wider (legal) scalar first.

Cleans up some codegen for #192034 - first step towards pruning all the
VMOVSH patterns we've ended up :/
DeltaFile
+19-28llvm/test/CodeGen/X86/masked_gather_scatter.ll
+14-0llvm/lib/Target/X86/X86ISelLowering.cpp
+3-4llvm/test/CodeGen/X86/masked_gather.ll
+2-4llvm/test/CodeGen/X86/pr192034.ll
+2-3llvm/test/CodeGen/X86/masked_load.ll
+2-3llvm/test/CodeGen/X86/masked_store.ll
+42-426 files

LLVM/project 8872678lldb/test/API/macosx/rosetta TestRosetta.py

[lldb][macos] Add trace prints to TestRosetta to debug CI (#192771)
DeltaFile
+7-0lldb/test/API/macosx/rosetta/TestRosetta.py
+7-01 files

LLVM/project d1abc82llvm/test/CodeGen/AMDGPU/NextUseAnalysis spill-vreg-many-lanes.mir acyclic-770bb.mir

Merge branch 'main' into users/c8ef/fold_left_first
DeltaFile
+275,101-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/spill-vreg-many-lanes.mir
+144,679-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/acyclic-770bb.mir
+57,682-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/double-nested-loops-complex-cfg.mir
+41,844-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/test_ers_multiple_spills2.mir
+40,613-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/test_ers_multiple_spills1.mir
+37,209-0llvm/test/CodeGen/AMDGPU/NextUseAnalysis/test_ers_multiple_spills3.mir
+597,128-02,820 files not shown
+1,029,312-72,6202,826 files

LLVM/project 877dd33compiler-rt/test/sanitizer_common/TestCases print-stack-trace.cpp, compiler-rt/test/sanitizer_common/TestCases/Linux internal_symbolizer.cpp

Revert "XFAIL symbolizer test for TySan" (#192770)

Reverts llvm/llvm-project#191810

Relates to https://github.com/llvm/llvm-project/pull/191902
DeltaFile
+0-3compiler-rt/test/sanitizer_common/TestCases/Linux/internal_symbolizer.cpp
+0-2compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cpp
+0-52 files

LLVM/project fefd36blibcxx/test/libcxx/algorithms nodiscard.verify.cpp, libcxx/test/std/algorithms/alg.nonmodifying/alg.fold nodiscard.verify.cpp

revise test
DeltaFile
+0-37libcxx/test/std/algorithms/alg.nonmodifying/alg.fold/nodiscard.verify.cpp
+8-0libcxx/test/libcxx/algorithms/nodiscard.verify.cpp
+8-372 files

LLVM/project f171bf1compiler-rt/test/sanitizer_common/TestCases print-stack-trace.cpp, compiler-rt/test/sanitizer_common/TestCases/Linux internal_symbolizer.cpp

Revert "XFAIL symbolizer test for TySan (#191810)"

This reverts commit 7083e9d8da07d97ab4541405b72e8b7ce8dad181.
DeltaFile
+0-3compiler-rt/test/sanitizer_common/TestCases/Linux/internal_symbolizer.cpp
+0-2compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cpp
+0-52 files

LLVM/project 40333cdllvm/lib/FileCheck FileCheck.cpp, llvm/test/FileCheck/diff diff-multi-mismatch.txt diff-multi-block.txt

[FileCheck] Add a diff output option for FileCheck (#187120)

This patch adds a `--diff` flag to FileCheck to address the readability
of traditional FileCheck output which can be difficult to parse by
human, especially when dealing with multiple substitutions or large
input files with many mismatches and additional context. This feature
provides a more familiar, scannable format for developers by rendering
mismatches as diffs.

There are two diff modes, split and unified both with substitution and
no-substitution version however to make it easier for reviewer, this
only have unified with no substitution.

Functional description of PR- 

`getDiffContext` -
It provides the surrounding context for the mismatch. It uses the
`SourceMgr` to find the Line using `LineNo`. Once it found the pointer,
it scans forward until it hits a newline (\n or \r) or the end of the

    [67 lines not shown]
DeltaFile
+220-24llvm/lib/FileCheck/FileCheck.cpp
+36-0llvm/test/FileCheck/diff/diff-multi-mismatch.txt
+32-0llvm/test/FileCheck/diff/diff-multi-block.txt
+30-0llvm/test/FileCheck/diff/diff-resync-after-noise.txt
+25-0llvm/test/FileCheck/diff/diff-multi-failres.txt
+23-0llvm/test/FileCheck/diff/diff-resync-high-noise.txt
+366-2413 files not shown
+552-2919 files

LLVM/project 4b0dd87clang/lib/Headers __clang_spirv_math.h __clang_spirv_libdevice_declares.h, clang/lib/Headers/openmp_wrappers math.h

[OFFLOAD] Introduce OpenMP math wrappers for SPIRV backend (#192139)

This PR is a first step to introduce math OpenMP wrappers for SPIRV
backend.
As a first step only API that either mapped to existing SPIRV API or has
straightforward implementation is introduced.
DeltaFile
+719-0clang/lib/Headers/__clang_spirv_math.h
+23-0clang/lib/Headers/__clang_spirv_libdevice_declares.h
+10-0clang/lib/Headers/openmp_wrappers/math.h
+1-0clang/lib/Headers/CMakeLists.txt
+753-04 files

LLVM/project 34fc7b3

Revert "[TySan][Sanitizer Common] Enable TySan testing in the sanitizer commo…"

This reverts commit dd0c5ebe69e580066de100c8c2ba5430a1aeee44.
DeltaFile
+0-00 files

LLVM/project 9ace19clibcxx/test/std/algorithms/alg.nonmodifying/alg.fold nodiscard.verify.cpp

nodiscard test
DeltaFile
+37-0libcxx/test/std/algorithms/alg.nonmodifying/alg.fold/nodiscard.verify.cpp
+37-01 files

LLVM/project 63ae74bclang/test/CXX/drs cwg2947.cpp, clang/www cxx_dr_status.html

[clang] Update C++ DR status page (#192768)

Now that Croydon motions are reflected in `cwg_index.html`.
DeltaFile
+321-220clang/www/cxx_dr_status.html
+1-1clang/test/CXX/drs/cwg2947.cpp
+322-2212 files

LLVM/project 4ef2a51libcxx/test/libcxx/diagnostics iterator.nodiscard.verify.cpp, libcxx/test/libcxx/iterators iterator.nodiscard.verify.cpp

relocate test
DeltaFile
+38-0libcxx/test/libcxx/iterators/iterator.nodiscard.verify.cpp
+0-38libcxx/test/libcxx/diagnostics/iterator.nodiscard.verify.cpp
+38-382 files

LLVM/project 6bb3a35clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaChecking.cpp

[clang] Improve diagnostics for `__builtin_align` builtins with floating/member pointer operands (#192650)

Improve diagnostics for `__builtin_align_up`, `__builtin_align_down`,
and `__builtin_is_aligned` when the first operand has an invalid type.

Clang already emits `err_typecheck_expect_scalar_operand` for
unsupported operands, but the message is generic. This patch adds
follow-up notes to clarify three common invalid cases:

* floating point operands (“floating point types are not allowed here”)
* C++ member pointer operands (“member pointers are not allowed here”)
* plain-function-pointer ("function pointers are not allowed here")
DeltaFile
+7-2clang/lib/Sema/SemaChecking.cpp
+5-1clang/test/Sema/builtin-align.c
+3-3clang/test/SemaCXX/builtin-align-cxx.cpp
+6-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+21-64 files

LLVM/project 499593cllvm/lib/Target/LoongArch LoongArchLSXInstrInfo.td LoongArchLASXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx/ir-instruction nor.ll

[LoongArch] Select `V{AND,OR,XOR,NOR}I.B` for bitwise with byte splat immediates (#192217)

The `V{AND,OR,XOR,NOR}I.B` instructions operate on byte elements and
accept an 8-bit immediate. However, when the same byte splat constant is
used with wider vector element types (e.g. v8i16, v4i32, v2i64),
instruction selection currently falls back to materializing the constant
in a temporary register.

```
vrepli.b  -1
vxor.v
```

even though the immediate form is available:

```
vxori.b 255
```


    [11 lines not shown]
DeltaFile
+17-2llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+12-0llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+3-6llvm/test/CodeGen/LoongArch/lasx/ir-instruction/nor.ll
+3-6llvm/test/CodeGen/LoongArch/lsx/ir-instruction/icmp.ll
+3-6llvm/test/CodeGen/LoongArch/lsx/ir-instruction/nor.ll
+3-6llvm/test/CodeGen/LoongArch/lsx/ir-instruction/or.ll
+41-2612 files not shown
+73-8418 files

LLVM/project 780a959lldb/include/lldb/ValueObject DILParser.h, lldb/source/Target StackFrame.cpp

[lldb] Remove unused bool members of DILParser (NFC) (#192572)

These options are used by DIL's `Interpreter`, but are unused by the
Parser.
DeltaFile
+6-18lldb/source/ValueObject/DILParser.cpp
+3-15lldb/include/lldb/ValueObject/DILParser.h
+2-3lldb/source/Target/StackFrame.cpp
+11-363 files

LLVM/project ebbcd42lldb/packages/Python/lldbsuite/test dotest_args.py, lldb/packages/Python/lldbsuite/test/builders darwin.py builder.py

Revert "[lldb] Rally around triple rather than arch in the API tests (#191416)" (#192763)

Temoprarily reverting while we look at the TestMacCatalyst.py and
TestRosetta.py fails introduced by this PR, to unblock the CI.

This reverts commit 86397f49c7725f35a51517a8290cb4207c97771d.
DeltaFile
+81-33lldb/packages/Python/lldbsuite/test/builders/darwin.py
+86-24lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+15-11lldb/packages/Python/lldbsuite/test/builders/builder.py
+16-6lldb/packages/Python/lldbsuite/test/dotest_args.py
+5-12lldb/test/API/commands/expression/ptrauth-objc/TestPtrAuthObjectiveC.py
+4-11lldb/test/API/commands/expression/ptrauth/TestPtrAuthExpressions.py
+207-9711 files not shown
+230-13117 files

LLVM/project 43e798eclang/lib/CodeGen CodeGenModule.cpp, clang/test/CodeGenCXX bpf-debug-info-alias.cpp

[BPF] Handle aliases in CodeGenModule::EmitExternalDeclaration. Fixes #192365 (#192374)

Adds handling of global aliases in
CodeGenModule::EmitExternalDeclaration. This fixes a clang crash on some
real code, see llvm#192365.
DeltaFile
+16-0clang/test/CodeGenCXX/bpf-debug-info-alias.cpp
+4-0clang/lib/CodeGen/CodeGenModule.cpp
+20-02 files

LLVM/project 029abe6lldb/include/lldb/Core Debugger.h, lldb/source/Commands CommandObjectDWIMPrint.cpp

[lldb] Store the dummy target in the selected execution context (#190496)

Store the dummy target in the selected execution context. There's no
reason for everybody to have to independently fall back to the dummy
target.
DeltaFile
+35-0lldb/unittests/Core/DebuggerTest.cpp
+14-16lldb/source/Interpreter/CommandObject.cpp
+17-9lldb/source/Core/Debugger.cpp
+10-6lldb/include/lldb/Core/Debugger.h
+5-7lldb/source/Interpreter/CommandInterpreter.cpp
+2-4lldb/source/Commands/CommandObjectDWIMPrint.cpp
+83-421 files not shown
+84-437 files

LLVM/project 492f5d7llvm/test/CodeGen/RISCV attributes.ll

[RISCV] Add missing RUN line for RV32P to attributes.ll. NFC (#192750)
DeltaFile
+2-1llvm/test/CodeGen/RISCV/attributes.ll
+2-11 files

LLVM/project 25df9f2mlir/lib/Dialect/Tensor/Transforms FoldTensorSubsetOps.cpp, mlir/test/Dialect/Tensor fold-tensor-subset-ops.mlir

[mlir][tensor] Remove unit-stride restriction in InsertSliceOp folding  (#192600)

This PR replaces manual offset/size resolution with `affine::mergeOffsetsSizesAndStrides`, simplifying the code and extending subview-of-subview folding to support non-unit strides.
DeltaFile
+7-31mlir/lib/Dialect/Tensor/Transforms/FoldTensorSubsetOps.cpp
+24-5mlir/test/Dialect/Tensor/fold-tensor-subset-ops.mlir
+31-362 files