Go to the source code of this file.
|
static cl::opt< bool > | DisableICP ("disable-icp", cl::init(false), cl::Hidden, cl::desc("Disable indirect call promotion")) |
|
static cl::opt< unsigned > | ICPCutOff ("icp-cutoff", cl::init(0), cl::Hidden, cl::desc("Max number of promotions for this compilation")) |
|
static cl::opt< unsigned > | ICPCSSkip ("icp-csskip", cl::init(0), cl::Hidden, cl::desc("Skip Callsite up to this number for this compilation")) |
|
static cl::opt< bool > | ICPLTOMode ("icp-lto", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion in LTO " "mode")) |
|
static cl::opt< bool > | ICPSamplePGOMode ("icp-samplepgo", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion in SamplePGO mode")) |
|
static cl::opt< bool > | ICPCallOnly ("icp-call-only", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion for call instructions " "only")) |
|
static cl::opt< bool > | ICPInvokeOnly ("icp-invoke-only", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion for " "invoke instruction only")) |
|
static cl::opt< bool > | ICPDUMPAFTER ("icp-dumpafter", cl::init(false), cl::Hidden, cl::desc("Dump IR after transformation happens")) |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "pgo-icall-prom" |
◆ promoteIndirectCalls()
Definition at line 328 of file IndirectCallPromotion.cpp.
References llvm::InstrProfSymtab::create(), llvm::dbgs(), DisableICP, E, F, FAM, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), ICPCutOff, ICPDUMPAFTER, LLVM_DEBUG, MAM, and llvm::dwarf::toString().
Referenced by llvm::PGOIndirectCallPromotion::run().
◆ STATISTIC() [1/2]
STATISTIC |
( |
NumOfPGOICallPromotion |
, |
|
|
"Number of indirect call promotions." |
|
|
) |
| |
◆ STATISTIC() [2/2]
STATISTIC |
( |
NumOfPGOICallsites |
, |
|
|
"Number of indirect call candidate sites." |
|
|
) |
| |
◆ DisableICP
cl::opt< bool > DisableICP("disable-icp", cl::init(false), cl::Hidden, cl::desc("Disable indirect call promotion")) |
( |
"disable-icp" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Disable indirect call promotion") |
|
|
) |
| |
|
static |
◆ ICPCallOnly
◆ ICPCSSkip
cl::opt< unsigned > ICPCSSkip("icp-csskip", cl::init(0), cl::Hidden, cl::desc("Skip Callsite up to this number for this compilation")) |
( |
"icp-csskip" |
, |
|
|
cl::init(0) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Skip Callsite up to this number for this compilation") |
|
|
) |
| |
|
static |
◆ ICPCutOff
cl::opt< unsigned > ICPCutOff("icp-cutoff", cl::init(0), cl::Hidden, cl::desc("Max number of promotions for this compilation")) |
( |
"icp-cutoff" |
, |
|
|
cl::init(0) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Max number of promotions for this compilation") |
|
|
) |
| |
|
static |
◆ ICPDUMPAFTER
cl::opt< bool > ICPDUMPAFTER("icp-dumpafter", cl::init(false), cl::Hidden, cl::desc("Dump IR after transformation happens")) |
( |
"icp-dumpafter" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Dump IR after transformation happens") |
|
|
) |
| |
|
static |
◆ ICPInvokeOnly
cl::opt< bool > ICPInvokeOnly("icp-invoke-only", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion for " "invoke instruction only")) |
( |
"icp-invoke-only" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Run indirect-call promotion for " "invoke instruction only") |
|
|
) |
| |
|
static |
◆ ICPLTOMode
cl::opt< bool > ICPLTOMode("icp-lto", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion in LTO " "mode")) |
( |
"icp-lto" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Run indirect-call promotion in LTO " "mode") |
|
|
) |
| |
|
static |
◆ ICPSamplePGOMode
cl::opt< bool > ICPSamplePGOMode("icp-samplepgo", cl::init(false), cl::Hidden, cl::desc("Run indirect-call promotion in SamplePGO mode")) |
( |
"icp-samplepgo" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
, |
|
|
cl::desc("Run indirect-call promotion in SamplePGO mode") |
|
|
) |
| |
|
static |