forked from OSchip/llvm-project
Move DemoteRegToStack prototype out of DemoteRegToStack.h to this file.
llvm-svn: 12367
This commit is contained in:
parent
b911de4c39
commit
3b18771d9f
|
@ -21,6 +21,7 @@ namespace llvm {
|
|||
|
||||
class Pass;
|
||||
class PHINode;
|
||||
class AllocaInst;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Local constant propagation...
|
||||
|
@ -87,6 +88,14 @@ Value *hasConstantValue(PHINode *PN);
|
|||
///
|
||||
bool SimplifyCFG(BasicBlock *BB);
|
||||
|
||||
/// DemoteRegToStack - This function takes a virtual register computed by an
|
||||
/// Instruction& X and replaces it with a slot in the stack frame, allocated via
|
||||
/// alloca. This allows the CFG to be changed around without fear of
|
||||
/// invalidating the SSA information for the value. It returns the pointer to
|
||||
/// the alloca inserted to create a stack slot for X.
|
||||
///
|
||||
AllocaInst *DemoteRegToStack(Instruction &X);
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue