SuccessChanges

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

Summary

  1. [LoopIdiom] Regenerate test checks; NFC (details)
  2. [Sanitizers] Remove OpenBSD support (details)
  3. [DSE] Add tests for elimination at end of function with lifetime. (details)
  4. [AA] Add helper to update result (NFC) (details)
  5. [TableGen] Change Programmer's Reference to use "DAG argument" rather than "operand". (details)
  6. [DSE] Do not consider 'noop' intrinsics as read-clobbers. (details)
  7. [clang tidy] Fix SIMDIntrinsicsCheck not storing options (details)
  8. [nfc] [lldb] [testsuite] Fix DW_FORM_ref* in DW_AT_declaration-with-children.s . (details)
  9. [NFC][clang-tidy] Use isInStdNamespace matcher instead of check defined alternatives (details)
  10. [ASAN] Restore and adjust tests (details)
  11. [gn build] (manually) port d09b08919ca (details)
  12. [BasicAA] Accept AATags by const reference (NFC) (details)
  13. [test][NFC] Do ptrdiff_t comparison with signed instead of unsigned constants (details)
  14. Fix various format specifier mismatches (details)
  15. [PowerPC][AIX] Make `__vector [un]signed long` an error (details)
  16. [NFC] Make non-modifying members const. (details)
  17. [libc++] Fix aligned_alloc tests FreeBSD (details)
  18. [clang-format] Add a SpaceAroundPointerQualifiers style option (details)
  19. [libc++][dsl] Run checks for locale names aliases using a single %exec (details)
  20. [X86] Add test cases for PR47874. NFC (details)
  21. [mlir] Add canonicalization for cond_br that feed into a cond_br on the same condition (details)
  22. PR47870: Properly mangle placeholders for deduced class template (details)
  23. PR47893: Synthesis of a comparison operator from an 'operator<=>' (details)
Commit 935cb12280ffa9121339df62018de3a1ced56676 by Dávid Bolvanský
[LoopIdiom] Regenerate test checks; NFC
The file was modifiedllvm/test/Transforms/LoopIdiom/basic.ll
Commit d09b08919ca6e206cd981fdea8b19b1d1188e325 by David CARLIER
[Sanitizers] Remove OpenBSD support

- Removing unused and unusable code.

Reviewers: krytarowski

Reviewed By: krytarowski

Differential Revision: https://reviews.llvm.org/D89640
The file was modifiedcompiler-rt/cmake/base-config-ix.cmake
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_errno.h
The file was modifiedcompiler-rt/lib/asan/tests/asan_mem_test.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
The file was modifiedcompiler-rt/cmake/config-ix.cmake
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform.h
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
The file was modifiedcompiler-rt/lib/interception/interception_linux.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp
The file was modifiedcompiler-rt/lib/xray/xray_basic_logging.cpp
The file was modifiedcompiler-rt/lib/ubsan/ubsan_platform.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_linux.h
The file was modifiedcompiler-rt/lib/fuzzer/afl/afl_driver.cpp
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_openbsd.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_posix.h
The file was modifiedcompiler-rt/lib/sanitizer_common/CMakeLists.txt
The file was modifiedcompiler-rt/lib/interception/interception.h
The file was modifiedcompiler-rt/lib/interception/interception_linux.h
The file was modifiedcompiler-rt/lib/tsan/go/buildgo.sh
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerPlatform.h
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
The file was modifiedcompiler-rt/lib/xray/xray_x86_64.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Commit b86595c93f66c1b58b13b0f2385901cae88ac7e5 by flo
[DSE] Add tests for elimination at end of function with lifetime.
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll
Commit f9172d3c7b2af5e5712ea330a06e33e9c1ced051 by nikita.ppv
[AA] Add helper to update result (NFC)

This pattern was repeated a few times, and for some reason always
using insert or try_emplace, even though we know in advance that
we're looking for an existing entry and not trying to create a
new one.
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp
The file was modifiedllvm/include/llvm/Analysis/AliasAnalysis.h
Commit a90f742dd8ad000daf2108ec88e5bf373405ce39 by paul
[TableGen] Change Programmer's Reference to use "DAG argument" rather than "operand".

Differential Revision: https://reviews.llvm.org/D89624
The file was modifiedllvm/docs/TableGen/ProgRef.rst
Commit f5cf7f544b7abe8488f76945537044f700b5548a by flo
[DSE] Do not consider 'noop' intrinsics as read-clobbers.

isNoopIntrinsic returns true for some intrinsics that are modeled in
MemorySSA but do not actually read or write any memory and do not block
DSE. Such intrinsics should not be considered as read-clobbers.
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll
Commit 5f88c3b6392f54ee0d31f560b1897b8fbc828ee7 by n.james93
[clang tidy] Fix SIMDIntrinsicsCheck not storing options
The file was modifiedclang-tools-extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
Commit fa89f641cf9fc5af4e88642cc894f83845b4cabe by jan.kratochvil
[nfc] [lldb] [testsuite] Fix DW_FORM_ref* in DW_AT_declaration-with-children.s .

There were invalid DIE references which nobody used. If LLDB starts to
report invalid DIE references it would lock up (mutex lock).

These invalid DIE references are there since initial check-in by:
  https://reviews.llvm.org/D83302
The file was modifiedlldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s
Commit ce619f645f58154fcc1d88e9de81aa7903dd7bc0 by n.james93
[NFC][clang-tidy] Use isInStdNamespace matcher instead of check defined alternatives
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp
Commit 2554619adbc8a8856c39b93bc049a5b4a4895cc5 by Dávid Bolvanský
[ASAN] Restore and adjust tests

There are optimized out with -fno-builtin
The file was addedcompiler-rt/test/asan/TestCases/strcat-overlap.cpp
The file was addedcompiler-rt/test/asan/TestCases/strcpy-overlap.cpp
The file was addedcompiler-rt/test/asan/TestCases/strncat-overlap.cpp
The file was addedcompiler-rt/test/asan/TestCases/strncpy-overlap.cpp
Commit 4d2d287a030fe81a5bf9d982ed8ea26fe3bcee6b by thakis
[gn build] (manually) port d09b08919ca
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
Commit 6de8d7f1adc82504f2167131e40d3cceec6a6fac by nikita.ppv
[BasicAA] Accept AATags by const reference (NFC)

Rather than swapping the value, the sizes, the AA tags and the
underlying objects multiple times, invoke the helper methods
with swapped arguments.
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp
The file was modifiedllvm/include/llvm/Analysis/BasicAliasAnalysis.h
Commit f4d8e86dbed599145490069fb547a87dbaff4a3e by hubert.reinterpretcast
[test][NFC] Do ptrdiff_t comparison with signed instead of unsigned constants

... because using unsigned constants for comparing against signed values
is liable to mutate the signed value via conversion to an unsigned type
due to the usual arithmetic conversions.
The file was modifiedllvm/unittests/DebugInfo/DWARF/DWARFDebugArangeSetTest.cpp
Commit 2980ce98be117a756ec5ad485273fd5400049683 by hubert.reinterpretcast
Fix various format specifier mismatches

Format specifiers of incorrect length are replaced with format specifier
macros from `<cinttypes>` matching the typedefs used to declare the type
of the value being printed.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D89637
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/lib/Object/COFFObjectFile.cpp
Commit 126094485ab99dac3e6df9c201124d48a1d798ce by hubert.reinterpretcast
[PowerPC][AIX] Make `__vector [un]signed long` an error

The semantics associated with `__vector [un]signed long` are neither
consistently specified nor consistently implemented.

The IBM XL compilers on AIX traditionally treated these as deprecated
aliases for the corresponding `__vector int` type in both 32-bit and
64-bit modes. The newer, Clang-based, IBM XL compilers on AIX make usage
of the previously deprecated types an error. This is also consistent
with IBM XL C/C++ for Linux on Power (on little endian distributions).

In line with the above, this patch upgrades (on AIX) the deprecation of
`__vector long` to become removal.

Reviewed By: ZarkoCA

Differential Revision: https://reviews.llvm.org/D89443
The file was modifiedclang/test/Parser/altivec.c
The file was modifiedclang/test/Parser/cxx-altivec.cpp
The file was modifiedclang/lib/Sema/DeclSpec.cpp
Commit 389c8d5b20a2ddea84d3b24edd533d5283f96582 by koraq
[NFC] Make non-modifying members const.

Implementing the likelihood attributes for the iteration statements adds
a new helper function. This function can't be const qualified since
these non-modifying members aren't const qualified.
The file was modifiedclang/lib/CodeGen/CodeGenPGO.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
The file was modifiedclang/lib/CodeGen/CodeGenPGO.h
Commit 82b0ac4f1f8b41afc94b4cd0a748482a2ccef850 by Alexander.Richardson
[libc++] Fix aligned_alloc tests FreeBSD

On FreeBSD we get the following error when passing zero as the requested
alignment: error: requested alignment is not a power of 2

Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D88820
The file was modifiedlibcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
Commit 9e27f38354e850346f5f4e895e44ad3346546d9c by Alexander.Richardson
[clang-format] Add a SpaceAroundPointerQualifiers style option

Some projects (e.g. FreeBSD) align pointers to the right but expect a
space between the '*' and any pointer qualifiers such as const. To handle
these cases this patch adds a new config option SpaceAroundPointerQualifiers
that can be used to configure whether spaces need to be added before/after
pointer qualifiers.

PointerAlignment = Right
SpaceAroundPointerQualifiers = Default/After:
void *const *x = NULL;
SpaceAroundPointerQualifiers = Before/Both
void * const *x = NULL;

PointerAlignment = Left
SpaceAroundPointerQualifiers = Default/Before:
void* const* x = NULL;
SpaceAroundPointerQualifiers = After/Both
void* const * x = NULL;

PointerAlignment = Middle
SpaceAroundPointerQualifiers = Default/Before/After/Both:
void * const * x = NULL;

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D88227
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
The file was modifiedclang/include/clang/Format/Format.h
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
Commit 7928d40c6b892c977472cdb7fbf67703222e15e5 by Alexander.Richardson
[libc++][dsl] Run checks for locale names aliases using a single %exec

This changes the checking for available locales to use one program that
iterates over argv to test multiple locale names instead of checking each
name with a separate executable.

This massively speeds up running individual tests using an SSH executor
(it can take up to 10 seconds to compile and run a single test in some
emulated environments) in case no locales are installed since then all
fallback names are tested idividually. But even on a native machine
this reduces the libc++ lit startup time by ~1-2 second for me on a machine
that does not have locale data installed.

Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D88884
The file was modifiedlibcxx/utils/libcxx/test/dsl.py
The file was modifiedlibcxx/test/libcxx/selftest/dsl/dsl.sh.py
The file was modifiedlibcxx/utils/libcxx/test/features.py
Commit 9d23224bf656358e409b620803f6b49341258dea by craig.topper
[X86] Add test cases for PR47874. NFC
The file was addedllvm/test/CodeGen/X86/pr47874.ll
Commit a8feeee15fea0fcc936fa4a6f2eb891c90d69c3e by riddleriver
[mlir] Add canonicalization for cond_br that feed into a cond_br on the same condition

```
   ...
   cond_br %cond, ^bb1(...), ^bb2(...)
...
^bb1: // has single predecessor
   ...
   cond_br %cond, ^bb3(...), ^bb4(...)
```

->

```
   ...
   cond_br %cond, ^bb1(...), ^bb2(...)
...
^bb1: // has single predecessor
   ...
   br ^bb3(...)
```

Differential Revision: https://reviews.llvm.org/D89604
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/test/Transforms/canonicalize-block-merge.mlir
The file was modifiedmlir/test/Dialect/Standard/canonicalize-cf.mlir
Commit 79cb179b149b20e7e1bbfd45d1b5e5b055f3b067 by richard
PR47870: Properly mangle placeholders for deduced class template
specializations that have no deduced type.
The file was modifiedclang/lib/AST/ItaniumMangle.cpp
The file was modifiedclang/test/CodeGenCXX/cxx1z-class-deduction.cpp
The file was modifiedclang/lib/Sema/SemaInit.cpp
Commit 094e9f4779eb9b5c6a49014f2f80b8cbb833572f by richard
PR47893: Synthesis of a comparison operator from an 'operator<=>'
inherits the SFINAEness of its enclosing context.
The file was modifiedclang/lib/Sema/SemaTemplateInstantiate.cpp
The file was modifiedclang/test/SemaCXX/cxx2a-three-way-comparison.cpp