LLVM/project 4b6a597compiler-rt/test lit.common.cfg.py

Reapply "[compiler-rt] Default to Lit's Internal Shell"

This reverts commit 206a1d2b5b0f7a6a7b8fdf06d067f37677bd13b1.

The issues that came up with the last landing have been fixed, so trying
this again to see if it sticks this time.
DeltaFile
+5-3compiler-rt/test/lit.common.cfg.py
+5-31 files

LLVM/project 3a8894dlibcxx/include/__numeric saturation_arithmetic.h, libcxx/test/libcxx/numerics nodiscard.verify.cpp

[libc++][numeric] Marked saturation artithmetic functions as `[[nodiscard]]` (#166898)

...according to Coding Guidelines: *`[[nodiscard]]` should be applied to
functions where discarding the return value is most likely a correctness
issue.*

# References
-
https://libcxx.llvm.org/CodingGuidelines.html#apply-nodiscard-where-relevant
-
https://github.com/llvm/llvm-project/pull/166524#issuecomment-3495567876

Co-authored-by: Hristo Hristov <zingam at outlook.com>
DeltaFile
+35-0libcxx/test/libcxx/numerics/nodiscard.verify.cpp
+0-18libcxx/test/std/numerics/bit/bitops.rot/nodiscard.verify.cpp
+5-5libcxx/include/__numeric/saturation_arithmetic.h
+40-233 files

LLVM/project 3240581llvm/utils/gn/secondary/llvm/test BUILD.gn, llvm/utils/gn/secondary/llvm/tools/llvm-cas BUILD.gn

[gn] port ebb61a5bea (llvm-cas)
DeltaFile
+16-0llvm/utils/gn/secondary/llvm/tools/llvm-cas/BUILD.gn
+7-0llvm/utils/gn/secondary/llvm/test/BUILD.gn
+23-02 files

LLVM/project f0940a5clang/docs WarningSuppressionMappings.rst ReleaseNotes.rst, clang/include/clang/Basic Diagnostic.h

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+4-7clang/lib/Basic/Diagnostic.cpp
+3-5clang/unittests/Basic/DiagnosticTest.cpp
+2-2clang/docs/WarningSuppressionMappings.rst
+1-1clang/include/clang/Basic/Diagnostic.h
+2-0clang/docs/ReleaseNotes.rst
+12-155 files

LLVM/project cadc8faclang/docs WarningSuppressionMappings.rst ReleaseNotes.rst, clang/lib/Basic Diagnostic.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+0-13llvm/lib/Support/SpecialCaseList.cpp
+4-7clang/lib/Basic/Diagnostic.cpp
+3-5clang/unittests/Basic/DiagnosticTest.cpp
+0-5llvm/include/llvm/Support/SpecialCaseList.h
+2-2clang/docs/WarningSuppressionMappings.rst
+2-0clang/docs/ReleaseNotes.rst
+11-321 files not shown
+12-337 files

LLVM/project 432bee5llvm/benchmarks FormatVariadicBM.cpp, llvm/test/Transforms/LoopVectorize/AArch64 reg-usage.ll

rebase

Created using spr 1.3.7
DeltaFile
+35-9llvm/tools/llvm-rc/ResourceScriptToken.cpp
+38-0llvm/test/tools/llvm-rc/octal.test
+26-4mlir/test/Conversion/MemRefToLLVM/expand-then-convert-to-llvm.mlir
+13-14llvm/utils/TableGen/Common/CodeGenRegisters.h
+13-14llvm/benchmarks/FormatVariadicBM.cpp
+27-0llvm/test/Transforms/LoopVectorize/AArch64/reg-usage.ll
+152-4183 files not shown
+295-22389 files

LLVM/project 8628ff3llvm/lib/ObjectYAML ELFYAML.cpp

[ObjectYAML] Remove extraneous .c_str() (NFC) (#167189)

maskedBitSetCase takes StringRef, so we can "implicitly cast"
std::string to StringRef.

Identified with readability-redundant-string-cstr.
DeltaFile
+1-1llvm/lib/ObjectYAML/ELFYAML.cpp
+1-11 files

LLVM/project 188f109mlir/lib/Dialect/SparseTensor/Transforms SparsificationAndBufferizationPass.cpp, mlir/test/lib/Dialect/Test TestDialect.cpp

[mlir] Remove duplicate includes (NFC) (#167187)

Identified with readability-duplicate-include.
DeltaFile
+0-1mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
+0-1mlir/test/lib/Dialect/Test/TestDialect.cpp
+0-22 files

LLVM/project 3bb903elibcxx/docs/Status Cxx17Papers.csv, libcxx/include/__functional hash.h

[libc++] Treat P0513R0 as a defect report against C++11 (#166690)

P0513R0 is essentially a collective resolution paper of LWG2543,
LWG2791, LWG2809, and LWG2817.

Among these LWG issues, LWG2543 (conditionally enabled `hash`) and
LWG2817 (`hash<nullptr_t>`) affect pre-C++17 utilities. We generally
backport changes from LWG issues, so this patch backports the relevant
parts of P0513R0.

Although we provide `hash<unique_ptr>` as an extension in C++03 mode, as
C++03 mode isn't encouraged now, this patch leaves `hash<unique_ptr>`
unchanged in C++03 mode.
DeltaFile
+8-10libcxx/test/std/utilities/function.objects/unord.hash/pointer.pass.cpp
+3-7libcxx/test/support/poisoned_hash_helper.h
+0-9libcxx/include/__functional/hash.h
+0-2libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp
+1-1libcxx/docs/Status/Cxx17Papers.csv
+12-295 files

LLVM/project 91821bamlir/test/Conversion/FuncToLLVM convert-data-layout.mlir func-memref.mlir, mlir/test/Conversion/MemRefToLLVM expand-then-convert-to-llvm.mlir

[MLIR] Fix FileCheck annotations and add 32-bit coverage (#167149)

Addresses #93154 by ensuring the test RUN/FILECHECK prefixes across
`mlir/test/Conversion/FuncToLLVM/` and related files match their
expected outputs, and adds an `index-bitwidth=32` variant of
`expand-then-convert-to-llvm.mlir` that exercises
`@collapse_shape_dynamic_with_non_identity_layout` through the same
MemRef-to-LLVM pipeline so the 32-bit layout descriptors are verified.
DeltaFile
+26-4mlir/test/Conversion/MemRefToLLVM/expand-then-convert-to-llvm.mlir
+3-4mlir/test/mlir-tblgen/op-decl-and-defs.td
+3-3mlir/test/Conversion/FuncToLLVM/convert-data-layout.mlir
+3-3mlir/test/Dialect/OpenACC/ops.mlir
+1-1mlir/test/Dialect/Func/duplicate-function-elimination.mlir
+1-0mlir/test/Conversion/FuncToLLVM/func-memref.mlir
+37-156 files

LLVM/project cf7e1eaclang/test/Sema/AArch64 arm_sve_feature_dependent_sve_AND_sve2___sme.c arm_sve_feature_dependent_sve_AND_LP_sve2_OR_sme_RP___sme.c, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll

rebase

Created using spr 1.3.7
DeltaFile
+22,501-17,294llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+0-16,470clang/test/Sema/AArch64/arm_sve_feature_dependent_sve_AND_sve2___sme.c
+6,649-5,373llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+10,289-0llvm/test/tools/llvm-mca/AArch64/Neoverse/V3-sve-instructions.s
+10,287-0llvm/test/tools/llvm-mca/AArch64/Neoverse/V3AE-sve-instructions.s
+9,945-0clang/test/Sema/AArch64/arm_sve_feature_dependent_sve_AND_LP_sve2_OR_sme_RP___sme.c
+59,671-39,13711,505 files not shown
+909,592-237,53411,511 files

LLVM/project 0246f33llvm/unittests/BinaryFormat MsgPackWriterTest.cpp

[BinaryFromat] Simplify subscript operators (NFC) (#167170)

Identified with readability-simplify-subscript-expr.
DeltaFile
+2-2llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp
+2-21 files

LLVM/project 7b1a74cbolt/lib/Core DebugNames.cpp

[BOLT] Use DenseMap::contains (NFC) (#167169)

Identified with readability-container-contains.
DeltaFile
+1-1bolt/lib/Core/DebugNames.cpp
+1-11 files

LLVM/project 0fad7d7llvm/include/llvm/Analysis IRSimilarityIdentifier.h, llvm/include/llvm/Transforms/IPO IROutliner.h

[llvm] Use static_assert on getEmptyKey and getTombstoneKey (NFC) (#167167)

Note that DenseMapInfo<unsigned>::getEmptyKey() and getTombstoneKey()
are constexpr.

This patch removes assertion messages as they don't state any more
than what's expressed in the assertion condition.

Identified with misc-static-assert.
DeltaFile
+4-5llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
+4-4llvm/include/llvm/Transforms/IPO/IROutliner.h
+4-4llvm/lib/CodeGen/MachineOutliner.cpp
+12-133 files

LLVM/project e61a51dllvm/include/llvm/Option OptTable.h, llvm/lib/DebugInfo/DWARF DWARFVerifier.cpp

[llvm] Use llvm::find_if and llvm::is_contained (NFC) (#167166)

Identified with llvm-use-ranges.
DeltaFile
+4-5llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+3-5llvm/include/llvm/Option/OptTable.h
+3-3llvm/utils/TableGen/OptionParserEmitter.cpp
+2-3llvm/lib/Option/OptTable.cpp
+2-3llvm/unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp
+14-195 files

LLVM/project 3b219cfllvm/test/Transforms/LoopVectorize/AArch64 reg-usage.ll

[LV] Add register pressure test for #164124.

Add extra test for https://github.com/llvm/llvm-project/pull/164124
DeltaFile
+27-0llvm/test/Transforms/LoopVectorize/AArch64/reg-usage.ll
+27-01 files

LLVM/project 0902a6bllvm/lib/TargetParser XtensaTargetParser.cpp

Add missing #include (fix for  #166997)
DeltaFile
+1-0llvm/lib/TargetParser/XtensaTargetParser.cpp
+1-01 files

LLVM/project 15e3b49llvm/lib/IR EHPersonalities.cpp

[llvm] Allow Rust personality name to contain arbitrary prefix (#166095)

LLVM needs to figure out the type of EH personality for various reasons.
To do this, it currently matches against a hardcoded list of names. In
Rust, we would like to mangle our personality function to better support
linking multiple Rust standard libraries via staticlib. We have
currently mangled all symbols except the personality, which remains
unmangled because of this LLVM hardcoding.

Instead, this now does a suffix match of the personality name, which
will work with the mangling scheme used for these internal symbols (e.g.
`_RNvCseCSg29WUqSe_7___rustc12___rust_alloc`).

Companion Rust PR: https://github.com/rust-lang/rust/pull/148413
DeltaFile
+4-2llvm/lib/IR/EHPersonalities.cpp
+4-21 files

LLVM/project 02976f5llvm/utils/TableGen FastISelEmitter.cpp RegisterInfoEmitter.cpp, llvm/utils/TableGen/Common CodeGenRegisters.h

[TableGen] Use "using" instead of "typedef" (NFC) (#167168)

Identified with modernize-use-using.
DeltaFile
+13-14llvm/utils/TableGen/Common/CodeGenRegisters.h
+7-7llvm/utils/TableGen/FastISelEmitter.cpp
+5-5llvm/utils/TableGen/RegisterInfoEmitter.cpp
+5-5llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
+5-5llvm/utils/TableGen/AsmMatcherEmitter.cpp
+4-4llvm/utils/TableGen/X86InstrMappingEmitter.cpp
+39-4017 files not shown
+78-8123 files

LLVM/project 26bb121llvm/benchmarks FormatVariadicBM.cpp, llvm/unittests/DebugInfo/PDB NativeSessionTest.cpp

Remove unused <vector> inclusion (#166997)

DeltaFile
+13-14llvm/benchmarks/FormatVariadicBM.cpp
+0-2llvm/unittests/Support/DynamicLibrary/PipSqueak.h
+2-0llvm/unittests/Support/DynamicLibrary/PipSqueak.cpp
+0-2llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp
+0-2llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp
+0-1llvm/unittests/TextAPI/TextStubV4Tests.cpp
+15-2126 files not shown
+15-4732 files

LLVM/project 3673cc7llvm/test/tools/llvm-rc octal.test tokenizer.test, llvm/test/tools/llvm-rc/Inputs octal-in-range.rc octal-out-of-range.rc

[llvm-rc] Don't interpret integer literals as octal numbers in rc.exe mode (#166915)

It turns out that rc.exe doesn't interpret integer literals as octal
numbers - but GNU windres does. Previously, llvm-rc did interpret them
as octal.

Fix the issue by stripping away the leading zeros during tokenization.
The alternative (which would be somewhat cleaner, as visible in
tokenizer.test) would be to retain them in the RCToken object, but strip
them out before calling
StringRef::getAsInteger. Alternatively to handle the radix detection
locally in llvm-rc code and not rely on getAsInteger to autodetect it.
Both of those solutions require propagating the IsWindres flag so that
it is available within RCToken, or at least when calling
RCToken::intValue().

Fixes: https://github.com/llvm/llvm-project/issues/144723
DeltaFile
+35-9llvm/tools/llvm-rc/ResourceScriptToken.cpp
+38-0llvm/test/tools/llvm-rc/octal.test
+4-1llvm/test/tools/llvm-rc/tokenizer.test
+4-0llvm/test/tools/llvm-rc/Inputs/octal-in-range.rc
+4-0llvm/test/tools/llvm-rc/Inputs/octal-out-of-range.rc
+2-1llvm/tools/llvm-rc/llvm-rc.cpp
+87-113 files not shown
+90-149 files

LLVM/project afc8368libcxxabi/test/native/x86_64 lpstart-zero.pass.sh.s, libunwind/test remember_state_leak.pass.sh.s

[libc++abi][libunwind] Enable AT&T syntax explicitly (#166818)

Implementation files using the Intel syntax typically explicitly specify
it. Do the same for the few files where applicable for AT&T.

This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's
Clang config files (i.e. a global preference for Intel syntax).
DeltaFile
+1-0libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s
+1-0libunwind/test/remember_state_leak.pass.sh.s
+2-02 files

LLVM/project 825943e.github/workflows libcxx-build-and-test.yaml, libcxx/utils/ci run-buildbot

[libc++] Run macOS buildbot under xcrun (#167072)

This ensures that run-buildbot can find the appropriate build tools
without having to go through a bunch of hoops inside run-buildbot
itself. When we eventually run the bootstrapping build on macOS, it also
allows the bootstrapped Clang to find the SDK headers it requires.

This also allows simplifying run-buildbot a bunch since we should be
able to find build tools in the current $PATH.
DeltaFile
+35-60libcxx/utils/ci/run-buildbot
+1-1.github/workflows/libcxx-build-and-test.yaml
+36-612 files

LLVM/project 070f331clang/lib/Driver/ToolChains Gnu.cpp

[Driver] Remove extraneous c_str() (NFC) (#167156)

Note that addMultilibFlag takes StringRef for its second parameter.

Identified with readability-redundant-string-cstr.
DeltaFile
+2-2clang/lib/Driver/ToolChains/Gnu.cpp
+2-21 files

LLVM/project 6b42c91llvm/lib/Target/WebAssembly WebAssemblyMachineFunctionInfo.h

[WebAssembly] Clean up CustomMappingTraits<BBNumberMap> (NFC) (#167155)

This patch does two things for readability:

- Use structured bindings.
- Remove extraneous .c_str().

Note that YamlIO.mapRequired takes StringRef as the key type.  As
such, we can implicitly construct StringRef from std::string.
DeltaFile
+2-2llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
+2-21 files

LLVM/project 1e18747llvm/lib/ObjectYAML CodeViewYAMLSymbols.cpp DXContainerYAML.cpp

[ObjectYAML] Remove redundant .str().c_str() (NFC) (#167154)

We can drop .str().c_str() here because all of the following are of
type StringRef:

- E.Name
- the second parameter of llvm::yaml::IO::enumCase
- the second parameter of llvm::yaml::IO::bitSetCase

Identified with readability-redundant-string-cstr.
DeltaFile
+14-24llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
+15-15llvm/lib/ObjectYAML/DXContainerYAML.cpp
+29-392 files

LLVM/project ae1622allvm/lib/Target/NVPTX NVPTXGenericToNVVM.cpp NVPTX.h

[NVPTX] Remove redundant declarations (NFC) (#167153)

initializeNVPTXCtorDtorLoweringLegacyPass is declared twice in
NVPTX.h.

initializeGenericToNVVMLegacyPassPass is declared in NVPTX.h.

Identified with readability-redundant-declaration.
DeltaFile
+0-4llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
+0-1llvm/lib/Target/NVPTX/NVPTX.h
+0-52 files

LLVM/project c06f864llvm/lib/ExecutionEngine/Orc/TargetProcess LibraryScanner.cpp

[ExecutionEngine] Use StringRef::starts_with (NFC) (#167152)

Identified with modernize-use-starts-ends-with.
DeltaFile
+2-2llvm/lib/ExecutionEngine/Orc/TargetProcess/LibraryScanner.cpp
+2-21 files

LLVM/project 18b8e3bllvm/include/llvm/ADT StringSwitch.h

[ADT] Add a missing std::move to StringSwitch::EndsWithLower (#167151)

All others seem to use std::move in StringSwitch.
DeltaFile
+1-1llvm/include/llvm/ADT/StringSwitch.h
+1-11 files

LLVM/project ace77c2clang-tools-extra/clang-tidy/readability SuspiciousCallArgumentCheck.cpp SimplifyBooleanExprCheck.cpp

[clang-tidy][NFC] Fix misc-const-correctness warnings (9/N) (#167124)

DeltaFile
+26-26clang-tools-extra/clang-tidy/readability/SuspiciousCallArgumentCheck.cpp
+26-25clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
+19-18clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
+12-10clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp
+8-8clang-tools-extra/clang-tidy/readability/OperatorsRepresentationCheck.cpp
+5-5clang-tools-extra/clang-tidy/readability/UseStdMinMaxCheck.cpp
+96-9215 files not shown
+130-12321 files