Argument promotion pass.

Synopsis

Declared in <llvm/Transforms/IPO/ArgumentPromotion.h>

class ArgumentPromotionPass
    : public OptionalPassInfoMixin<ArgumentPromotionPass>

Description

This pass walks the functions in each SCC and for each one tries to transform it and all of its callers to replace indirect arguments with direct (by‐value) arguments.

Base Classes

Name

Description

OptionalPassInfoMixin<ArgumentPromotionPass>

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

Member Functions

Name

Description

ArgumentPromotionPass [constructor]

Construct an argument‐promotion pass.

run

Run argument promotion over the functions in SCC C.

Static Member Functions

Name

Description

isRequired

Return false; optional passes may be skipped.

Created with MrDocs