15 #ifndef LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
16 #define LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
20 template <
typename T>
class ArrayRef;
23 class AliasSetTracker;
24 class AssumptionCache;
44 AliasSetTracker *AST =
nullptr,
45 AssumptionCache *AC =
nullptr);
bool isAllocaPromotable(const AllocaInst *AI)
Return true if this alloca is legal for promotion.
void PromoteMemToReg(ArrayRef< AllocaInst * > Allocas, DominatorTree &DT, AliasSetTracker *AST=nullptr, AssumptionCache *AC=nullptr)
Promote the specified list of alloca instructions into scalar registers, inserting PHI nodes as appro...