[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Local.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 13 20:14:01 PST 2004
Changes in directory llvm/include/llvm/Transforms/Utils:
Local.h updated: 1.14 -> 1.15
---
Log message:
Move DemoteRegToStack prototype out of DemoteRegToStack.h to this file.
---
Diffs of the changes: (+9 -0)
Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.14 llvm/include/llvm/Transforms/Utils/Local.h:1.15
--- llvm/include/llvm/Transforms/Utils/Local.h:1.14 Mon Jan 12 12:25:56 2004
+++ llvm/include/llvm/Transforms/Utils/Local.h Sat Mar 13 20:13:07 2004
@@ -21,6 +21,7 @@
class Pass;
class PHINode;
+class AllocaInst;
//===----------------------------------------------------------------------===//
// Local constant propagation...
@@ -86,6 +87,14 @@
/// WARNING: The entry node of a method may not be simplified.
///
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
More information about the llvm-commits
mailing list