Changes

Summary

  1. [NFC][InstCombine] Fix inconsistent comments (details)
  2. [llvm-profgen] Fix a bug of assertion (details)
  3. [llvm-profgen] Fix an out-of-range error during unwinding (details)
  4. [llvm-profgen] Fix a dangling vector reference in CS line number based generator (details)
  5. [RISCV] Update mir tests. (details)
  6. [NFC] Remove redundant setOperationAction. (details)
  7. [MLIR] [Python] Make Attribute and Type hashable (details)
  8. [X86][FP16] Change the order of the operands in complex FMA intrinsics to allow swap between the mul operands. (details)
  9. [demangle] Support for ISO/IEC TS 18661 binary floating point type (details)
  10. [AArch64][SVE][InstCombine] Eliminate redundant chains of tuple get/set (details)
  11. [OpenMP][NFC] Clang format OMPIRBuilder (details)
  12. [OpenMP][NFC] Improve debug output (details)
  13. [OpenMP][NFC] Precommit test that exposes a bug in our optnone handling (details)
  14. [OpenMP][NFC] Rerun the test check update script on all OpenMP-Opt tests (details)
  15. [OpenMP][NFC] Repair test that contained nested kernels (details)
  16. [OpenMP][FIX] Be more deliberate about invalidating the AAKernelInfo state (details)
  17. [libc++][spaceship] Implement std::pair::operator<=> (details)
  18. [AMDGPU] Fix gcc warnings about unused variables [NFC] (details)
  19. [mlir] Fix build on Windows on Arm (details)
  20. [clang][tooling] NFC: Refactor command-line diagnostic tests (details)
  21. [X86][FP16] Combine the FADD(A, FMA(B, C, 0)) to FMA(B, C, A) (details)
  22. Wrap xar/xar.h include in extern "C" block (details)
  23. [NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG (details)
  24. [clangd] Ensure lambda init-capture gets semantic token (details)
  25. [ModuleInlinerWrapperPass] Do some naive printing of wrapped pipeline with -print-pipeline-passes (details)
  26. [DAGCombiner] Rename isAlias as mayAlias. NFC (details)
  27. [TII] Remove the MFI argument to convertToThreeAddress. NFC. (details)
  28. [Driver] Correctly handle static C++ standard library (details)
  29. Revert "[Driver] Correctly handle static C++ standard library" (details)
  30. [libc] Add optimized memset for AArch64 (details)
  31. [InstSimplify] Don't lose inbounds when simplifying a GEP (details)
  32. tsan: remove unnecessary enum values (NFC) (details)
  33. tsan: remove DontDumpShadow from Go build (details)
  34. tsan: add another deep stack test (details)
  35. tsan: use RawShadow instead of u64 more (details)
  36. tsan: move shadow declaration into a separate header file (NFC) (details)
  37. [fir][NFC] inline trival isa_<type> functions (details)
  38. [RISCV][VP] Add support for VP_REDUCE_* operations (details)
  39. [lldb] Fix DomainSocket::GetSocketName for unnamed sockets (details)
Commit 10a5632550abb318c8012a80ae753f606263712a by gusrb406
[NFC][InstCombine] Fix inconsistent comments
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
Commit c2be2d3284d2b0d76eacbe3e3999fb0843ef65a6 by wlei
[llvm-profgen] Fix a bug of assertion

The assertion should work on the entire context.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D110268
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.cpp
Commit 686cc0006793b06fd15d08cc0188b071f49ae990 by wlei
[llvm-profgen] Fix an out-of-range error during unwinding

It happened that the LBR entry target can be the first address of text section which causes an out-of-range crash. So here add a boundary check.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D110271
The file was modifiedllvm/tools/llvm-profgen/PerfReader.cpp
Commit 1ed69bb86eb188ab23f62c266d2d23846588e768 by wlei
[llvm-profgen] Fix a dangling vector reference in CS line number based generator

It seems we missed one spot to persist `SampleContextFrameVector` into the global table (CSProfileGenerator::populateFunctionBoundarySamples:340) which causes a crash.

This change tried to fix it in a centralized way i. e. where we generate the `FunctionSamples`.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D110275
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.h
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.cpp
Commit ebc5feb4ed6b1f59a000669030f9639bf1763403 by kai.wang
[RISCV] Update mir tests.
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/tail-agnostic-impdef-copy.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/emergency-slot.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/mask-reg-alloc.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/vsetvli-insert.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/zvlsseg-spill.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/frameindex-addr.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/zvlsseg-copy.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/commuted-op-indices-regression.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/get-vlen-debugloc.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/reg-coalescing.mir
Commit 13207a21a64d3a0f1537cc99efe91d757d51f46c by freddy.ye
[NFC] Remove redundant setOperationAction.

[FROUND,FROUNDEVEN][f32, f64, f128] are set Expand twice.

Differential Revision: https://reviews.llvm.org/D110302
The file was modifiedllvm/lib/CodeGen/TargetLoweringBase.cpp
Commit 47cc166bc023b497bdffe0964d80f15eaee8b7da by john.demme
[MLIR] [Python] Make Attribute and Type hashable

Enables putting types and attributes in sets and in dicts as keys.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D110301
The file was modifiedmlir/lib/Bindings/Python/IRCore.cpp
The file was modifiedmlir/test/python/ir/builtin_types.py
The file was modifiedmlir/test/python/ir/attributes.py
Commit ebec077e07f5d35a870f075fb665c006978d49ea by pengfei.wang
[X86][FP16] Change the order of the operands in complex FMA intrinsics to allow swap between the mul operands.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D109658
The file was modifiedllvm/lib/Target/X86/X86IntrinsicsInfo.h
The file was modifiedllvm/test/CodeGen/X86/avx512fp16-combine-vfmulc-fadd.ll
The file was modifiedclang/lib/Headers/avx512vlfp16intrin.h
The file was modifiedllvm/test/CodeGen/X86/avx512fp16-combine-xor-vfmulc-fadd.ll
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.cpp
The file was modifiedllvm/test/CodeGen/X86/stack-folding-fp-avx512fp16.ll
The file was modifiedllvm/test/CodeGen/X86/avx512cfmul-intrinsics.ll
The file was modifiedllvm/lib/Target/X86/X86InstrFragmentsSIMD.td
The file was modifiedllvm/test/CodeGen/X86/stack-folding-fp-avx512fp16vl.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/avx512cfma-intrinsics.ll
The file was modifiedclang/lib/Headers/avx512fp16intrin.h
The file was modifiedllvm/lib/Target/X86/X86InstrAVX512.td
The file was modifiedllvm/test/CodeGen/X86/avx512cfmulsh-instrinsics.ll
Commit 1873f3be78a5255df8c36c195f4c778f9f47fc5c by pengfei.wang
[demangle] Support for ISO/IEC TS 18661 binary floating point type

Reviewed By: #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D105278
The file was modifiedlibcxxabi/src/demangle/ItaniumDemangle.h
The file was modifiedllvm/include/llvm/Demangle/ItaniumDemangle.h
The file was modifiedlibcxxabi/test/test_demangle.pass.cpp
Commit 3b12282b0ed738f138229993505fbba23cd534a2 by mnadeem
[AArch64][SVE][InstCombine] Eliminate redundant chains of tuple get/set

Differential Revision: https://reviews.llvm.org/D109667

Change-Id: I06a3c28e3658ecda109a3a1b73265828274ab2ea
The file was addedllvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-opts-tuple-get.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Commit 94c177e6b29e7ea1211d1650ca6fd98c87cd2b05 by johannes
[OpenMP][NFC] Clang format OMPIRBuilder

These files should be kept clang-formatted but diverge sometimes.
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
Commit 0a16c560102212f5b317e646486b6826847334ca by johannes
[OpenMP][NFC] Improve debug output
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit 5e835ecb6d43eade0cbd0a91df7c22412481d264 by johannes
[OpenMP][NFC] Precommit test that exposes a bug in our optnone handling
The file was addedllvm/test/Transforms/OpenMP/get_hardware_num_threads_in_block_fold_optnone.ll
Commit 92280ae3d83d4c1436167fa05fc8292628062250 by johannes
[OpenMP][NFC] Rerun the test check update script on all OpenMP-Opt tests
The file was modifiedllvm/test/Transforms/OpenMP/deduplication.ll
The file was modifiedllvm/test/Transforms/OpenMP/dead_use.ll
The file was modifiedllvm/test/Transforms/OpenMP/icv_tracking.ll
Commit 57822c3f4f36b81635da98707cf149747a754a6b by johannes
[OpenMP][NFC] Repair test that contained nested kernels

The benchmark contained (partially) nested kernels, something we do not
generate nor support.
The file was modifiedllvm/test/Transforms/OpenMP/replace_globalization.ll
Commit c6457dcae88043cbd07dedc61b602b66b26f1ddf by johannes
[OpenMP][FIX] Be more deliberate about invalidating the AAKernelInfo state

This patch fixes a problem when the AAKernelInfo state was invalidated,
e.g., due to `optnone` for a kernel, but not all parts indicated the
invalidation properly. We further eliminate most full state
invalidations as they should never be necessary.

Differential Revision: https://reviews.llvm.org/D109468
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/test/Transforms/OpenMP/get_hardware_num_threads_in_block_fold_optnone.ll
Commit f4abdb0c074bd7b7b89d9828d449078d16d0e1c3 by k
[libc++][spaceship] Implement std::pair::operator<=>

Implements parts of P1614, including synth-three-way and three way comparison for std::pair.

Reviewed By: #libc, Quuxplusone, Mordante

Differential Revision: https://reviews.llvm.org/D107721
The file was addedlibcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp
The file was addedlibcxx/test/std/utilities/utility/pairs/pairs.spec/three_way_comparison.pass.cpp
The file was modifiedlibcxx/docs/Status/SpaceshipProjects.csv
The file was modifiedlibcxx/include/CMakeLists.txt
The file was modifiedlibcxx/include/module.modulemap
The file was modifiedlibcxx/include/__utility/pair.h
The file was addedlibcxx/test/libcxx/library/description/conventions/expos.only.func/synth_three_way.pass.cpp
The file was modifiedlibcxx/include/utility
The file was addedlibcxx/include/__compare/synth_three_way.h
Commit e7b169a8ae99b0cef1e5262f18b35e0abcc69ef8 by mikael.holmen
[AMDGPU] Fix gcc warnings about unused variables [NFC]
The file was modifiedllvm/lib/Target/AMDGPU/SIFoldOperands.cpp
Commit b7050c791d8951c0a099bf162f9ab3a696611b7d by diana.picus
[mlir] Fix build on Windows on Arm

clang-cl errors out while handling the templated version of tgfmt. This
patch works around the issue by explicitly choosing the non-templated
version of tgfmt, which takes an ArrayRef<std::string>.

More details in this thread:
https://lists.llvm.org/pipermail/cfe-dev/2021-September/068936.html

Thanks @Mehdi Amini for suggesting the fix :)

Differential Revision: https://reviews.llvm.org/D110223
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp
Commit 352a2e67162541efe79a1e144b40a054751e7d5c by Jan Svoboda
[clang][tooling] NFC: Refactor command-line diagnostic tests

This patch uses a different command-line arguments to test `clang::tooling::ToolInvocation` that are not specific to Darwin.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D110160
The file was modifiedclang/unittests/Tooling/ToolingTest.cpp
Commit 76656ec8ec535bd17afc998112a83c7c55ad7719 by chen3.liu
[X86][FP16] Combine the FADD(A, FMA(B, C, 0)) to FMA(B, C, A)

This patch is to support transform something like
_mm512_add_ph(acc, _mm512_fmadd_pch(a, b, _mm512_setzero_ph()))
to _mm512_fmadd_pch(a, b, acc).

Differential Revision: https://reviews.llvm.org/D109953
The file was addedllvm/test/CodeGen/X86/avx512fp16-combine-vfmac-fadd.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 08ef24f6abdfaee038c47e3fe0b61b40e8fd9053 by sylvestre
Wrap xar/xar.h include in extern "C" block

Without such wrapping, linking lld fails with missing symbols because of
C++ symbol mangling with older versions of the MacOSX SDK, in which
xar.h doesn't have an extern "C" block itself.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D110224
The file was modifiedlld/MachO/SyntheticSections.cpp
Commit 1f3f144446d1766b6bd63ac02a064450c4fa5e55 by shivam98.tkg
[NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG

Current warning message in method `addAffineForOpDomain` of mlir/lib/Analysis/AffineStructures.cpp is being printed to the stdout/stderr.
This patch redirects the warning with LLVM_DEBUG following standard llvm practice.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D108340
The file was modifiedmlir/lib/Analysis/AffineStructures.cpp
Commit 4223195de3eaaa9c221d1f178899f221be6264c5 by zeratul976
[clangd] Ensure lambda init-capture gets semantic token

Prior to this patch, CollectExtraHighlightings would incorrectly produce
a token for the init-capture's type which overlapped the name and
resulted in both being dropped.

Fixes https://github.com/clangd/clangd/issues/868

Differential Revision: https://reviews.llvm.org/D110130
The file was modifiedclang-tools-extra/clangd/SemanticHighlighting.cpp
The file was modifiedclang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
Commit c5e0313e4489cb3130f441685fd4207eeee6aa48 by bjorn.a.pettersson
[ModuleInlinerWrapperPass] Do some naive printing of wrapped pipeline with -print-pipeline-passes

Bisecting and reducing opt pipelines that includes the
ModuleInlinerWrapperPass has turned out to be a bit problematic.
This is far from perfect (it still lacks information about inline
advisor params etc.), but it should give some kind of hint to what
the wrapped pipeline looks like when using -print-pipeline-passes.

Reviewed By: aeubanks, mtrofin

Differential Revision: https://reviews.llvm.org/D109878
The file was modifiedllvm/lib/Transforms/IPO/Inliner.cpp
The file was modifiedllvm/test/Other/new-pm-print-pipeline.ll
The file was modifiedllvm/include/llvm/Transforms/IPO/Inliner.h
Commit c3ae8ecb520e6565594272d12e447e295ce09c9b by bjorn.a.pettersson
[DAGCombiner] Rename isAlias as mayAlias. NFC

Differential Revision: https://reviews.llvm.org/D110062
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Commit 6cef28ed2df19c197790ca777423fc1c2572c138 by jay.foad
[TII] Remove the MFI argument to convertToThreeAddress. NFC.

This simplifies the API and addresses a FIXME in
TwoAddressInstructionPass::convertInstTo3Addr.

Differential Revision: https://reviews.llvm.org/D110229
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.h
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.cpp
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.h
The file was modifiedllvm/lib/Target/ARM/ARMBaseInstrInfo.h
The file was modifiedllvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.cpp
The file was modifiedllvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
The file was modifiedllvm/lib/CodeGen/TwoAddressInstructionPass.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIFoldOperands.cpp
The file was modifiedllvm/include/llvm/CodeGen/TargetInstrInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.cpp
The file was modifiedllvm/lib/Target/SystemZ/SystemZInstrInfo.h
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.h
The file was modifiedllvm/lib/Target/X86/X86FixupLEAs.cpp
Commit 5e28c892d06f95600f8b6290ad4de38bfe142637 by phosek
[Driver] Correctly handle static C++ standard library

When statically linking C++ standard library, we shouldn't add -Bdynamic
after including the library on the link line because that might override
user settings like -static and -static-pie. Rather, we should surround
the library with --push-state/--pop-state to make sure that -Bstatic
only applies to C++ standard library and nothing else. This has been
supported since GNU ld 2.25 (2014) so backwards compatibility should
no longer be a concern.

Differential Revision: https://reviews.llvm.org/D110128
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/test/Driver/linux-ld.c
The file was modifiedclang/test/Driver/fuchsia.cpp
Commit 904ca7d2ed97bf114fd11373c722acd1e54bfaa3 by phosek
Revert "[Driver] Correctly handle static C++ standard library"

This reverts commit 5e28c892d06f95600f8b6290ad4de38bfe142637 as
the linker on the clang-ppc64le-rhel bot doesn't seem to support
--push-state/--pop-state.
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/test/Driver/fuchsia.cpp
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedclang/test/Driver/linux-ld.c
Commit 8b87c3d5736730cda1d8856098621029b759f3d1 by andre.simoesdiasvieira
[libc] Add optimized memset for AArch64

Differential Revision: https://reviews.llvm.org/D107848
The file was modifiedlibc/src/string/CMakeLists.txt
The file was addedlibc/src/string/aarch64/memset.cpp
The file was modifiedlibc/src/string/memory_utils/elements_aarch64.h
Commit 05663dc14644d12d688155d55ba267e7b7e69817 by Alexander.Richardson
[InstSimplify] Don't lose inbounds when simplifying a GEP

I noticed this while working on a (ptrtoint (gep null, x)) -> x fold.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D110168
The file was modifiedllvm/include/llvm/Analysis/InstructionSimplify.h
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/lib/Transforms/Scalar/NewGVN.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstructionCombining.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/simplify-nested-bitcast.ll
The file was modifiedllvm/lib/Analysis/PHITransAddr.cpp
Commit af8b14c278c2cb5309562b6e3fa55333c2889d86 by dvyukov
tsan: remove unnecessary enum values (NFC)

Remove unnecessary enum values in the memory profiler.
There is no point in spelling them, it can only lead to bugs
and larger diffs when values are added/removed.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110263
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
Commit 356ecd9bd1c5c10ff776dced80f353839fafb354 by dvyukov
tsan: remove DontDumpShadow from Go build

DontDumpShadow is used only in InitializeShadowMemory which is Go-only.

Depends on D110263.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110264
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
Commit dcc6db22d8508a85ecd2b8bdcc5ae5646968c083 by dvyukov
tsan: add another deep stack test

Add a test for a trace corner case that lead to a bug
in experimental runtime replacement.
Since it passes with the current runtime it makes sense
to submit it on its own.

Depends on D110264.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110265
The file was addedcompiler-rt/test/tsan/deep_stack2.cpp
Commit 20d3e518010a2a4fa1f4cdc9b7b885f13966a19c by dvyukov
tsan: use RawShadow instead of u64 more

Fix few remaining cases where we use u64 instead of the new RawShadow type.

Depends on D110265.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110266
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
Commit 702cb7afe9de21b9a86d012cdd0b283496e619af by dvyukov
tsan: move shadow declaration into a separate header file (NFC)

tsan_rtl.h is very huge and contains too many things.
Move FastState and Shadow types into a new tsan_shadow.h file.
This also allows to use FastState/Shadow in other header files
without creating circular dependencies (which most likely will
happen today).

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110272
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_rtl.h
The file was addedcompiler-rt/lib/tsan/rtl/tsan_shadow.h
The file was modifiedcompiler-rt/lib/tsan/CMakeLists.txt
Commit ce59ccd04023cab3a837da14079ca2dcbfebb70c by clementval
[fir][NFC] inline trival isa_<type> functions

This patch is part of the upstreaming effort from fir-dev branch and sync changes. Inline trival `isa_<type>` functions.

Co-authored-by: schweitzpgi

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D110233
The file was modifiedflang/lib/Optimizer/Dialect/FIRType.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRType.h
Commit e7c879a69d6b61f35969936a9efd46bcfbf80ca0 by fraser
[RISCV][VP] Add support for VP_REDUCE_* operations

This patch adds codegen support for lowering the vector-predicated
reduction intrinsics to RVV instructions. The process is similar to that
of the other reduction intrinsics, save for the fact that every VP
reduction has a start value. We reuse the existing custom "VL" nodes,
adding extra patterns where required to handle non-true masks.

To support these nodes, the `RISCVISD::VECREDUCE_*_VL` nodes have been
given an explicit "merge" operand. This is to faciliate the VP
reductions, where we must be careful to ensure that even if no operation
is performed (when VL=0) we still produce the start value. The RVV
reductions don't update the destination register under these conditions,
so we tie the splatted start value to the output register.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D107657
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp-vp.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
The file was addedllvm/test/CodeGen/RISCV/rvv/vreductions-mask-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/vreductions-fp-vp.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int-vp.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-mask-vp.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.h
The file was addedllvm/test/CodeGen/RISCV/rvv/vreductions-int-vp.ll
Commit 5685eb950da7c6901c8b264a3c93e8ea63b34d3d by pavel
[lldb] Fix DomainSocket::GetSocketName for unnamed sockets

getpeername will return addrlen = 2 (sizeof sa_family_t) for unnamed
sockets (those not assigned a name with bind(2)). This is typically true
for client sockets as well as those created by socketpair(2).

This GetSocketName used to crash for sockets which were connected to
these kinds of sockets. Now it returns an empty string.
The file was modifiedlldb/source/Host/posix/DomainSocket.cpp
The file was modifiedlldb/unittests/Host/SocketTest.cpp