LLVM/project cb651a2lldb/source/Plugins/ObjectFile/ELF ObjectFileELF.cpp, lldb/source/Plugins/ObjectFile/Mach-O ObjectFileMachO.cpp

[lldb] Avoid redundant calls to `std::shared_ptr::get` (NFC) (#177720)

Avoid redundant calls to `std::shared_ptr::get()`. The class provides a
dereference operator and using that is the standard, idiomatic way to
access the underlying object.
DeltaFile
+13-18lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+8-10lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+3-3lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+1-1lldb/source/Symbol/ObjectFile.cpp
+25-324 files

LLVM/project 4f92da4utils/bazel/llvm-project-overlay/lldb BUILD.bazel

Fix bazel lldb (#177717)

PR #177309 introduced some new dependencies on DebugInfo/DWARF. This
updates the bazel file for lldb accordingly.
DeltaFile
+2-0utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+2-01 files

LLVM/project 9571c19utils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fix libc build. (#177716)

Fix missing dependency for change introduced in PR #177224
DeltaFile
+1-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+1-01 files

LLVM/project 7954b47lldb/packages/Python/lldbsuite/test gdbclientutils.py lldbgdbclient.py, lldb/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp

Revert "[lldb] Fix setting CanJIT if memory cannot be allocated (#176099)"

This reverts commit b5d8fc553d8e03f4d325458d29ac2c9e46a464e3.
DeltaFile
+0-55lldb/test/API/functionalities/gdb_remote_client/TestExprNoAlloc.py
+0-13lldb/packages/Python/lldbsuite/test/gdbclientutils.py
+3-3lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+2-2lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
+5-734 files

LLVM/project 2d0e952flang/lib/Lower/OpenMP Utils.cpp, flang/lib/Optimizer/OpenMP MapInfoFinalization.cpp

[Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords

This PR is one of four required to implement the attach mapping semantics in Flang, alongside the
ref_ptr/ref_ptee/ref_ptr_ptee map modifiers and the attach(always/never/auto) modifiers.

This PR is the MapInfoFinalization changes required to support these features, it mainly deals with
applying the correct attach map type and manipulating the descriptor types maps for base address
and descriptor so that when we specify ref_ptr/ref_ptee we emit one of the two maps and when we
emit ref_ptr_ptee we emit our usual default maps. In all cases we add the "glue" of an new
attach map except in cases where a user has provided attach never. In cases where we are
provided an always, we apply the always map type to our attach maps.

It's important to note the runtime has a toggle for the auto map behaviour, which will flip the
attach behaviour to the newer semantics or the older semantics for backwards compatability (outside
the purview of this PR but good to mention).
DeltaFile
+507-247flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
+55-7flang/test/Lower/OpenMP/attach-and-ref-modifier.f90
+34-21flang/test/Transforms/omp-map-info-finalization.fir
+21-19flang/test/Lower/OpenMP/optional-argument-map-2.f90
+18-12flang/test/Lower/OpenMP/derived-type-allocatable-map.f90
+17-7flang/lib/Lower/OpenMP/Utils.cpp
+652-31313 files not shown
+725-35419 files

LLVM/project 9743deaclang/lib/CIR/CodeGen CIRGenBuiltinX86.cpp

[CIR][NFC] Fix build after emitIntrinsicCallOp change (#177706)

The emitIntrinsicCallOp function was moved from the
architecture-specific builtin implementation files to a shared location
in CIRGenBuilderTy by https://github.com/llvm/llvm-project/pull/172735.
Unfortunately, a few changes had been merged before that change was
landed and it broke the build. This updates the broken call sites.
DeltaFile
+4-4clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+4-41 files

LLVM/project 6b01276llvm/test/CodeGen/X86 pclmulqdq.ll

[X86] pclmulqdq.ll - add missing AVX512 test coverage (#177694)

DeltaFile
+46-11llvm/test/CodeGen/X86/pclmulqdq.ll
+46-111 files

LLVM/project 65662cdllvm/lib/Transforms/InstCombine InstructionCombining.cpp, llvm/test/Transforms/InstCombine de-morgan-prof.ll select-binop-associative-prof.ll

[InstCombine] Preserve !prof metadata when creating select instructions.
DeltaFile
+31-0llvm/test/Transforms/InstCombine/de-morgan-prof.ll
+19-0llvm/test/Transforms/InstCombine/select-binop-associative-prof.ll
+3-1llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+53-13 files

LLVM/project 97c4a5fllvm/lib/Target/RISCV RISCVRegisterInfo.td, llvm/lib/Target/RISCV/Disassembler RISCVDisassembler.cpp

[RISCV] Add a template function for disassembling LMUL=2/4/8 vector registers. NFC (#177681)

DeltaFile
+6-39llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
+9-3llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+15-422 files

LLVM/project a10a834llvm/lib/Target/AMDGPU GCNSubtarget.h AMDGPUSubtarget.h

[NFCI][AMDGPU] Use `GET_SUBTARGETINFO_MACRO` in `GCNSubtarget.h`
DeltaFile
+9-291llvm/lib/Target/AMDGPU/GCNSubtarget.h
+11-62llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+14-11llvm/lib/Target/AMDGPU/R600Subtarget.h
+7-5llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+0-10llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+3-3llvm/lib/Target/AMDGPU/R600Processors.td
+44-3824 files not shown
+49-38710 files

LLVM/project 3d073f4clang/docs AddressSanitizer.rst ThreadSanitizer.rst

[sanitizer][NFCI] Document interaction of inlining with disabling instrumentation (#177672)

For ASan, MSan, TSan, UBSan
DeltaFile
+16-1clang/docs/AddressSanitizer.rst
+16-0clang/docs/ThreadSanitizer.rst
+16-0clang/docs/MemorySanitizer.rst
+14-0clang/docs/UndefinedBehaviorSanitizer.rst
+62-14 files

LLVM/project 1efebfellvm/test/CodeGen/AArch64 arm64-neon-mul-div.ll

[AArch64][GlobalISel] Add test coverage for arm64-neon-mul-div.ll. NFC
DeltaFile
+2,459-1,242llvm/test/CodeGen/AArch64/arm64-neon-mul-div.ll
+2,459-1,2421 files

LLVM/project d722b29llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass-fdiv.ll

Address comment nan lhs
DeltaFile
+4-2llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fdiv.ll
+1-1llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+5-32 files

LLVM/project 99eae09llvm/include/llvm/Support KnownFPClass.h

Fix comment
DeltaFile
+1-1llvm/include/llvm/Support/KnownFPClass.h
+1-11 files

LLVM/project 6608c21llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

frem self
DeltaFile
+17-1llvm/lib/Support/KnownFPClass.cpp
+5-6llvm/lib/Analysis/ValueTracking.cpp
+5-0llvm/include/llvm/Support/KnownFPClass.h
+27-73 files

LLVM/project b19b2callvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Handle fdiv in SimplifyDemandedFPClass
DeltaFile
+127-148llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fdiv.ll
+130-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+46-0llvm/lib/Support/KnownFPClass.cpp
+3-33llvm/lib/Analysis/ValueTracking.cpp
+10-0llvm/include/llvm/Support/KnownFPClass.h
+316-1815 files

LLVM/project c991fddllvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Handle fsub in SimplifyDemandedFPClass (#175852)

alive2 fails on some of the tests, but this is due to existing
folds in instsimplify and
https://github.com/AliveToolkit/alive2/issues/1273
DeltaFile
+55-73llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fsub.ll
+19-60llvm/lib/Analysis/ValueTracking.cpp
+11-6llvm/include/llvm/Support/KnownFPClass.h
+10-4llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+6-0llvm/lib/Support/KnownFPClass.cpp
+101-1435 files

LLVM/project c8193f1lldb/source/Utility VirtualDataExtractor.cpp

[lldb] Fix for 32-bit armv7 ubuntu bot compile error
DeltaFile
+1-1lldb/source/Utility/VirtualDataExtractor.cpp
+1-11 files

LLVM/project 7497355llvm/include/llvm/Support KnownFPClass.h

Fix comment
DeltaFile
+1-1llvm/include/llvm/Support/KnownFPClass.h
+1-11 files

LLVM/project fb24a11llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass-fdiv.ll

Address comment nan lhs
DeltaFile
+4-2llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fdiv.ll
+1-1llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+5-32 files

LLVM/project 8cdb674llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

frem self
DeltaFile
+17-1llvm/lib/Support/KnownFPClass.cpp
+5-6llvm/lib/Analysis/ValueTracking.cpp
+5-0llvm/include/llvm/Support/KnownFPClass.h
+27-73 files

LLVM/project 5b683abllvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Handle fdiv in SimplifyDemandedFPClass
DeltaFile
+127-148llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fdiv.ll
+130-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+46-0llvm/lib/Support/KnownFPClass.cpp
+3-33llvm/lib/Analysis/ValueTracking.cpp
+10-0llvm/include/llvm/Support/KnownFPClass.h
+316-1815 files

LLVM/project e595e0fllvm/test/Transforms/InstCombine simplify-demanded-fpclass.ll simplify-demanded-fpclass-insertelement.ll

regenerate tests
DeltaFile
+0-84llvm/test/Transforms/InstCombine/simplify-demanded-fpclass.ll
+4-3llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-insertelement.ll
+4-3llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-shufflevector.ll
+2-1llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fptrunc.ll
+2-1llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-frexp.ll
+2-1llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-extractelement.ll
+14-933 files not shown
+18-969 files

LLVM/project 38bd506llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp

Move isAggregateType, although this can't break for any existing case
DeltaFile
+4-4llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+4-41 files

LLVM/project c73ccb4llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass.ll

Check IsCanonicalizing
DeltaFile
+85-1llvm/test/Transforms/InstCombine/simplify-demanded-fpclass.ll
+2-1llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+87-22 files

LLVM/project dbb4b7dllvm/test/Transforms/InstCombine simplify-demanded-fpclass-sqrt.ll simplify-demanded-fpclass-frexp.ll

InstCombine: Fold known-qnan results to a literal nan

Previously we only considered fcNan to fold to qnan for canonicalizing
results, ignoring the simpler case where we know the nan is already
quiet.
DeltaFile
+3-9llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-sqrt.ll
+3-4llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-frexp.ll
+3-4llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-insertelement.ll
+3-4llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-shufflevector.ll
+2-4llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fmul.ll
+1-2llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-maximumnum.ll
+15-2712 files not shown
+28-4618 files

LLVM/project caf23d7llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass-frexp.ll

one use check
DeltaFile
+4-2llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-frexp.ll
+1-1llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+5-32 files

LLVM/project f74b460llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp

Use m_Extractvalue
DeltaFile
+5-7llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+5-71 files

LLVM/project 438fc78llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Implement SimplifyDemandedFPClass for frexp
DeltaFile
+16-38llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-frexp.ll
+49-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+27-0llvm/lib/Support/KnownFPClass.cpp
+3-21llvm/lib/Analysis/ValueTracking.cpp
+4-0llvm/include/llvm/Support/KnownFPClass.h
+99-595 files

LLVM/project 7a5e59ellvm/test/Transforms/InstCombine simplify-demanded-fpclass-frexp.ll

InstCombine: Add baseline frexp test for SimplifyDemandedFPClass (#176121)

DeltaFile
+632-0llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-frexp.ll
+632-01 files