SuccessChanges

Summary

  1. [OpenMP] Ensure testing for versions 4.5 and default - Part 1 (details)
  2. [Parser] Suppress -Wempty-translation-unit if this is a header file (details)
  3. [flang] Compilation fix. (details)
  4. [SyntaxTree] Split tests for expressions (details)
  5. [SyntaxTree] Rename tests following `TestSuite_TestCase` + nits (details)
  6. [compiler-rt][asan][test] Skipt sanitizer_common tests on Sparc (details)
  7. [AMDGPU] Fix typo. NFC (details)
  8. [test] XFAIL two tests with inlining debug info issues on Sparc (details)
  9. [InstCombine] Precommit tests for PR47149. (details)
Commit eaa341fbea961894759355256d25d785509002ef by Saiyedul.Islam
[OpenMP] Ensure testing for versions 4.5 and default - Part 1

Many OpenMP Clang tests do not RUN for version 4.5 and the default
version. This first patch in the series only handles test cases
which do not require any modifications in the CHECK lines after
adding RUN lines for default version.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D84844
The file was modifiedclang/test/OpenMP/cancel_codegen_cleanup.cpp
The file was modifiedclang/test/OpenMP/target_parallel_num_threads_codegen.cpp
The file was modifiedclang/test/OpenMP/task_if_codegen.cpp
The file was modifiedclang/test/OpenMP/cancel_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_if_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_if_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_enter_data_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_if_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_num_threads_codegen.cpp
The file was modifiedclang/test/OpenMP/target_enter_data_ast_print.cpp
The file was modifiedclang/test/OpenMP/cancel_if_messages.cpp
The file was modifiedclang/test/OpenMP/task_if_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_reduction_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_if_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_if_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_sections_if_messages.cpp
The file was modifiedclang/test/OpenMP/report_default_DSA.cpp
The file was modifiedclang/test/OpenMP/target_exit_data_if_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_num_threads_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_if_messages.cpp
The file was modifiedclang/test/OpenMP/cancel_ast_print.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/capturing_in_templates.cpp
The file was modifiedclang/test/OpenMP/target_teams_thread_limit_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_num_teams_codegen.cpp
The file was modifiedclang/test/OpenMP/target_update_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_exit_data_ast_print.cpp
The file was modifiedclang/test/OpenMP/parallel_default_messages.cpp
The file was modifiedclang/test/OpenMP/target_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_if_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_num_threads_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_for_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_if_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_master_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_requires_unified_shared_memory.cpp
Commit c286d6fdeeb2b103777d3ae8c9de84937cb51efe by sam.mccall
[Parser] Suppress -Wempty-translation-unit if this is a header file

This is motivated by tooling (clangd, libclang etc) - headers without
declarations are legitimate even if they're not valid TUs.

The other use -x c-header cases (PCH/modules) are nonstandard anyway and this
warning doesn't seem necessary there either.

Differential Revision: https://reviews.llvm.org/D85789
The file was modifiedclang/test/Parser/empty-translation-unit.c
The file was modifiedclang/lib/Parse/Parser.cpp
Commit 8199cd8a550dab8f9b4035d34b7e576892daab09 by llvm-project
[flang] Compilation fix.

unlink() was changed to llvm::sys::fs::remove() in f18.cpp, but the same
change also has to be applied to f18-parse-demo.cpp.
The file was modifiedflang/tools/f18-parse-demo/f18-parse-demo.cpp
Commit d1211fd1ec037f88c2cc855bc850200948c76940 by ecaldas
[SyntaxTree] Split tests for expressions

We do that because:
* Big tests generated big tree dumps that could hardly serve as documentation.
* In most cases the tests didn't share setup, thus there was not much addition in lines of code.

We split tests for:
* `UserDefinedLiteral`
* `NestedBinaryOperator`
* `UserDefinedBinaryOperator`
* `UserDefinedPrefixOperator`
* `QualifiedId`

Differential Revision: https://reviews.llvm.org/D85819
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 833c2b6be26bcdf90aac2f6de6e345bcd858149e by ecaldas
[SyntaxTree] Rename tests following `TestSuite_TestCase` + nits
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 55e472e9dab68c0cb21a65237c5240dfe6105c01 by ro
[compiler-rt][asan][test] Skipt sanitizer_common tests on Sparc

When building on `sparc64-unknown-linux-gnu`, I found that a large number
of `SanitizerCommon-asan-sparc*-Linux` tests were `FAIL`ing, like

   SanitizerCommon-asan-sparc-Linux :: Linux/aligned_alloc-alignment.cpp
  [...]
   SanitizerCommon-asan-sparcv9-Linux :: Linux/aligned_alloc-alignment.cpp
  [...]

many of them due to

  fatal error: error in backend: Function "_Z14User_OnSIGSEGViP9siginfo_tPv": over-aligned dynamic alloca not supported.

which breaks ASan on Sparc.  Currently ASan is only built for the benefit
of `gcc` where it does work.  However, when enabling the compilation in
`compiler-rt` to make certain it continues to build, I missed
`compiler-rt/test/sanitizer_common` when disabling ASan testing on Sparc
(it's not yet enabled on Solaris).

This patch fixes the issue.

Tested on `sparcv9-sun-solaris2.11` with the `sanitizer_comon` testsuite enabled.

Differential Revision: https://reviews.llvm.org/D85732
The file was modifiedcompiler-rt/test/sanitizer_common/CMakeLists.txt
Commit ca227d73e10a99ab1563830eca17b6e8e0a71eae by sebastian.neubauer
[AMDGPU] Fix typo. NFC
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit 7af4bbb643393a735b1b49d1b9c4f316a4834333 by ro
[test] XFAIL two tests with inlining debug info issues on Sparc

Currently only two test failures remain on Sparc, both
`sparcv9-sun-solaris2.11` and `sparc64-unknown-linux-gnu`:

  LLVM :: DebugInfo/Generic/debug-label-inline.ll
  LLVM :: Linker/subprogram-linkonce-weak.ll

They seem related in that debug info isn't generated for instruction
bundles (like `retl+add` in the delay slot).

I've filed separate bugs for both files (Bug 47129 and 47131), though it's
probably the same issue.

This patch `XFAIL`s the tests.

Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D85827
The file was modifiedllvm/test/DebugInfo/Generic/debug-label-inline.ll
The file was modifiedllvm/test/Linker/subprogram-linkonce-weak.ll
Commit 3948341fa5fab2695b0df95edc248fe959e40664 by flo
[InstCombine] Precommit tests for PR47149.
The file was modifiedllvm/test/Transforms/InstCombine/strlen-1.ll