LLVM/project e737958 — flang/lib/Optimizer/HLFIR/IR HLFIROps.cpp, flang/lib/Optimizer/HLFIR/Transforms BufferizeHLFIR.cpp

[flang] Fuse chained character concatenations into one buffer (#239331)

Lowering creates one binary hlfir.concat per // operator, so `a // b //
c` was evaluated into an intermediate buffer that was then copied into
the result buffer. Add a canonicalization that folds a single-use
hlfir.concat into its user when no operation in between may modify or
release its operands, and bufferize hlfir.concat with any number of
operands. The buffer is now sized with the hlfir.concat length operand,
which can be computed outside of elemental loops, instead of the sum of
the operand lengths computed in the loop body.

I noticed this low hanging chained concat optimization when working on
the character expr refactor.

Note that we can still further optimize concat for the `a = b // c ...`
cases by using the lhs storage when there is no overlap (both for scalar
and arrays), I just did the easy change.
DeltaFile
+125-60flang/test/HLFIR/concat-bufferization.fir
+94-0flang/test/HLFIR/character-expression-lifetimes.fir
+54-0flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+36-6flang/test/Transforms/character-expression-storage.f90
+22-15flang/test/HLFIR/associate-codegen.fir
+23-14flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
+354-955 files not shown
+357-12611 files

LLVM/project fb93c76 — mlir/include/mlir/Dialect/LLVMIR LLVMDialectBytecode.td LLVMAttrDefs.td, mlir/lib/Dialect/LLVMIR/IR LLVMAttrs.cpp

[mlir][llvm] Add DIEnumeratorAttr (#241969)

Add DIEnumeratorAttr to the LLVM dialect, modeling llvm::DIEnumerator.
This is the first step of supporting enumerations in the LLVM dialect
debug info, as discussed at
https://discourse.llvm.org/t/interest-in-adding-dienumerator-and-template-parameter-debug-info-to-the-llvm-dialect/92776.
Import and export follow in a separate patch.

The attribute has an optional name, the value as an IntegerAttr, and an
unsigned flag. LLVM stores the value as an APInt of any width and its
verifier does not restrict the width (there are existing tests with 128
bit enumerators), so an IntegerAttr keeps the exact width. The unsigned
flag is stored separately, as in LLVM. The assembly format is the
declarative struct format with no custom parsing or printing. Signless
integers print in their signed form, as usual in MLIR, so an unsigned
value such as 255 : i8 is accepted but printed as -1 : i8, and the flag
keeps the information:

```

    [20 lines not shown]
DeltaFile
+20-8mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
+21-0mlir/test/Dialect/LLVMIR/debuginfo.mlir
+14-1mlir/include/mlir/Dialect/LLVMIR/LLVMDialectBytecode.td
+15-0mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
+14-0mlir/test/Dialect/LLVMIR/invalid-di-enumerator.mlir
+84-95 files

LLVM/project ea8f365 — clang/docs/analyzer/user-docs CommandLineUsage.md, clang/include/clang/StaticAnalyzer/Core AnalyzerOptions.def

[analyzer] Add an option to support unity-builds in CSA

Unity-build, a.k.a jumbo-build or unified-build is a practice to build
multiple C or C++ source files in a single compilation command by
including them into a synthetic TU main file using preprocessor
`#include` directives.

By default CSA would skip all functions in the files that are compiled
in this manner because the said functions would not be defined in the
"main TU" file, but in "headers", that are really #include'd sources.

Add unitybuild-file-extensions option (empty by default) that enables
CSA to start analysis of functions defined in #include'd files as long
as their extension matches one of the extensions configured.

Assisted by GPT-Sol LLM.

--

CPP-9564
DeltaFile
+96-0clang/test/Analysis/unitybuild-file-extensions.cpp
+12-6clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
+8-8clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+16-0clang/docs/analyzer/user-docs/CommandLineUsage.md
+14-0clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
+10-0clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
+156-142 files not shown
+162-148 files

LLVM/project 0855aa8 — clang/test/CodeGen/RISCV rvp-intrinsics.c, cross-project-tests/intrinsic-header-tests riscv_packed_simd.c

[RISCV][P-ext] Add scalar saturating and rounding shift intrinsics (#241730)
DeltaFile
+159-0llvm/test/CodeGen/RISCV/rvp-scalar.ll
+69-44llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+112-0llvm/test/CodeGen/RISCV/rvp-scalar-rv64.ll
+108-0clang/test/CodeGen/RISCV/rvp-intrinsics.c
+56-13llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+56-0cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+560-574 files not shown
+629-5910 files

LLVM/project 35b1959 — llvm/lib/Target/RISCV RISCVInstrInfo.cpp, llvm/test/CodeGen/RISCV spill-fill-fold.ll

[RISCV] Add fmv.h/w/d.x to foldMemoryOperandImpl for reloads. (#243192)

May help with #242978.

I found an old PR #78408 that also tried to do this, but it was more
complex and may have a bug for using an FSW to write a GPR stack
slot on RV64.

Assisted-by: Claude
DeltaFile
+763-8llvm/test/CodeGen/RISCV/spill-fill-fold.ll
+7-0llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+770-82 files

LLVM/project 2c77a8e — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-scalar.ll

[RISCV][P-ext] Fix assertion when legalizing i64 shift amounts on RV32 (#243366)

Previously, right shifts could incorrectly take the WSLL/WSLA path,
which also truncated the shift amount to i32. So the assertion failure
was never found.

After https://github.com/llvm/llvm-project/pull/242773, generic type
legalization can produce an i32 shift with an i64 shift amount on
RV32+P. Legalizing the shift amount then reaches an assertion that only
permits i32 shift amounts on RV64.

This commit allows the RV32+P case so generic legalization can expand
the shift amount.

Closes #243365
DeltaFile
+41-0llvm/test/CodeGen/RISCV/rvp-scalar.ll
+7-3llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+48-32 files

LLVM/project 249c0fc — llvm/lib/Target/RISCV RISCVISelLowering.cpp

[RISCV][P-ext] Replace some checks with pattern matching (NFC) (#243022)

Assisted-by: Codex
DeltaFile
+10-20llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+10-201 files

LLVM/project 1ec7ba3 — clang/test/CodeGen/AMDGPU builtins-amdgcn-d16-image-16bit-error.c, clang/test/CodeGenOpenCL builtins-amdgcn-image-load-feature-err.cl builtins-amdgcn-extended-image-err.cl

[Clang][AMDGPU][NFC] Move image builtin feature tests to CodeGen
DeltaFile
+0-108clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+108-0clang/test/CodeGen/AMDGPU/builtins-amdgcn-d16-image-16bit-error.c
+0-59clang/test/SemaOpenCL/builtins-extended-image-err.cl
+59-0clang/test/CodeGenOpenCL/builtins-amdgcn-extended-image-err.cl
+0-57clang/test/SemaOpenCL/builtins-image-load-image-feature-err.cl
+57-0clang/test/CodeGenOpenCL/builtins-amdgcn-image-load-feature-err.cl
+224-2246 files not shown
+290-29012 files

LLVM/project 710c8f3 — llvm/include/llvm/CodeGen MIR2Vec.h, llvm/lib/CodeGen MIR2Vec.cpp

[MIR2Vec] Take register info from the function being embedded (#243113)

MIRVocabulary kept the register info of the first machine function, so
llvm-ir2vec looked up vregs of later functions in it and asserted or
picked the wrong register class
DeltaFile
+46-0llvm/test/CodeGen/MIR2Vec/multi-function-vregs.mir
+22-23llvm/lib/CodeGen/MIR2Vec.cpp
+17-15llvm/include/llvm/CodeGen/MIR2Vec.h
+6-10llvm/unittests/CodeGen/MIR2VecTest.cpp
+3-3llvm/tools/llvm-ir2vec/lib/MIRUtils/MIRUtils.cpp
+94-515 files

LLVM/project 860153e — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/IR RuntimeLibcalls.cpp

[RuntimeLibcalls] Model wchar_t arguments in libcall signatures

RuntimeLibcalls could describe int, size_t and several other C types
but had no way to describe wchar_t, so a libcall taking one could not
be declared with the correct parameter type and extension attribute.
The width of wchar_t is not a property of the triple alone: it can be
overridden by the wchar_size module flag, as -fshort-wchar does.

Add a WChar FuncArgType that converts to an integer of
Module::getWCharSize() bits, and derive its extension attribute in
RuntimeLibcallsInfo::getExtAttrForWCharParam.

Declare wmemset using the new type. A wchar_t as wide as int is
sign-extended wherever int is, so targets such as RISC-V, MIPS, PowerPC
and SystemZ now get signext on it, while AIX, z/OS and VE, where it is
unsigned, get zeroext.

Assisted-by: Claude
DeltaFile
+50-0llvm/lib/IR/RuntimeLibcalls.cpp
+39-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/wchar-default.ll
+29-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/wchar-short.ll
+5-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+5-0llvm/include/llvm/IR/RuntimeLibcalls.h
+4-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+132-016 files not shown
+159-022 files

LLVM/project 7e639b7 — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/CodeGen TargetLoweringBase.cpp

[RuntimeLibcalls] Add WCharSize field to RuntimeLibcallsInfo (NFC) (#241679)

`convertToIRType()` will need to know `wchar_t` size.
Make it available via private field of RuntimeLibcallsInfo.

Assisted-by: Claude
DeltaFile
+13-11llvm/lib/IR/RuntimeLibcalls.cpp
+2-1llvm/include/llvm/IR/RuntimeLibcalls.h
+1-0llvm/lib/CodeGen/TargetLoweringBase.cpp
+16-123 files

LLVM/project bba8568 — llvm/lib/Support StringRef.cpp

[Support] Drop the GCC unroll pragma from rfindByte

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+1-5llvm/lib/Support/StringRef.cpp
+1-51 files

LLVM/project 91179f8 — llvm/lib/IR Attributes.cpp

IR: Check for overlap before copying in AttributeSet::removeAttributes (#242957)

removeAttributes copied the whole set into an AttrBuilder to check if
the mask overlaps it, which it usually doesn't. Check the attributes
of directly with the mask and only build the AttrBuilder if something
needs to be removed.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.16%, SPASS cnf.bc
-0.08%. CTMark instructions:u: ThinLTO -0.02% (kimwitu++ -0.06%)

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-2llvm/lib/IR/Attributes.cpp
+2-21 files

LLVM/project 5ebf42e — lldb/source/Plugins/ObjectFile/Mach-O ObjectFileMachO.cpp, llvm/include/llvm/IR IntrinsicsAMDGPU.td

Merge branch 'main' into users/ellishg/objdump-relative-method-list-fix-ptr-size
DeltaFile
+791-1,543lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+752-1,412llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+604-1,128llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+0-1,166llvm/test/CodeGen/RISCV/GlobalISel/orc-b-combine.mir
+326-656llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+287-564llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+2,760-6,469427 files not shown
+12,167-11,487433 files

LLVM/project b8142d0 — mlir/lib/Dialect/MemRef/Transforms CMakeLists.txt MemorySlotInterfacesImpl.cpp, mlir/lib/Dialect/Vector/Transforms MemorySlotInterfacesImpl.cpp

[mlir][memref] Promote buffers accessed via memref.copy (#232078)

This PR is a follow-up of #217793, which taught Mem2Reg to promote
buffers accessed through dynamic subviews and masked transfers.

This PR adds a `PromotableMemOpInterface` model for `memref.copy`. A
copy into the slot becomes a `vector.transfer_read` of the source, a
copy out becomes a `vector.transfer_write` to the target, and a copy
between two slots is rewritten one slot at a time so both buffers
disappear.

The transfers are built with
createReadOrMaskedRead/createWriteOrMaskedWrite. A copy from or to a
dynamically shaped memref now produces vector.mask {
vector.transfer_read/write }, and Mem2Reg promotes it through the
vector.mask model (#233705, #234251).
 
This PR also reorganizes the Mem2Reg tests. Since this logic spans the
MemRef and Vector dialects, there is no obvious dialect sub-directory

    [14 lines not shown]
DeltaFile
+302-0mlir/test/Transforms/Mem2Reg/memref-copy.mlir
+80-6mlir/lib/Dialect/MemRef/Transforms/MemorySlotInterfacesImpl.cpp
+2-2mlir/lib/Dialect/Vector/Transforms/MemorySlotInterfacesImpl.cpp
+1-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+1-0mlir/lib/Dialect/MemRef/Transforms/CMakeLists.txt
+386-85 files

LLVM/project dc3fabc — llvm/lib/Support StringRef.cpp

[Support] Name the vector width in rfindByte

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+4-3llvm/lib/Support/StringRef.cpp
+4-31 files

LLVM/project d227ef9 — compiler-rt/lib/scudo/standalone wrappers_c.cpp wrappers_c_checks.h, compiler-rt/lib/scudo/standalone/tests wrappers_c_test.cpp

[scudo] Relax aligned_alloc restrictions. (#237352)

The standard for aligned_alloc relaxed the restriction on the size
parameter. Update the code to only disallow non-power of two alignments.
DeltaFile
+16-1compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
+0-6compiler-rt/lib/scudo/standalone/wrappers_c_checks.h
+1-1compiler-rt/lib/scudo/standalone/wrappers_c.cpp
+17-83 files

LLVM/project 828ca88 — llvm/docs/CommandGuide llvm-ir2vec.md, llvm/test/tools/llvm-ir2vec target-options.mir

[llvm-ir2vec] Add -mtriple and codegen flags for MIR input (#242993)

MIR without an IR section was parsed for the host triple and -mcpu was
rejected since codegen flags became library options
DeltaFile
+21-0llvm/test/tools/llvm-ir2vec/target-options.mir
+9-2llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp
+9-0llvm/docs/CommandGuide/llvm-ir2vec.md
+39-23 files

LLVM/project d7db3cc — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.h AMDGPUInstCombineIntrinsic.cpp

[AMDGPU][NFC] Reduce simplifyAMDGCNMemoryIntrinsicDemanded arguments (#242200)

Follow-up to #240750, suggested in its review.
`simplifyAMDGCNMemoryIntrinsicDemanded` now takes only `IC`, `II` and
`DemandedElts`:
- it is a `GCNTTIImpl` member, like
`simplifyAMDGCNLaneIntrinsicDemanded`, so it reads the subtarget from
the class;
- `IsLoad` and the dmask operand index are derived from the intrinsic
(stores return void; image stores have the dmask after the stored
value).

No functional change.

Assisted-by: Claude Opus 5.5
DeltaFile
+15-23llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+4-0llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
+19-232 files

LLVM/project 08177da — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU inline-asm-convergent-exec-use.ll

Revert "[AMDGPU] Add implicit EXEC use to convergent inline asm (#242981)" (#243343)

This reverts commit daba4935fe66785f5452a3280c65925223b1c888.

This is not how this should be implemented
DeltaFile
+0-34llvm/test/CodeGen/AMDGPU/inline-asm-convergent-exec-use.ll
+4-8llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+4-422 files

LLVM/project f522535 — llvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU hazard-shift64.mir

[AMDGPU] Ignore call clobbers in `fixShift64HiggRegBug` hazard check

The check for `fixShift64HighRegBug` checks the reg mask to find if
the next higher register is in use. This can give false positives.
Update it to only check for the actual registers which are used,
which is more conservative in some cases, but should help avoid miscompiles.

This bug was found due to a wrong result being computed in device libs with ASAN enabled.
DeltaFile
+4-3llvm/test/CodeGen/AMDGPU/hazard-shift64.mir
+3-1llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+7-42 files

LLVM/project fc418bf — llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Support KnownFPClass.cpp

[KnownFPClass][NFC] Move KnownFPClass::square out-of-line (#243342)

Moves `KnownFPClass::square` out-of-line. The only change is that
`applyOutputDenormalMode` is applied after `propagateNonNaN` and
`knownNot(fcNegative)`, but this change is unobservable.
DeltaFile
+15-0llvm/lib/Support/KnownFPClass.cpp
+2-8llvm/include/llvm/Support/KnownFPClass.h
+17-82 files

LLVM/project 6d63394 — llvm/test/CodeGen/AMDGPU hazard-shift64.mir

[NFC][AMDGPU] Pre-commit test for `fixShift64HighRegBug` fix
DeltaFile
+84-0llvm/test/CodeGen/AMDGPU/hazard-shift64.mir
+84-01 files

LLVM/project 9df5085 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch/lasx scalar-load-to-vector.ll build-vector.ll

[LoongArch] Legalize BUILD_VECTOR into a broadcast when all non-undef elements are identical (#169755)

When a BUILD_VECTOR consists of the same element (ignoring undefs),
it is better emitting a broadcast instead of multiple insertions.

Some cases which suffer performance regressions or have no benefits are
excluded in this commit.
DeltaFile
+10-40llvm/test/CodeGen/LoongArch/lasx/build-vector.ll
+42-5llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+7-19llvm/test/CodeGen/LoongArch/lsx/build-vector.ll
+7-8llvm/test/CodeGen/LoongArch/lsx/scalar-load-to-vector.ll
+7-8llvm/test/CodeGen/LoongArch/lasx/scalar-load-to-vector.ll
+4-6llvm/test/CodeGen/LoongArch/lasx/ir-instruction/insertelement.ll
+77-864 files not shown
+89-10410 files

LLVM/project 602ecd3 — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/IR RuntimeLibcalls.cpp

[RuntimeLibcalls] Model wchar_t arguments in libcall signatures

RuntimeLibcalls could describe int, size_t and several other C types
but had no way to describe wchar_t, so a libcall taking one could not
be declared with the correct parameter type and extension attribute.
The width of wchar_t is not a property of the triple alone: it can be
overridden by the wchar_size module flag, as -fshort-wchar does.

Add a WChar FuncArgType that converts to an integer of
Module::getWCharSize() bits, and derive its extension attribute in
RuntimeLibcallsInfo::getExtAttrForWCharParam.

Declare wmemset using the new type. A wchar_t as wide as int is
sign-extended wherever int is, so targets such as RISC-V, MIPS, PowerPC
and SystemZ now get signext on it, while AIX, z/OS and VE, where it is
unsigned, get zeroext.

Assisted-by: Claude
DeltaFile
+50-0llvm/lib/IR/RuntimeLibcalls.cpp
+39-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/wchar-default.ll
+29-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/wchar-short.ll
+5-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+5-0llvm/include/llvm/IR/RuntimeLibcalls.h
+4-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+132-016 files not shown
+159-022 files

LLVM/project 1332766 — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/CodeGen TargetLoweringBase.cpp

Store WCharSize in RuntimeLibcallsInfo instead
DeltaFile
+29-32llvm/lib/IR/RuntimeLibcalls.cpp
+9-5llvm/include/llvm/IR/RuntimeLibcalls.h
+6-4llvm/lib/Target/ARM/ARMISelLowering.cpp
+2-2llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+2-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+3-1llvm/lib/CodeGen/TargetLoweringBase.cpp
+51-463 files not shown
+57-519 files

LLVM/project e354e54 — libcxx/include/__type_traits invoke.h, libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con F_incomplete.pass.cpp

[libc++] Turn std::__is_invocable_r back into a struct to restore lazy instantiation for short-circuiting (#242084)

The test is AI-generated.
DeltaFile
+19-0libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_incomplete.pass.cpp
+1-1libcxx/include/__type_traits/invoke.h
+20-12 files

LLVM/project 9e7e532 — lld/MachO SyntheticSections.cpp ConcatOutputSection.cpp, lld/test/MachO arm64-thunk-visibility.s

[lld-macho] Keep branch-range extension thunks out of the symbol table

Make every branch-range extension thunk a local symbol. Until now,
thunks to external functions were added to the global symbol table as
private externs, and thunks to local functions had no symbol in the
output at all. This matches ld64 and ld-prime, which both emit every
branch island as a local symbol.

This also means that address assignment no longer adds anything to the
global symbol table, so code that reads it can run concurrently with
address assignment without any synchronization. A follow-up uses this to
prepare the export trie and the symbol table section while addresses are
being assigned.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+5-14lld/MachO/ConcatOutputSection.cpp
+12-0lld/test/MachO/arm64-thunk-visibility.s
+8-0lld/MachO/SyntheticSections.cpp
+25-143 files

LLVM/project 8ee8e3e — lldb/include/lldb/Symbol Symtab.h, lldb/source/Plugins/SymbolFile/DWARF ManualDWARFIndex.cpp

[lldb] Remove empty/corrupt DataFileCache symtab/dwarf-index (#242081)

The symtab and dwarf-index DataFileCache files have the full filepath
and arch of the file used in the filename, and then in the contents of
the file there is a CacheSignature. The CacheSignature is intended to
change when the file is rebuilt, so we can detect that a binary has been
rebuilt and remove the old cached results.

This CacheSignature is performed in ManualDWARFIndex::Decode and
Symtab::Decode,

```
  bool Decode(const DataExtractor &data, lldb::offset_t *offset_ptr,
              bool &uuid_mismatch);
```

This method sets `uuid_mismatch=true` when that has been detected. It
returns false when the file is empty or corrupt. The callers only
handled the first case,

    [17 lines not shown]
DeltaFile
+69-0lldb/test/API/functionalities/module_cache/debug_index/TestDebugIndexCacheInvalidFile.py
+23-2lldb/test/API/functionalities/module_cache/symtab_state/TestSymtabState.py
+6-9lldb/source/Symbol/Symtab.cpp
+6-9lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
+3-8lldb/unittests/Symbol/SymtabTest.cpp
+1-6lldb/include/lldb/Symbol/Symtab.h
+108-341 files not shown
+109-367 files

LLVM/project 0f21117 — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/CodeGen DwarfEHPrepare.cpp

[RuntimeLibcalls] Take the module in libcall signature converters (NFC)

The converters that turn declaration C type descriptions into IR types
and attributes take a context, a triple and a data layout. A libcall
declaration can also depend on properties recorded in the module itself
rather than in the triple, so pass the module instead and derive all
three from it.

Change getDefaultFunctionTy, getFunctionTy, getVariableType and the
static helpers they use to take a Module, and update the callers. No
functional change intended.

Assisted-by: Claude
DeltaFile
+27-22llvm/lib/IR/RuntimeLibcalls.cpp
+4-7llvm/include/llvm/IR/RuntimeLibcalls.h
+4-6llvm/lib/Target/ARM/ARMISelLowering.cpp
+2-2llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+2-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+2-2llvm/lib/CodeGen/DwarfEHPrepare.cpp
+41-413 files not shown
+45-479 files