Changes

Summary

  1. Fix Wdocumentation warnings. NFCI. (details)
  2. [MLIR] PresbugerSet: slightly expand documentation (details)
  3. Make multiversioning work with internal linkage (details)
  4. [X86] X86PreTileConfig - Use const-ref iterator in for-range loop. NFCI. (details)
  5. [TableGen] X86EVEX2VEXTablesEmitter - Use const-ref iterator in for-range loop. NFCI. (details)
  6. [CodeGen] LiveDebug - Use const-ref iterator in for-range loop. NFCI. (details)
  7. [DebugInfo] DWARF - Use const-ref iterator in for-range loop. NFCI. (details)
  8. [OpenCL] Supports optional same image reads and writes in C++ for OpenCL 2021 (details)
  9. Fix test failure from e3b10525b489b604d6a1e540be78bda80afb5868 (details)
  10. [NFC] Added testcase for PR25725 (details)
  11. [flang][OpenMP] Add semantic checks for ordered construct (details)
  12. [HWASan] Intercept setjmp/longjmp on x86_64. (details)
  13. Fix CodeGen/pgo-sample-thinlto-summary.c with old PM (details)
Commit 77f6c0bcaa267541886b5e025cde16ff5bf8dec4 by llvm-dev
Fix Wdocumentation warnings. NFCI.

Fix parameter name typos and drop returns statements from void functions
The file was modifiedllvm/include/llvm/Analysis/IRSimilarityIdentifier.h
The file was modifiedllvm/lib/Transforms/IPO/IROutliner.cpp
Commit 58719f61535e8c585ebeb96e6f7c340bbf1f769c by arjunpitchanathan
[MLIR] PresbugerSet: slightly expand documentation
The file was modifiedmlir/lib/Analysis/PresburgerSet.cpp
Commit e3b10525b489b604d6a1e540be78bda80afb5868 by erich.keane
Make multiversioning work with internal linkage

We previously made all multiversioning resolvers/ifuncs have weak
ODR linkage in IR, since we NEED to emit the whole resolver every time
we see a call, but it is not necessarily the place where all the
definitions live.

HOWEVER, when doing so, we neglected the case where the versions have
internal linkage.  This patch ensures we do this, so you don't get weird
behavior with static functions.
The file was addedclang/test/CodeGenCXX/multi-versioning-internal-linkage.cpp
The file was modifiedclang/test/CodeGen/unique-internal-linkage-names.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
Commit db23f27786d9cea6f3d947d877b6b3a301e795ea by llvm-dev
[X86] X86PreTileConfig - Use const-ref iterator in for-range loop. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.
The file was modifiedllvm/lib/Target/X86/X86PreTileConfig.cpp
Commit bbebb564f9316fd37605eb92028d15f9e005d212 by llvm-dev
[TableGen] X86EVEX2VEXTablesEmitter - Use const-ref iterator in for-range loop. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.
The file was modifiedllvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
Commit 4af76434706a65d839ff167d98455d0704cad70b by llvm-dev
[CodeGen] LiveDebug - Use const-ref iterator in for-range loop. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.
The file was modifiedllvm/lib/CodeGen/LiveDebugVariables.cpp
The file was modifiedllvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
Commit 72e57862818c92617e22595923cb0a2ed49d603c by llvm-dev
[DebugInfo] DWARF - Use const-ref iterator in for-range loop. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
Commit b7e9d203c6793873f72dd3ffaf7c9365ce03007e by Justas.Janickas
[OpenCL] Supports optional same image reads and writes in C++ for OpenCL 2021

Adds support for a feature macro `__opencl_c_read_write_images` in
C++ for OpenCL 2021 enabling a respective optional core feature
from OpenCL 3.0.

This change aims to achieve compatibility between C++ for OpenCL
2021 and OpenCL 3.0.

Differential Revision: https://reviews.llvm.org/D109307
The file was modifiedclang/test/SemaOpenCL/access-qualifier.cl
The file was modifiedclang/test/Misc/opencl-c-3.0.incorrect_options.cl
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
Commit 197a3d183b8b2a8452d816a1b0fcfc1093ef76ab by erich.keane
Fix test failure from e3b10525b489b604d6a1e540be78bda80afb5868

Seemingly, names in anonymous namespaces are ALWAYS given the unique
internal linkage name on windows, and I was not aware of this when I put
the names in my test!  Replaced them with a wildcard.
The file was modifiedclang/test/CodeGenCXX/multi-versioning-internal-linkage.cpp
Commit ff6b074674f063295c4aadda394feb032449d86e by Dávid Bolvanský
[NFC] Added testcase for PR25725
The file was addedllvm/test/CodeGen/X86/pr25725.ll
Commit 6fb01a94708ffcd0aed63d0697d4ca08ed937dff by qiaopeixin
[flang][OpenMP] Add semantic checks for ordered construct

This patch implements the following semantic checks according to
OpenMP Version 5.1 Ordered construct restriction:

```
At most one threads clause can appear on an ordered construct; At most
one simd clause can appear on an ordered construct; At most one
depend(source) clause can appear on an ordered construct; Either
depend(sink:vec) clauses or depend(source) clauses may appear on an
ordered construct, but not both.
```

This patch also implements the following semantic checks according to
the syntax and descriptions in OpenMP Version 5.1 Ordered construct:

```
The dependence types of sink or source are only allowed on an ordered
construct. The depend(*) clauses are not allowed when ordered construct
is a block construct with an ordered region. The threads or simd clauses
are not allowed when the ordered construct is a standalone construct
with no ordered region.
```

Co-authored-by: Sameeran Joshi <sameeranjayant.joshi@amd.com>

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D108512
The file was modifiedflang/lib/Semantics/resolve-directives.cpp
The file was modifiedflang/test/Semantics/omp-clause-validity01.f90
The file was addedflang/test/Semantics/omp-ordered01.f90
The file was modifiedflang/lib/Semantics/check-omp-structure.cpp
The file was modifiedflang/lib/Semantics/check-omp-structure.h
The file was modifiedllvm/include/llvm/Frontend/OpenMP/OMP.td
Commit 750d5fc65c92aaf9878d78d0c66947a3e7d76202 by mascasa
[HWASan] Intercept setjmp/longjmp on x86_64.

Reviewed By: xiangzhangllvm

Differential Revision: https://reviews.llvm.org/D109790
The file was modifiedcompiler-rt/test/hwasan/TestCases/longjmp-setjmp-interception.c
The file was modifiedcompiler-rt/lib/hwasan/hwasan.h
The file was modifiedcompiler-rt/lib/hwasan/CMakeLists.txt
The file was modifiedcompiler-rt/lib/hwasan/hwasan_type_test.cpp
The file was addedcompiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
The file was removedcompiler-rt/lib/hwasan/hwasan_setjmp.S
The file was modifiedcompiler-rt/lib/hwasan/hwasan_interceptors.cpp
The file was addedcompiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S
Commit 8a7a28075b7fa70d56b131c10a4d1add777d5830 by thomasp
Fix CodeGen/pgo-sample-thinlto-summary.c with old PM

Re-add -fexperimental-new-pass-manager to
Clang::CodeGen/pgo-sample-thinlto-summary.c for the test to work on
builds that still default to the old pass manager.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D109956
The file was modifiedclang/test/CodeGen/pgo-sample-thinlto-summary.c