summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-03-03 17:25:18 +0000
committerChris Lattner <sabre@nondot.org>2003-03-03 17:25:18 +0000
commitfb743a937f6856e3ab1f8ed599677038750a550e (patch)
tree597e36aff252a30049f388d31d50db5a36b939e3 /include/llvm/Transforms/Utils
parent088b639e3a168686f16bb292e08b952d01a25b7d (diff)
downloadllvm-fb743a937f6856e3ab1f8ed599677038750a550e.tar.gz
llvm-fb743a937f6856e3ab1f8ed599677038750a550e.tar.bz2
llvm-fb743a937f6856e3ab1f8ed599677038750a550e.tar.xz
Change the mem2reg interface to accept a TargetData argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/PromoteMemToReg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h
index ee8b7c0cb2..436fa43a31 100644
--- a/include/llvm/Transforms/Utils/PromoteMemToReg.h
+++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h
@@ -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 @@ bool isAllocaPromotable(const AllocaInst *AI);
/// 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