llvm::RegToMemPass

Pass that demotes registers to memory allocas.

Synopsis

Declared in <llvm/Transforms/Scalar/Reg2Mem.h>

class RegToMemPass
    : public OptionalPassInfoMixin<RegToMemPass>

Description

Converts virtual registers and PHI nodes into loads and stores of allocas so that only allocas and loads before PHI nodes are live across basic blocks, making CFG transformations easier.

Base Classes

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

Member Functions

NameDescription
run Run register-to-memory demotion over the function.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.