SuccessChanges

Summary

  1. Author: Shuhong Liu <shuhong.liu@ibm.com> (details)
  2. [XCOFF] Adjust .rename emission sequence (details)
  3. [PGO][CUDA][HIP] Skip generating profile on the device stub and wrong-side functions. (details)
Commit b129c9d81aff8ece71eb29df1e5f31136a48c040 by shuhong.liu
Author: Shuhong Liu <shuhong.liu@ibm.com>
Date:   Mon Aug 10 10:31:50 2020 +0300

    [AIX][Clang][Driver] Generate reference to the C++ library on the link step

    Have the linker find libc++ on its search path by adding -lc++.

    Reviewed by: daltenty, hubert.reinterpretcast, stevewan

    Differential Revision: https://reviews.llvm.org/D85315
The file was modifiedclang/lib/Driver/ToolChains/AIX.cpp
The file was modifiedclang/test/Driver/aix-ld.c
The file was modifiedclang/lib/Driver/ToolChains/AIX.h
Commit 7866442b3f5d395e7f92a5d6b6ed0df3e4ba429b by jasonliu
[XCOFF] Adjust .rename emission sequence

Summary:
AIX assembler does not generate correct relocation when .rename
appear between tc entry label and .tc directive.
So only emit .rename after .tc/.comm or other linkage is emitted.

Reviewed By: daltenty, hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D85317
The file was modifiedllvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-symbol-rename.ll
The file was modifiedllvm/lib/MC/MCAsmStreamer.cpp
Commit c7b683c126b849dab5c81e7deecfc1e61f8563a0 by michael.hliao
[PGO][CUDA][HIP] Skip generating profile on the device stub and wrong-side functions.

- Skip generating profile data on `__global__` function in the host
  compilation. It's a host-side stub function only and don't have
  profile instrumentation generated on the real function body. The extra
  profile data results in the malformed instrumentation profile data.
- Skip generating region mapping on functions in the wrong-side, i.e.,
  + For the device compilation, skip host-only functions; and,
  + For the host compilation, skip device-only functions (including
    `__global__` functions.)
- As the device-side profiling is not ready yet, only host-side profile
  code generation is checked.

Differential Revision: https://reviews.llvm.org/D85276
The file was addedclang/test/CodeGenCUDA/profile-coverage-mapping.cu
The file was modifiedclang/lib/CodeGen/CodeGenPGO.cpp