[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 14 18:02:43 PDT 2004
Changes in directory llvm/include/llvm/Transforms/Utils:
PromoteMemToReg.h updated: 1.5 -> 1.6
---
Log message:
Add an optional argument to PromoteMemToReg
---
Diffs of the changes: (+5 -1)
Index: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h
diff -u llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.5 llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.6
--- llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.5 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h Tue Sep 14 20:02:30 2004
@@ -23,6 +23,7 @@
class DominatorTree;
class DominanceFrontier;
class TargetData;
+class AliasSetTracker;
/// isAllocaPromotable - Return true if this alloca is legal for promotion.
/// This is true if there are only loads and stores to the alloca...
@@ -34,9 +35,12 @@
/// use of DominanceFrontier information. This function does not modify the CFG
/// of the function at all. All allocas must be from the same function.
///
+/// If AST is specified, the specified tracker is updated to reflect changes
+/// made to the IR.
+///
void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
DominatorTree &DT, DominanceFrontier &DF,
- const TargetData &TD);
+ const TargetData &TD, AliasSetTracker *AST = 0);
} // End llvm namespace
More information about the llvm-commits
mailing list