LLVM/project 3847648llvm/docs/CommandGuide lit.rst, llvm/utils/lit/lit cl_arguments.py

Revert "[llvm][lit] Add option to run only the failed tests" (#171582)

Reverts llvm/llvm-project#158043

This was approved for earlier revisions but the tests were failing on
Windows. I pushed a speculative fix and that fixed the CI, which caused
auto-merge to merge the PR. But I'd like to have approval for the latest
revision. So reverting for now and resubmitting a new PR
DeltaFile
+0-23llvm/utils/lit/tests/filter-failed.py
+0-18llvm/utils/lit/tests/filter-failed-rerun.py
+0-16llvm/utils/lit/tests/filter-failed-delete.py
+0-7llvm/utils/lit/tests/Inputs/filter-failed/lit.cfg
+0-6llvm/utils/lit/lit/cl_arguments.py
+0-5llvm/docs/CommandGuide/lit.rst
+0-757 files not shown
+1-8513 files

LLVM/project 8684962lldb/docs index.rst

[lldb][docs] Remove dead link in toctree

Fixes warning:
index.rst:144: WARNING: toctree contains reference to nonexisting document 'use/python'

There used to be such a page but the URL now redirects
to "script-driven-debugging" which is in the "Python Reference"
section.
DeltaFile
+0-1lldb/docs/index.rst
+0-11 files

LLVM/project d9291f1lldb/docs/resources formatterbytecode.rst

[lldb][docs] Fix doc link syntax in bytecode formatter doc

This was flagged after the changes in 53674e2da437646591a6d20397cfd6c645dbf250.

Fixes warning:
formatterbytecode.rst:7: WARNING: 'any' reference target not found: ). To use custom data formatters, developers need to edit the global ``~/.lldbinit`
DeltaFile
+1-1lldb/docs/resources/formatterbytecode.rst
+1-11 files

LLVM/project 365ae7acompiler-rt/test/sanitizer_common CMakeLists.txt lit.site.cfg.py.in, compiler-rt/test/sanitizer_common/TestCases sanitizer_coverage_trace_pc_guard.cpp

[compiler-rt][sanitizer_common] Make sanitizer_common tests work for other Apple Platforms (#150994)

This commit addresses a longstanding TODO comment, by doing the
following:
* Modifies the CMakeLists to add the new test configs
* Modifies the relevant lit file to add the required envs
* Fixes the FileCheck match in
`Darwin/symbolizer-function-offset-atos.cpp`
* XFAILs any appropriate tests

rdar://107758331
DeltaFile
+54-2compiler-rt/test/sanitizer_common/CMakeLists.txt
+4-0compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c
+2-0compiler-rt/test/sanitizer_common/lit.site.cfg.py.in
+2-0compiler-rt/test/sanitizer_common/TestCases/Darwin/print-stack-trace-in-code-loaded-after-fork.cpp
+1-1compiler-rt/test/sanitizer_common/TestCases/Darwin/symbolizer-function-offset-atos.cpp
+1-0compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp
+64-31 files not shown
+65-37 files

LLVM/project 950f8a8clang/include/clang/Basic OpenCLExtensions.def, clang/lib/Basic/Targets AMDGPU.h

[OpenCL] Re-enable corresponding __opencl_* feature macros for OpenCL 2.0 core extensions (#171529)

Commit 423bdb2bf257e removed OpenCL 2.0 __opencl_* feature macros
(https://github.com/llvm/llvm-project/blob/fd73bdd662da/clang/lib/Headers/opencl-c-base.h#L60-L72)
from header and thus they are disabled by default for non-SPIR/SPIRV
targets now.
This PR re-enables them for OpenCL 2.0, and shall restore previous
behavior that these features macros were always defined for OpenCL 2.0
core extensions. After this PR, targets that support OpenCL 2.0 must
enable these feature macros via setSupportedOpenCLOpts API.
DeltaFile
+32-12clang/test/Misc/amdgcn.languageOptsOpenCL.cl
+11-11clang/include/clang/Basic/OpenCLExtensions.def
+4-0clang/lib/Basic/Targets/AMDGPU.h
+47-233 files

LLVM/project 680c20dlldb/docs/resources sbapi.rst, lldb/include/lldb/API SBError.h

[lldb] Document the behaviour of IsValid for SBError (#170862)

This reverts commit d20d84fec5945fcc16aa6f63879e1458d4af9ea6.

Fixes #169788, but in a different way.

In which I changed an SBError use so that when the function succeeded,
IsValid on the SBError would be true.

This seemed to make sense but SBError acts differently to other SB
classes in this respect. For something like SBMemoryRegionInfo, if
IsValid() is false, you can't do anything with it.

However for SBError, IsValid() true only means there's some underlying
error object in there. If the SBError represents a success, there's no
need to put anything in there.

You can see this intent from a lot of its methods, many have handling
for IsValid() false.

    [8 lines not shown]
DeltaFile
+11-0lldb/docs/resources/sbapi.rst
+9-0lldb/include/lldb/API/SBError.h
+1-1lldb/source/API/SBDebugger.cpp
+0-1lldb/unittests/DAP/TestBase.cpp
+21-24 files

LLVM/project 423c47allvm/lib/Target/LoongArch LoongArchInstrFormats.td LoongArchInstrInfo.td, llvm/lib/Target/LoongArch/Disassembler LoongArchDisassembler.cpp

[LoongArch] Add support for the ud macro instruction

This patch adds support for the `ud ui5` macro instruction. The `ui5`
operand must be inthe range `0-31`. The macro expands to:

`amswap.w $rd, $r1, $rj`

where `ui5` specifies the register number used for `$rd` in the expanded
instruction, and `$rd` is the same as `$rj`.

Relevant binutils patch:

https://sourceware.org/pipermail/binutils/2025-December/146042.html
DeltaFile
+23-0llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp
+13-0llvm/lib/Target/LoongArch/LoongArchInstrFormats.td
+8-1llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
+7-0llvm/test/MC/LoongArch/Basic/Integer/misc.s
+51-14 files

LLVM/project bd76a73llvm/docs/CommandGuide lit.rst, llvm/utils/lit/lit cl_arguments.py

Revert "[llvm][lit] Add option to run only the failed tests (#158043)"

This reverts commit 951795abaf0dbb2f955b333ccb5ce5f71cb82d24.
DeltaFile
+0-23llvm/utils/lit/tests/filter-failed.py
+0-18llvm/utils/lit/tests/filter-failed-rerun.py
+0-16llvm/utils/lit/tests/filter-failed-delete.py
+0-7llvm/utils/lit/tests/Inputs/filter-failed/lit.cfg
+0-6llvm/utils/lit/lit/cl_arguments.py
+0-5llvm/docs/CommandGuide/lit.rst
+0-757 files not shown
+1-8513 files

LLVM/project 951795allvm/docs/CommandGuide lit.rst, llvm/utils/lit/lit cl_arguments.py

[llvm][lit] Add option to run only the failed tests (#158043)

This patch adds a new `--filter-failed` option to `llvm-lit`, which when
set, will only run the tests that have previously failed.
DeltaFile
+23-0llvm/utils/lit/tests/filter-failed.py
+18-0llvm/utils/lit/tests/filter-failed-rerun.py
+16-0llvm/utils/lit/tests/filter-failed-delete.py
+7-0llvm/utils/lit/tests/Inputs/filter-failed/lit.cfg
+6-0llvm/utils/lit/lit/cl_arguments.py
+5-0llvm/docs/CommandGuide/lit.rst
+75-07 files not shown
+85-113 files

LLVM/project 53674e2lldb/docs/resources formatterbytecode.rst

[lldb][docs] Fix plaintext markers in Formatter bytecode doc (#171430)

RST uses double backtick for plain text. For single backtick it will try
to resolve it to a reference then fall back to plain text if it doesn't
resolve.

This leads to a lot of warnings like:
formatterbytecode.rst:7: WARNING: 'any' reference target not found:
~/.lldbinit

As seen on the publish-sphinx-docs bot.
DeltaFile
+78-78lldb/docs/resources/formatterbytecode.rst
+78-781 files

LLVM/project 4c7b5dfflang/docs GettingStarted.md

[flang][docs] Do not recommend FLANG_ENABLE_WERROR=ON... (#171152)

...unless the reader is going to contribute to Flang.

Fixes #168911.

In which someone followed the getting started instructions but because
they were using GCC and it produced some warnings, those got upgraded to
errors and failed the build.

The GCC builds of anything in LLVM are always going to have some warning
of some kind, so while it would be nice to fix or silence them, let's
not inflict that on new developers.

This option defaults to `OFF` and is turned `ON` by a handful of bots,
so if the intent was to make developers more attentive to warnings, that
will still happen. Just a bit later, which that's better than putting
them off up front.

If they go on to contribute, they can switch to a Clang build and enable
the option to save themselves some post-commit hassle.
DeltaFile
+18-2flang/docs/GettingStarted.md
+18-21 files

LLVM/project 4ff1bd5bolt README.md

[BOLT][docs] Document commands to identify BOLT-ed binaries (#171458)

These have been useful to me in the past and I don't see any docs
referencing the `bolt_info` note either.

There is a test checking that it is emitted, so I assume it's something
we are ok with people looking for.
DeltaFile
+20-0bolt/README.md
+20-01 files

LLVM/project 6f1cab2mlir/unittests/Analysis/Presburger PresburgerSetTest.cpp

[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in PresburgerSetTest.cpp (NFC)
DeltaFile
+16-11mlir/unittests/Analysis/Presburger/PresburgerSetTest.cpp
+16-111 files

LLVM/project d6e6661mlir/lib/Bindings/Python TransformInterpreter.cpp

[MLIR] Apply clang-tidy fixes for llvm-include-order in TransformInterpreter.cpp (NFC)
DeltaFile
+1-1mlir/lib/Bindings/Python/TransformInterpreter.cpp
+1-11 files

LLVM/project ce9eacbllvm/test/CodeGen/AMDGPU intrinsic-amdgcn-s-alloc-vgpr.ll

Update test after upstream change
DeltaFile
+4-0llvm/test/CodeGen/AMDGPU/intrinsic-amdgcn-s-alloc-vgpr.ll
+4-01 files

LLVM/project 5195dafclang/test/AST/ByteCode new-delete.cpp

[clang][bytecode][NFC] Remove an outdated comment (#171569)

Both implementations emit the same diagnostics these days.
DeltaFile
+0-1clang/test/AST/ByteCode/new-delete.cpp
+0-11 files

LLVM/project c567e28libcxx/docs/ReleaseNotes 22.rst, libcxx/include/__vector vector_bool.h

[libc++] Optimize vector<bool>::reserve (#170137)

Apple M4:
```
Benchmark                                                                      old        new    Difference    % Difference
--------------------------------------------------------------------------  ------  ----------  ------------  --------------
vector<bool>(const_vector<bool>&)                                            12.73       12.87          0.14           1.07%
vector<bool>(size_type,_const_value_type&)                                    9.39        9.41          0.02           0.22%
vector<bool>(vector<bool>&&,_const_allocator_type&)_(different_allocators)   16.87       15.22         -1.65          -9.80%
vector<bool>(vector<bool>&&,_const_allocator_type&)_(equal_allocators)        2.68        2.73          0.05           1.90%
vector<bool>::reserve()                                                      11.81        9.43         -2.38         -20.14%
Geomean                                                                       9.14        8.62         -0.53          -5.76%
```
DeltaFile
+42-2libcxx/test/benchmarks/containers/sequence/vector_bool.bench.cpp
+4-2libcxx/include/__vector/vector_bool.h
+1-0libcxx/docs/ReleaseNotes/22.rst
+47-43 files

LLVM/project 8c21064llvm/lib/Target/AArch64 AArch64SelectionDAGInfo.cpp AArch64SelectionDAGInfo.h, llvm/test/CodeGen/AArch64 streaming-compatible-memory-ops.ll

[AArch64][SME] Lower memchr to __arm_sc_memchr in streaming[-compatible] functions (#168896)

This allows us to avoid some streaming-mode switches.
DeltaFile
+174-7llvm/test/CodeGen/AArch64/streaming-compatible-memory-ops.ll
+29-6llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp
+7-2llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h
+210-153 files

LLVM/project 52efe03clang/test/AST/ByteCode placement-new.cpp

[clang][bytecode] Enable some placement-new tests (#171567)

They used to cause problems. Use the BYTECODE define to enable them at
least for the bytecode interpreter.
DeltaFile
+21-22clang/test/AST/ByteCode/placement-new.cpp
+21-221 files

LLVM/project 5759a3aclang/test/CodeGenOpenCL builtins-amdgcn-gfx1250.cl, llvm/lib/Target/AMDGPU SIISelLowering.cpp SOPInstructions.td

[AMDGPU] Add s_wakeup_barrier instruction for gfx1250 (#170501)

DeltaFile
+41-0llvm/test/CodeGen/AMDGPU/s-wakeup-barrier.ll
+25-4llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+15-0clang/test/CodeGenOpenCL/builtins-amdgcn-gfx1250.cl
+14-0llvm/lib/Target/AMDGPU/SOPInstructions.td
+14-0llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+12-0llvm/test/MC/AMDGPU/gfx1250_asm_sop1.s
+121-412 files not shown
+160-1118 files

LLVM/project 804e768llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 avgfloors-scalar.ll avgflooru-scalar.ll

[DAG] Recognise AVGFLOOR (((A >> 1) + (B >> 1)) + (A & B & 1)) patterns (#169644)

Recognise 'LSB' style AVGFLOOR patterns.

Alive2:
[https://alive2.llvm.org/ce/z/nfSSk_](https://alive2.llvm.org/ce/z/nfSSk_)

Fixes #53648
DeltaFile
+36-60llvm/test/CodeGen/X86/avgfloors-scalar.ll
+30-66llvm/test/CodeGen/X86/avgflooru-scalar.ll
+15-4llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+81-1303 files

LLVM/project a108881llvm/lib/Target/LoongArch LoongArchISelLowering.cpp LoongArchLSXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx issue170976.ll

[LoongArch] Custom lowering for vector logical right shifts of integers (#171097)

After PR #169491, the DAG combiner can still recreate vector UDIV in an
illegal type even after type legalization, which is the root cause of
issue #170976.

The optimization introduced in PR #169491 is still desirable, so this
patch adds custom lowering for vector integer logical right shifts to
prevent the DAG from producing nodes with illegal types.

Fixes #170976
DeltaFile
+74-0llvm/test/CodeGen/LoongArch/lasx/issue170976.ll
+74-0llvm/test/CodeGen/LoongArch/lsx/issue170976.ll
+45-2llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+25-11llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+9-18llvm/test/CodeGen/LoongArch/lasx/ir-instruction/avg.ll
+9-18llvm/test/CodeGen/LoongArch/lsx/ir-instruction/avg.ll
+236-494 files not shown
+251-6010 files

LLVM/project 9039721llvm/test/CodeGen/AMDGPU maximumnum.bf16.ll minimumnum.bf16.ll, llvm/test/CodeGen/X86 wide-scalar-shift-by-byte-multiple-legalization.ll

Merge branch 'main' into users/rovka/alloc-vgpr-intrinsic
DeltaFile
+17,522-20,773llvm/test/CodeGen/X86/wide-scalar-shift-by-byte-multiple-legalization.ll
+8,998-11,093llvm/test/CodeGen/AMDGPU/maximumnum.bf16.ll
+8,981-11,098llvm/test/CodeGen/AMDGPU/minimumnum.bf16.ll
+5,975-8,879llvm/test/CodeGen/AMDGPU/shufflevector.v4i64.v4i64.ll
+5,975-8,879llvm/test/CodeGen/AMDGPU/shufflevector.v4p0.v4p0.ll
+7,387-7,087llvm/test/tools/llvm-dwarfdump/X86/simplified-template-names.s
+54,838-67,8098,748 files not shown
+511,427-454,0598,754 files

LLVM/project f5e6cb0llvm/test/tools/llvm-mca/AArch64/Neoverse V3AE-neon-instructions.s V2-neon-instructions.s

Merge branch 'main' into users/rovka/relax-callers-for-chain-funcs
DeltaFile
+780-1,347llvm/test/tools/llvm-mca/AArch64/Neoverse/V3AE-neon-instructions.s
+780-1,347llvm/test/tools/llvm-mca/AArch64/Neoverse/V2-neon-instructions.s
+780-1,347llvm/test/tools/llvm-mca/AArch64/Neoverse/V3-neon-instructions.s
+1,000-1,084llvm/test/tools/llvm-mca/AArch64/Neoverse/N2-neon-instructions.s
+1,000-1,084llvm/test/tools/llvm-mca/AArch64/Neoverse/N3-neon-instructions.s
+1,000-1,084llvm/test/tools/llvm-mca/AArch64/Neoverse/N1-neon-instructions.s
+5,340-7,2931,433 files not shown
+42,274-31,0041,439 files

LLVM/project 62dbe57compiler-rt/lib/sanitizer_common sanitizer_linux.cpp sanitizer_platform_limits_posix.h

[compiler-rt][sanitizer] fix i386 build for Haiku (#171075)

r13 does not provide the trap err.

Co-authored-by: Jerome Duval <jerome.duval at gmail.com>
DeltaFile
+10-2compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+1-1compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+11-32 files

LLVM/project 56e092cllvm/lib/Target/RISCV/GISel RISCVLegalizerInfo.cpp, llvm/test/CodeGen/RISCV/GlobalISel fp-fcanonicalize.ll legalizer-info-validation.mir

[RISCV][GISel] Legalize the G_FCANONICALIZE instruction (#166162)

DeltaFile
+66-0llvm/test/CodeGen/RISCV/GlobalISel/fp-fcanonicalize.ll
+5-0llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+2-2llvm/test/CodeGen/RISCV/GlobalISel/legalizer-info-validation.mir
+73-23 files

LLVM/project 885c344mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

use dims modifer in main num_teams clause itself instead of creating new clause
DeltaFile
+161-51mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+48-80mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+76-1mlir/test/Dialect/OpenMP/invalid.mlir
+2-2mlir/test/Dialect/OpenMP/ops.mlir
+1-2mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+288-1365 files

LLVM/project 43f0b69clang/include/clang/Basic Builtins.def, clang/lib/AST ASTContext.cpp

[AMDGPU] Removal of language sensitive option for _Float16 and half('e') handling (#170443)

Removing the 'e' handling for the amdgcn builtins as we decided to use
_Float16 for both HIP/C++ and OpenCL
DeltaFile
+2-6clang/lib/AST/ASTContext.cpp
+0-1clang/include/clang/Basic/Builtins.def
+2-72 files

LLVM/project bd9651bmlir/include/mlir/Bindings/Python NanobindAdaptors.h, mlir/test/python/dialects pdl_types.py

[mlir][py] avoid crashing on None contexts in custom `get`s (#171140)

Following a series of refactorings, MLIR Python bindings would crash if
a
dialect object requiring a context defined using
mlir_attribute/type_subclass
was constructed outside of the `ir.Context` context manager. The type
caster
for `MlirContext` would try using `ir.Context.current` when the default
`None`
value was provided to the `get`, which would also just return `None`.
The
caster would then attempt to obtain the MLIR capsule for that `None`,
fail,
but access it anyway without checking, leading to a C++ assertion
failure or
segfault.

Guard against this case in nanobind adaptors. Also emit a warning to the

    [13 lines not shown]
DeltaFile
+14-6mlir/include/mlir/Bindings/Python/NanobindAdaptors.h
+13-0mlir/test/python/dialects/pdl_types.py
+27-62 files

LLVM/project b939293llvm/lib/Target/LoongArch LoongArchISelLowering.cpp

Address weining's comments
DeltaFile
+6-10llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+6-101 files