[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h

Chris Lattner lattner at cs.uiuc.edu
Mon Mar 3 11:26:01 PST 2003


Changes in directory llvm/include/llvm/Transforms/Utils:

PromoteMemToReg.h updated: 1.1 -> 1.2

---
Log message:

Change the mem2reg interface to accept a TargetData argument


---
Diffs of the changes:

Index: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h
diff -u llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.1 llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.2
--- llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.1	Sat Feb 22 17:04:52 2003
+++ llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h	Mon Mar  3 11:25:15 2003
@@ -10,12 +10,13 @@
 
 class AllocaInst;
 class DominanceFrontier;
+class TargetData;
 #include <vector>
 
 /// isAllocaPromotable - Return true if this alloca is legal for promotion.
 /// This is true if there are only loads and stores to the alloca...
 ///
-bool isAllocaPromotable(const AllocaInst *AI);
+bool isAllocaPromotable(const AllocaInst *AI, const TargetData &TD);
 
 /// PromoteMemToReg - Promote the specified list of alloca instructions into
 /// scalar registers, inserting PHI nodes as appropriate.  This function makes
@@ -23,7 +24,6 @@
 /// of the function at all.  All allocas must be from the same function.
 ///
 void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
-                     DominanceFrontier &DF);
-
+                     DominanceFrontier &DF, const TargetData &TD);
 
 #endif





More information about the llvm-commits mailing list