SuccessChanges

Summary

  1. [SystemZ][ZOS] Fix the usage of pthread_t within libc++ (details)
  2. [OpenMP][OMPT] Fix OMPT return address guard for gomp interface (details)
  3. [X86] Autodetect znver3 (details)
  4. [debugserver] Remove bridgeos availability (details)
  5. [TargetMachine] Simplify shouldAssumeDSOLocal by processing ExternalSymbolSDNode early (details)
  6. [BasicAA] Add more tests for non-equal index (NFC) (details)
Commit e6c89a499d91b5d50ac556428dac995d07f0f6e5 by zibi
[SystemZ][ZOS] Fix the usage of pthread_t within libc++

This is the the minimal change introduced in [[ https://reviews.llvm.org/D88599 | D88599 ]]  to unblock the controversial change and discussion of proper separation between thread from thread id which will continue in D88599.

This patch will address the differences of definition of pthread_t on z/OS vs. Linux and other OS. Main trick to make the code work on z/OS relies on redefining libcpp_thread_id type and _LIBCPP_NULL_THREAD macro. This is necessary to separate initialization of libcxx_thread_id from the one of __libcxx_thread_t;

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D91875
The file was modifiedlibcxx/include/__threading_support
The file was modifiedlibcxx/include/__config
Commit a148216b31292e52c0229dae98f52d3b2c350400 by protze
[OpenMP][OMPT] Fix OMPT return address guard for gomp interface

D91692 missed various locations in kmp_gsupport, where the scope for
OMPT_STORE_RETURN_ADDRESS is too narrow, i.e. the scope ends before the OMPT
callback is called in some nested function.

This patch fixes the scoping issue, so that all OMPT tests pass, when the
tests are built with gcc.

Differential Revision: https://reviews.llvm.org/D92121
The file was modifiedopenmp/runtime/src/kmp_gsupport.cpp
Commit 2a136a7a9c68e4818b28bea6051b78a8181ba78e by benny.kra
[X86] Autodetect znver3
The file was modifiedclang/test/CodeGen/target-builtin-noerror.c
The file was modifiedllvm/lib/Support/Host.cpp
The file was modifiedllvm/include/llvm/Support/X86TargetParser.def
The file was modifiedcompiler-rt/lib/builtins/cpu_model.c
Commit c722096b399695e89f283f0847474ccb038515f2 by Jonas Devlieghere
[debugserver] Remove bridgeos availability

I didn't realize that the 'bridgeos' is not part of the public SDK.
The file was modifiedlldb/tools/debugserver/source/MacOSX/MachProcess.mm
Commit 68edf39ededf97a12602676f9cd537ed689151f0 by i
[TargetMachine] Simplify shouldAssumeDSOLocal by processing ExternalSymbolSDNode early

The function accrues many `GV` nullness checks. Process `!GV`
(ExternalSymbolSDNode) early to simplify code.

Also improve a comment added in r327198 (intrinsics is a subset of
ExternalSymbolSDNode).

Intended to be NFC.
The file was modifiedllvm/lib/Target/TargetMachine.cpp
Commit ae5e013f6e3a1391fd44e292857e359b83806c2f by nikita.ppv
[BasicAA] Add more tests for non-equal index (NFC)
The file was modifiedllvm/test/Analysis/BasicAA/sequential-gep.ll