Changes

Summary

  1. [OpenMP][NFC] Clang format OMPIRBuilder (details)
  2. [OpenMP][NFC] Improve debug output (details)
  3. [OpenMP][NFC] Precommit test that exposes a bug in our optnone handling (details)
  4. [OpenMP][NFC] Rerun the test check update script on all OpenMP-Opt tests (details)
  5. [OpenMP][NFC] Repair test that contained nested kernels (details)
  6. [OpenMP][FIX] Be more deliberate about invalidating the AAKernelInfo state (details)
  7. [libc++][spaceship] Implement std::pair::operator<=> (details)
  8. [AMDGPU] Fix gcc warnings about unused variables [NFC] (details)
  9. [mlir] Fix build on Windows on Arm (details)
  10. [clang][tooling] NFC: Refactor command-line diagnostic tests (details)
  11. [X86][FP16] Combine the FADD(A, FMA(B, C, 0)) to FMA(B, C, A) (details)
  12. Wrap xar/xar.h include in extern "C" block (details)
  13. [NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG (details)
  14. [clangd] Ensure lambda init-capture gets semantic token (details)
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/dead_use.ll
The file was modifiedllvm/test/Transforms/OpenMP/icv_tracking.ll
The file was modifiedllvm/test/Transforms/OpenMP/deduplication.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 modifiedlibcxx/include/CMakeLists.txt
The file was addedlibcxx/test/std/utilities/utility/pairs/pairs.spec/three_way_comparison.pass.cpp
The file was modifiedlibcxx/include/module.modulemap
The file was modifiedlibcxx/include/__utility/pair.h
The file was addedlibcxx/include/__compare/synth_three_way.h
The file was modifiedlibcxx/docs/Status/SpaceshipProjects.csv
The file was addedlibcxx/test/libcxx/library/description/conventions/expos.only.func/synth_three_way.pass.cpp
The file was modifiedlibcxx/include/utility
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