LLVM 20.0.0git
Namespaces | Functions
PromoteMemToReg.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

bool llvm::isAllocaPromotable (const AllocaInst *AI)
 Return true if this alloca is legal for promotion.
 
void llvm::PromoteMemToReg (ArrayRef< AllocaInst * > Allocas, DominatorTree &DT, AssumptionCache *AC=nullptr)
 Promote the specified list of alloca instructions into scalar registers, inserting PHI nodes as appropriate.