Helpers shared by PGO-driven and sample-profile indirect-call promotion.
The pgo-specific indirect call promotion function declared below is used by the pgo-driven indirect call promotion and sample profile passes. It's a wrapper around llvm::promoteCall, et al. that additionally computes !prof metadata. We place it in a pgo namespace so it's not confused with the generic utilities.
| Name | Description |
|---|---|
promoteIndirectCall | Promote an indirect call or invoke CB to a conditional direct call to F. |