LLVM/project 4f1be83compiler-rt/cmake config-ix.cmake, compiler-rt/cmake/Modules CompilerRTDarwinUtils.cmake

[compiler-rt] [Darwin] Enable arm64e tests on macOS (#193391)

This enables compiler-rt tests on Darwin arm64e (when supported by the
linker).

Note that arm64e is not enabled for sanitizers yet, but this does add
test coverage for builtins.

rdar://175303507
DeltaFile
+17-18compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+4-0compiler-rt/cmake/config-ix.cmake
+21-182 files

LLVM/project 4408722llvm/lib/CodeGen MachineBlockHashInfo.cpp

[NFC][MachineBlockHashInfo] Add static asserts to guard agains hash_16_bytes changes (#192862)

`hashing::detail::hash_16_bytes` is not guaranteed to be stable across
different versions of LLVM, it can change any time.

We put asserts here, so if it changed, author don't forget to work
around them here.
DeltaFile
+7-2llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+7-21 files

LLVM/project 91fe498llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/DebugInfo/X86 sdag-load-sext-trunc.ll sdag-load-sext.ll

Revert "[SelectionDAG] Salvage debuginfo when combining load and z|s ext instrs. (#188544)" (#193554)

This reverts commit fe5d5b762ab3b92b18b56f413965abb81a459ac6.

Reverted because of https://github.com/llvm/llvm-project/issues/193475

clang crashes on valid code at -O{2,3} on x86_64-linux-gnu: Assertion
`N->getOpcode() != ISD::DELETED_NODE && "DELETED_NODE in CSEMap!"'
failed
DeltaFile
+3-89llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+0-70llvm/test/DebugInfo/X86/sdag-load-sext-trunc.ll
+0-61llvm/test/DebugInfo/X86/sdag-load-sext.ll
+0-48llvm/test/DebugInfo/X86/sdag-load-zext-multiple-args.ll
+3-2684 files

LLVM/project 5d01431lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime AppleObjCRuntimeV2.cpp AppleObjCRuntime.cpp, lldb/source/Plugins/SystemRuntime/MacOSX SystemRuntimeMacOSX.cpp

[lldb] Scope symbol lookups to specific modules in ObjC/SystemRuntime plugins (#193379)

This narrows `FindSymbolsWithNameAndType` calls from searching all
loaded images to the specific module that owns the symbol (Foundation,
CoreFoundation, libBacktraceRecording.dylib).

The arclite fallback in `CalculateHasNewLiteralsAndIndexing` still
searches all images because libarclite is a static library linked into
the main executable.
DeltaFile
+21-20lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+16-6lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
+9-4lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
+46-303 files

LLVM/project c3c8e40runtimes/cmake/Modules HandleLibC.cmake

[Runtimes] Allow HandleLibc.cmake to be called multiple times (#193540)

Summary:
This needs to check to see if it's already been called now that we want
to use it more places than just libcxx.
DeltaFile
+4-0runtimes/cmake/Modules/HandleLibC.cmake
+4-01 files

LLVM/project d9bbb90llvm/test/CodeGen/AArch64 insertextract.ll, llvm/test/CodeGen/AMDGPU promote-alloca-vector-dynamic-idx-bitcasts-llc.ll

[LegalizeTypes][DAG] Use SHL(X,1) instead of ADD(X,X) for variable vector indices for extraction/insertion legalization (#188277)

Avoid ADD(X,X) as it doesn't correctly handle undef elements and helps avoid some FREEZE() fold headaches

Resurrects #86857
DeltaFile
+76-174llvm/test/CodeGen/AMDGPU/promote-alloca-vector-dynamic-idx-bitcasts-llc.ll
+20-24llvm/test/CodeGen/X86/insertelement-var-index.ll
+14-12llvm/test/CodeGen/PowerPC/aix32-p8-scalar_vector_conversions.ll
+8-10llvm/test/CodeGen/X86/vector-extend-inreg.ll
+9-8llvm/test/CodeGen/ARM/combine-vmovdrr.ll
+8-8llvm/test/CodeGen/AArch64/insertextract.ll
+135-23610 files not shown
+165-26616 files

LLVM/project 8f1b0f6lldb/packages/Python/lldbsuite/test decorators.py, lldb/packages/Python/lldbsuite/test/make Makefile.rules

[lldb] Decorate tests that use threading (#193117)

Add a new decorator `skipIfTargetDoesNotSupportThreads` to skip tests
that use threading. This is motivated by running the test suite
targeting WebAssembly, where `wasip1` does not support threads. There
are variants that do support threading (e.g. `wasip1-threading`) that
the current implementation accounts for.
DeltaFile
+12-0lldb/packages/Python/lldbsuite/test/decorators.py
+1-1lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+1-0lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
+1-0lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump64b.py
+1-0lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
+1-0lldb/test/API/functionalities/single-thread-step/TestSingleThreadStepTimeout.py
+17-184 files not shown
+101-190 files

LLVM/project eb427a4libc/shared rpc_server.h rpc.h

[libc][NFC] Fix minor RPC warnings (#192997)

Summary:
Fix some warnings that show up with strict warnings set, reduces noise
when used as a header onyl library in projects.
DeltaFile
+24-12libc/shared/rpc_server.h
+2-2libc/shared/rpc.h
+26-142 files

LLVM/project 18bd7e4utils/bazel/llvm-project-overlay/lldb/source/Plugins BUILD.bazel

[Bazel] Fixes e52df04 (#193548)

This fixes e52df047f762d651404285dd8716f6bfa513b104.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+1-01 files

LLVM/project a104afallvm/test/Assembler fpmath.ll

Fix missing FileCheck

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
DeltaFile
+1-1llvm/test/Assembler/fpmath.ll
+1-11 files

LLVM/project 2f5ccd4mlir/lib/Target/LLVM CMakeLists.txt

[MLIR][XeGPU] Do not use ocloc lib if LLVM_BUILD_LLVM_DYLIB is ON (#193259)

This fixes LLVM dylib build in environments with installed ocloc.
The problem is that LLVM shared lib is never linked with ocloc and the
linker fails to resolve the symbols `oclocInvoke` and `oclocFreeOutput`.
DeltaFile
+16-13mlir/lib/Target/LLVM/CMakeLists.txt
+16-131 files

LLVM/project 49512ccclang/test/CodeGen/SystemZ builtins-systemz-zvector.c, llvm/test/CodeGen/AMDGPU load-constant-i8.ll load-global-i8.ll

rebase

Created using spr 1.3.7
DeltaFile
+1,117-1,613llvm/test/CodeGen/RISCV/rvv/setcc-fp-vp.ll
+918-920llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
+781-1,020llvm/test/CodeGen/X86/ssub_sat_vec.ll
+897-867clang/test/CodeGen/SystemZ/builtins-systemz-zvector.c
+820-816llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+501-737llvm/test/CodeGen/RISCV/rvv/fshr-fshl-vp.ll
+5,034-5,973723 files not shown
+29,941-21,202729 files

LLVM/project 3211648clang/test/CodeGen/SystemZ builtins-systemz-zvector.c, llvm/test/CodeGen/AMDGPU load-constant-i8.ll load-global-i8.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+1,117-1,613llvm/test/CodeGen/RISCV/rvv/setcc-fp-vp.ll
+918-920llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
+781-1,020llvm/test/CodeGen/X86/ssub_sat_vec.ll
+897-867clang/test/CodeGen/SystemZ/builtins-systemz-zvector.c
+820-816llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+501-737llvm/test/CodeGen/RISCV/rvv/fshr-fshl-vp.ll
+5,034-5,973723 files not shown
+29,941-21,202729 files

LLVM/project b0166e7libc/cmake/modules LLVMLibCTestRules.cmake

[libc] Fix .params file generation for integration tests (#193544)

Update add_integration_test to include loader arguments in the .params
file. The lit format already supported three-part .params files, but
add_integration_test was only generating two parts.
DeltaFile
+14-9libc/cmake/modules/LLVMLibCTestRules.cmake
+14-91 files

LLVM/project bd09b03llvm/include/llvm/ADT Hashing.h

[NFC][ADT] Make a few functions constexpr (#193302)

So we can use them in static_asserts in #192862.

It converts what ever is trivially possible. In future more can
be converted as well, if we constexpr fetch32/fetch64.

---------

Co-authored-by: Matt Arsenault <Matthew.Arsenault at amd.com>
DeltaFile
+19-19llvm/include/llvm/ADT/Hashing.h
+19-191 files

LLVM/project 7a63329clang/lib/Basic DarwinSDKInfo.cpp, clang/tools/clang-installapi Options.cpp

Revert "[Support][JSON] Use `std::unordered_map` for object storage" (#193549)

Reverts llvm/llvm-project#171230 to look at failures.
DeltaFile
+0-299llvm/benchmarks/JSONParserBM.cpp
+6-15llvm/include/llvm/Support/JSON.h
+7-7clang/lib/Basic/DarwinSDKInfo.cpp
+2-2llvm/lib/Support/JSON.cpp
+2-2clang/tools/clang-installapi/Options.cpp
+0-2lldb/source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.h
+17-3276 files not shown
+19-33312 files

LLVM/project 7136a4blld/ELF ScriptParser.cpp

[ELF] Factor linker-script dispatch loops into helpers. NFC (#193547)

Extract the per-token dispatch inside readLinkerScript, readSections,
readOutputSectionDescription, and readMemory into four new helpers.
Preparatory for making INCLUDE run a nested parse (#193427).
DeltaFile
+143-125lld/ELF/ScriptParser.cpp
+143-1251 files

LLVM/project d2673adllvm/lib/Target/RISCV RISCVTargetTransformInfo.h, llvm/test/CodeGen/RISCV/rvv fshr-fshl-vp.ll fixed-vectors-fshr-fshl-vp.ll

[RISCV] Expand vp.fshl, vp.fshr (#193225)

It looks like we never implemented custom lowering for the corresponding
ISD nodes so these were always just expanded by expandVPFunnelShift.
DeltaFile
+501-737llvm/test/CodeGen/RISCV/rvv/fshr-fshl-vp.ll
+334-363llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fshr-fshl-vp.ll
+0-2llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+835-1,1023 files

LLVM/project b75807bmlir/include/mlir/Dialect/SMT/IR SMTTypes.td, mlir/lib/Dialect/SMT/IR SMTTypes.cpp

[mlir][smt] Drop no empty smt.func domain restriction
DeltaFile
+0-31mlir/unittests/Dialect/SMT/TypeTest.cpp
+15-2mlir/lib/Dialect/SMT/IR/SMTTypes.cpp
+1-4mlir/include/mlir/Dialect/SMT/IR/SMTTypes.td
+3-0mlir/test/Dialect/SMT/basic.mlir
+0-1mlir/unittests/Dialect/SMT/CMakeLists.txt
+19-385 files

LLVM/project e52df04clang-tools-extra/clang-doc JSONGenerator.cpp, clang/lib/Basic DarwinSDKInfo.cpp

[Support][JSON] Use `std::unordered_map` for object storage (#171230)

`llvm::DenseMap` is not suitable for the key-value `Storage` inside
`llvm::json::Object`. Use `std::unordered_map` instead to optimize
memory usage.

`llvm::DenseMap` is optimized for mapping small keys and values
(pointers), and it pre-allocates 64 buckets by default.
`llvm::json::ObjectKey` is 24 bytes in size, and `llvm::json::Value` is
40 bytes. Currently, the JSON parser allocates 4KB of memory for each
JSON object. In practice, most JSON objects contain only a handful of
fields, and likely to have lists of many small objects. This is a
significant waste of memory.

Assisted-by: Claude Code (claude-opus-4-6)
DeltaFile
+299-0llvm/benchmarks/JSONParserBM.cpp
+15-6llvm/include/llvm/Support/JSON.h
+7-7clang/lib/Basic/DarwinSDKInfo.cpp
+2-2llvm/lib/Support/JSON.cpp
+2-2clang/tools/clang-installapi/Options.cpp
+1-1clang-tools-extra/clang-doc/JSONGenerator.cpp
+326-186 files not shown
+333-1912 files

LLVM/project c3bd0c1lldb/cmake/modules FindCursesAndPanel.cmake

[lldb] add terminfo name (#191740)

Fixes #191532

This PR just adds terminfo next to tinfo in FindCursesAndPanel.cmake
since NetBSD uses a separate library terminfo that LLDB’s CMake did not
look for (see #191532).
DeltaFile
+1-1lldb/cmake/modules/FindCursesAndPanel.cmake
+1-11 files

LLVM/project fb3ab40lldb/packages/Python/lldbsuite/test lldbplatformutil.py, lldb/test/API/macosx/extended-backtrace-api TestExtendedBacktraceAPI.py

[lldb/test] Fix BacktraceRecording path for Darwin embedded devices (NFC) (#193436)

rdar://172707080

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+4-18lldb/test/API/macosx/extended-backtrace-api/TestExtendedBacktraceAPI.py
+4-16lldb/test/API/macosx/queues/TestQueues.py
+3-1lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
+11-353 files

LLVM/project f1c4db6llvm/test/CodeGen/AMDGPU ssubsat.ll ssubo.ll, llvm/test/CodeGen/RISCV xaluo.ll

[SelectionDAG] Change SSUBO to do (LHS < RHS) XOR (RESULT < 0) (#191747)

Refactor expandSADDSUBO in TargetLowering so addition and subtraction
use separate, clearly named paths.

SADDO: unchanged meaning: overflow when (result < LHS) disagrees with
(RHS < 0) (signed compares).

SSUBO: use the equivalent formulation: overflow when (LHS < RHS)
disagrees with (result < 0) instead of (result < LHS) vs (RHS > 0).
DeltaFile
+781-1,020llvm/test/CodeGen/X86/ssub_sat_vec.ll
+434-434llvm/test/CodeGen/AMDGPU/ssubsat.ll
+279-273llvm/test/CodeGen/X86/vec_ssubo.ll
+131-119llvm/test/CodeGen/AMDGPU/ssubo.ll
+60-60llvm/test/CodeGen/RISCV/xaluo.ll
+45-52llvm/test/CodeGen/X86/expand-vp-int-intrinsics.ll
+1,730-1,9588 files not shown
+1,815-2,04414 files

LLVM/project 836c77blibc Maintainers.rst Maintainers.md, libc/docs Maintainers.md CMakeLists.txt

[libc][docs][NFC] Rename Maintainers.rst to Maintainers.md (#191882)

Renamed Maintainers.rst to Maintainers.md at the root of libc to match
other LLVM projects.

* Updated libc/docs/Maintainers.md to use MyST include directive,
following the pattern used by Clang.
* Fixed libc/docs/CMakeLists.txt to copy Maintainers.md instead of
Maintainers.rst to the build directory.
DeltaFile
+0-73libc/Maintainers.rst
+54-0libc/Maintainers.md
+2-0libc/docs/Maintainers.md
+1-1libc/docs/CMakeLists.txt
+0-1libc/docs/Maintainers.rst
+57-755 files

LLVM/project 94b9accllvm/lib/Target/RISCV RISCVISelLowering.cpp RISCVTargetTransformInfo.h, llvm/test/CodeGen/RISCV/rvv setcc-fp-vp.ll fixed-vectors-setcc-fp-vp.ll

[RISCV] Remove codegen for vp.fcmp (#193529)

Part of the work to remove trivial VP intrinsics from the RISC-V
backend, see
https://discourse.llvm.org/t/rfc-remove-codegen-support-for-trivial-vp-intrinsics-in-the-risc-v-backend/87999

This splits off vp.fcmp from #179622. The corresponding ISD node is
ISD::VP_SETCC, but this only removes the lowering for FP types
DeltaFile
+1,151-2,033llvm/test/CodeGen/RISCV/rvv/setcc-fp-vp.ll
+373-450llvm/test/CodeGen/RISCV/rvv/fixed-vectors-setcc-fp-vp.ll
+7-11llvm/test/CodeGen/RISCV/rvv/sink-splat-operands.ll
+1-2llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+0-1llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+1,532-2,4975 files

LLVM/project eae020emlir/include/mlir/Dialect/AMDGPU/IR AMDGPUOps.td, mlir/lib/Dialect/AMDGPU/IR AMDGPUOps.cpp

smfmac gfx950 sparse idx verifier

Signed-off-by: Eric Feng <Eric.Feng at amd.com>
DeltaFile
+38-24mlir/lib/Dialect/AMDGPU/IR/AMDGPUOps.cpp
+44-6mlir/test/Dialect/AMDGPU/invalid.mlir
+17-8mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPUOps.td
+18-0mlir/test/Dialect/AMDGPU/ops.mlir
+6-7mlir/test/Conversion/AMDGPUToROCDL/sparse-mfma-gfx950.mlir
+123-455 files

LLVM/project 5ea5b9ellvm/lib/Transforms/Utils ProfileVerify.cpp

[profcheck] Fix assert in getInitializer call on global with no initializer (#193514)

This code calls `getInitializer` without checking if the global has an
initializer, which causes an assert if there isn't one. These globals
may have no initializer after optimization from `globalopt`.

Check for an initializer first.

This is already locked down with
`CodeGen/SPIRV/legalize-zero-size-arrays-appending.ll` so we don't need
a new test.

This issue was exposed by
https://github.com/llvm/llvm-project/pull/192730.

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
DeltaFile
+9-8llvm/lib/Transforms/Utils/ProfileVerify.cpp
+9-81 files

LLVM/project 6012af2compiler-rt CMakeLists.txt, compiler-rt/lib/profile CMakeLists.txt

Revert "[compiler-rt][profile] Use runtimes-libc-headers in the GPU runtimes …"

This reverts commit e0b4a7063f78d36ffa5679e1d0e564a3668db1f0.
DeltaFile
+0-11compiler-rt/lib/profile/CMakeLists.txt
+0-8compiler-rt/CMakeLists.txt
+0-192 files

LLVM/project dc6d419llvm/lib/IR Verifier.cpp, llvm/test/Assembler fpmath.ll

IR: Allow !fpmath metadata on homogeneous float structs

This matches the logic for fast math flags / nofpclass, and allows
marking llvm.sincos calls with !fpmath.
DeltaFile
+19-0llvm/test/Assembler/fpmath.ll
+1-1llvm/lib/IR/Verifier.cpp
+20-12 files

LLVM/project 8c82aa0lldb/source/Plugins/ExpressionParser/Clang ClangModulesDeclVendor.cpp, lldb/test/API/lang/objc/module-import-log TestClangModuleImportLog.py main.m

[lldb] Log clang module loads (#193389)
DeltaFile
+19-0lldb/test/API/lang/objc/module-import-log/TestClangModuleImportLog.py
+10-0lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+7-0lldb/test/API/lang/objc/module-import-log/main.m
+2-0lldb/test/API/lang/objc/module-import-log/Makefile
+38-04 files