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
Name |
Description |
A CRTP mix‐in for passes that can be skipped. |
Member Functions
Name |
Description |
Run register‐to‐memory demotion over the function. |
Static Member Functions
Name |
Description |
Return false; optional passes may be skipped. |
Created with MrDocs