diff options
author | Chris Lattner <sabre@nondot.org> | 2003-03-03 17:25:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-03-03 17:25:18 +0000 |
commit | fb743a937f6856e3ab1f8ed599677038750a550e (patch) | |
tree | 597e36aff252a30049f388d31d50db5a36b939e3 /include/llvm/Transforms/Utils/PromoteMemToReg.h | |
parent | 088b639e3a168686f16bb292e08b952d01a25b7d (diff) | |
download | external_llvm-fb743a937f6856e3ab1f8ed599677038750a550e.zip external_llvm-fb743a937f6856e3ab1f8ed599677038750a550e.tar.gz external_llvm-fb743a937f6856e3ab1f8ed599677038750a550e.tar.bz2 |
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/PromoteMemToReg.h')
-rw-r--r-- | include/llvm/Transforms/Utils/PromoteMemToReg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index ee8b7c0..436fa43 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 |