A helper that repeats an SCC pass each time an indirect call is refined to a direct call by that pass.

Synopsis

Declared in <llvm/Analysis/CGSCCPassManager.h>

class DevirtSCCRepeatedPass
    : public OptionalPassInfoMixin<DevirtSCCRepeatedPass>

Description

While the CGSCC pass manager works to re‐visit SCCs and RefSCCs as they change shape, we may also want to repeat an SCC pass if it simply refines an indirect call to a direct call, even if doing so does not alter the shape of the graph. Note that this only pertains to direct calls to functions where IPO across the SCC may be able to compute more precise results. For intrinsics, we assume scalar optimizations already can fully reason about them.

This repetition has the potential to be very large however, as each one might refine a single call site. As a consequence, in practice we use an upper bound on the number of repetitions to limit things.

Base Classes

Name

Description

OptionalPassInfoMixin<DevirtSCCRepeatedPass>

A CRTP mix‐in for passes that can be skipped.

Type Aliases

Member Functions

Name

Description

DevirtSCCRepeatedPass [constructor]

printPipeline

run

Runs the wrapped pass up to MaxIterations on the SCC, iterating whenever an indirect call is refined.

Static Member Functions

Name

isRequired

Non-Member Functions

Name

Description

createDevirtSCCRepeatedPass

A function to deduce a function pass type and wrap it in the templated adaptor.

Created with MrDocs