Progress:
In progressChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. Reland [clangd] clangd --check: standalone diagnosis of common problems (details)
  2. [gn build] Port f6b1323bc68 (details)
  3. [AMDGPU] Simplify getNumFlatOffsetBits. NFC. (details)
  4. [flang][openacc] Fix unparsing of combined construct (bug 47659) (details)
  5. [libc++][ci] Add a configuration testing Apple's system library build (details)
  6. [ARM] Removed hasSideEffects from signed/unsigned saturates (details)
  7. [clang][opencl][codegen] Remove the insertion of `correctly-rounded-divide-sqrt-fp-math` fn-attr. (details)
  8. [InstCombine] collectBitParts - convert to use PatterMatch matchers and avoid IntegerType casts. (details)
  9. [AArch64] Remove a duplicate call to setHasWinCFI. NFCI. (details)
  10. [AArch64] Don't merge sp decrement into later stores when using WinCFI (details)
  11. [clangd] Split DecisionForest Evaluate() into one func per tree. (details)
  12. Reland  rG4fcd1a8e6528:[llvm-exegesis] Add option to check the hardware support for a given feature before benchmarking. (details)
  13. [mlir][Linalg] NFC : Move fusion on tensors to separate file. (details)
  14. [runtimes] Remove TOOLCHAIN_TOOLS specialization (details)
  15. [NFC] Let (MC)Register APIs check isStackSlot (details)
  16. [flang] Add checks for misuse of formatted I/O APIs in unformatted I/O statement (details)
  17. Allow to specify macro names for android-comparison-in-temp-failure-retry (details)
  18. [flang] Fix INQUIRE of access and formatting possibilities (details)
Commit f6b1323bc680812e04904293854c356530985bcd by sam.mccall
Reland [clangd] clangd --check: standalone diagnosis of common problems

This reverts commit 30d07b14a274f075a01d201ad59723ca1a4a9b57.

Test failures have (hopefully) been fixed.
The file was modifiedclang-tools-extra/clangd/tool/ClangdMain.cpp
The file was addedclang-tools-extra/clangd/tool/Check.cpp
The file was modifiedclang-tools-extra/clangd/tool/CMakeLists.txt
The file was addedclang-tools-extra/clangd/test/check-fail.test
The file was addedclang-tools-extra/clangd/test/check.test
Commit 56d8a37216200a3312db277e4cf054b202b39ace by llvmgnsyncbot
[gn build] Port f6b1323bc68
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/tool/BUILD.gn
Commit e20f4592297ba44644a8ec75b9d182a903cc0df3 by jay.foad
[AMDGPU] Simplify getNumFlatOffsetBits. NFC.

Remove some checks that have already been done in the only caller.
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Commit 91b49fc2571c3d0ac33d447629cfb7789a7fde0d by clementval
[flang][openacc] Fix unparsing of combined construct (bug 47659)

This patch fixes the bug report in https://bugs.llvm.org/show_bug.cgi?id=47659

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D88597
The file was addedflang/test/Parser/acc-unparse.f90
The file was modifiedflang/lib/Parser/unparse.cpp
Commit 79410ddb96d42b72b5a7081fd680a28ae760fd51 by Louis Dionne
[libc++][ci] Add a configuration testing Apple's system library build

Differential Revision: https://reviews.llvm.org/D88650
The file was modifiedlibcxx/utils/ci/buildkite-pipeline.yml
The file was modifiedlibcxx/utils/ci/run-buildbot.sh
Commit 48c9e8244b6b8aeb6a4fd10dcf4c6995f1fec9a0 by meera.nakrani
[ARM] Removed hasSideEffects from signed/unsigned saturates

Removed hasSideEffects from SSAT and USAT so that they are no longer
marked as unpredictable.

Differential Revision: https://reviews.llvm.org/D88545
The file was modifiedllvm/lib/Target/ARM/ARMInstrThumb2.td
The file was modifiedllvm/test/tools/llvm-mca/ARM/m4-int.s
Commit 8c36eaf0377285acb89c319582d9666e60f42007 by michael.hliao
[clang][opencl][codegen] Remove the insertion of `correctly-rounded-divide-sqrt-fp-math` fn-attr.

- `-cl-fp32-correctly-rounded-divide-sqrt` is already handled in a
  per-instruction manner by annotating the accuracy required. There's no
  need to add that fn-attr. So far, there's no in-tree backend handling
  that attr and that OpenCL specific option.
- In case that out-of-tree backends are broken, this change could be
  reverted if those backends could not be fixed.

Differential Revision: https://reviews.llvm.org/D88424
The file was modifiedclang/test/CodeGenOpenCL/fpmath.cl
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was modifiedclang/test/CodeGenOpenCL/amdgpu-attrs.cl
Commit 29ac9fae54c9cbd819ce400d42dd2e76bf5259ab by llvm-dev
[InstCombine] collectBitParts - convert to use PatterMatch matchers and avoid IntegerType casts.

Make sure we're using getScalarSizeInBits instead of cast<IntegerType> to get Type bit widths.

This is preliminary cleanup before we can start adding vector support to the bswap/bitreverse (element level) matching.
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
Commit 51e74e21aae8b4e885e23d3f15922a58bc173c34 by martin
[AArch64] Remove a duplicate call to setHasWinCFI. NFCI.

The function already has a cleanup scope that calls the same whenever
the function is exited. When reading the code, seeing that this return
codepath has an explicit call while other return paths lack it is
confusing.

In the hypothetical case of a function having a prologue that
set the HasWinCFI flag in the MF, but the epilogue containing no
WinCFI instructions, the HasWinCFI flag in the MF would end up reset back
to false.

Differential Revision: https://reviews.llvm.org/D88636
The file was modifiedllvm/lib/Target/AArch64/AArch64FrameLowering.cpp
Commit f4b9dfd9bc414a316d997a314b05ac7f9258a722 by martin
[AArch64] Don't merge sp decrement into later stores when using WinCFI

This matches the corresponding existing case in
AArch64LoadStoreOpt::findMatchingUpdateInsnForward.

Both cases could also be modified to check
MBBI->getFlag(FrameSetup/FrameDestroy) instead of forbidding any
optimization involving SP, but the effect is probably pretty much
the same.

Differential Revision: https://reviews.llvm.org/D88541
The file was modifiedllvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
The file was modifiedllvm/test/CodeGen/AArch64/arm64-windows-calls.ll
Commit 45698ac0052ae5b1c5beb739636396a5b7263966 by usx
[clangd] Split DecisionForest Evaluate() into one func per tree.

This allows us MSAN to instrument this function. Previous version is not
instrumentable due to it shear volume.

Differential Revision: https://reviews.llvm.org/D88536
The file was modifiedclang-tools-extra/clangd/quality/CompletionModelCodegen.py
Commit cb3fd715f324ff0f58dfeb7d08a88a05477cb0d5 by vyng
Reland  rG4fcd1a8e6528:[llvm-exegesis] Add option to check the hardware support for a given feature before benchmarking.

This is mostly for the benefit of the LBR latency mode.
Right now, it performs no checking. If this is run on non-supported hardware, it will produce all zeroes for latency.

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

New change: Updated lit.local.cfg to use pass the right argument to llvm-exegesis to actually request the LBR mode.

Differential Revision: https://reviews.llvm.org/D88670
The file was modifiedllvm/tools/llvm-exegesis/lib/Target.h
The file was modifiedllvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp
The file was modifiedllvm/tools/llvm-exegesis/llvm-exegesis.cpp
The file was modifiedllvm/tools/llvm-exegesis/lib/X86/Target.cpp
The file was modifiedllvm/test/tools/llvm-exegesis/X86/lbr/lit.local.cfg
The file was modifiedllvm/tools/llvm-exegesis/lib/X86/X86Counter.h
Commit c6ea095b9756dff035aed27e7b5b44bf42d22462 by ravishankarm
[mlir][Linalg] NFC : Move fusion on tensors to separate file.

Differential Revision: https://reviews.llvm.org/D88633
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was addedmlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
Commit dcb5b6dfbfb5dafb66797e8dba2f04eb76a153b7 by smeenai
[runtimes] Remove TOOLCHAIN_TOOLS specialization

https://reviews.llvm.org/D88310 fixed the AIX issue in LLVMExternalProjectUtils,
so we shouldn't need the workaround in the runtimes build anymore. I'm
reverting it because it prevents the target-specific tool selection in
LLVMExternalProjectUtils from taking effect, which we rely on for our
runtimes builds.

Reviewed By: daltenty

Differential Revision: https://reviews.llvm.org/D88627
The file was modifiedllvm/runtimes/CMakeLists.txt
Commit 17640c5aac649c154959ca1075953f0d252a4a5b by mtrofin
[NFC] Let (MC)Register APIs check isStackSlot

The user is expected to make the isStackSlot check before calling isPhysicalRegister
or isVirtualRegister. The APIs assert otherwise. We can improve the usability
of these APIs by carrying out the check in the 2 APIs: they become a
complete "source of truth" and remove an extra responsibility from the
user.

Differential Revision: https://reviews.llvm.org/D88598
The file was modifiedllvm/include/llvm/CodeGen/Register.h
The file was modifiedllvm/include/llvm/MC/MCRegister.h
Commit cdfb95ad580fbf366a9bffc5082df22e9d2b5fa3 by pklausler
[flang] Add checks for misuse of formatted I/O APIs in unformatted I/O statement

Add checking to I/O statement APIs to catch cases where the formatted
I/O data item transfer routines like OutputInteger64 are being
incorrectly used for unformatted I/O, which should use the
unformatted block or descriptor-based data item interfaces.

Differential revision: https://reviews.llvm.org/D88672
The file was modifiedflang/runtime/unit.cpp
The file was modifiedflang/runtime/io-stmt.h
The file was modifiedflang/runtime/io-api.h
The file was modifiedflang/runtime/type-code.cpp
The file was modifiedflang/runtime/io-api.cpp
Commit 9d40fb808fd0fbd33eb3b50c20d7f402de5db91e by George Burgess IV
Allow to specify macro names for android-comparison-in-temp-failure-retry

Some projects do not use the TEMP_FAILURE_RETRY macro but define their
own one, as not to depend on glibc / Bionic details. By allowing the
user to override the list of macros, these projects can also benefit
from this check.

Differential Revision: https://reviews.llvm.org/D83144
The file was addedclang-tools-extra/test/clang-tidy/checkers/android-comparison-in-temp-failure-retry-custom-macro.c
The file was modifiedclang-tools-extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.h
The file was modifiedclang-tools-extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.cpp
The file was modifiedclang-tools-extra/docs/clang-tidy/checks/android-comparison-in-temp-failure-retry.rst
Commit df6de2222c66c5a1c62da0b10c35de432ddc270a by pklausler
[flang] Fix INQUIRE of access and formatting possibilities

Don't give false positives from INQUIRE about possible
access mode changes on connected units.  DIRECT and SEQUENTIAL
cannot be intermixed, apart from allowing DIRECT on a SEQUENTIAL
file with fixed-size records and positioning.  Nor can
FORMATTED and UNFORMATTED be interchanged.  On unconnected
files, the best that we can do is "UNKNOWN".

Differential revision: https://reviews.llvm.org/D88673
The file was modifiedflang/runtime/io-stmt.cpp