llvm::PromotePass

Pass that promotes memory allocas to SSA registers via PromoteMemToReg.

Synopsis

Declared in <llvm/Transforms/Utils/Mem2Reg.h>

class PromotePass
    : public OptionalPassInfoMixin<PromotePass>

Description

This is a simple pass wrapper around the PromoteMemToReg function call exposed by the Utils library.

Base Classes

NameDescription
OptionalPassInfoMixin<PromotePass>A CRTP mix-in for passes that can be skipped.

Member Functions

NameDescription
run Run the mem2reg pass over the function.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.