[AIX][LTO] Enabling Context Sensitive PGO Options
authorQiongsi Wu <qiongsiwu@gmail.com>
Wed, 30 Nov 2022 14:57:55 +0000 (09:57 -0500)
committerQiongsi Wu <qiongsiwu@gmail.com>
Wed, 30 Nov 2022 15:22:26 +0000 (10:22 -0500)
commit3faab85c12bc1d96e144dcb6d8f75bcafa120c79
treeff5d966fc38ce34e44292c1b576890cc8b735f04
parent06ed6edc87186d4ad03d3d6c2185ef0f53642445
[AIX][LTO] Enabling Context Sensitive PGO Options

This patch enables context sensitive PGO (CSPGO) for LTO on AIX. Two parts are involved:

  # Frontend logic is added so libLTO can understand the CSPGO related options.
  # Two options are added to the backend so that the LTOCodeGenerator can understand the CSPGO related options and make use of them.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D138854
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/lto-aix.c
llvm/lib/LTO/LTOCodeGenerator.cpp