summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-02-10 07:00:59 +0000
committerDevang Patel <dpatel@apple.com>2009-02-10 07:00:59 +0000
commit4afc90dacf309999d8b7f6c2b4b0c56af346bab5 (patch)
treed6324836dd059b615659328eceaf1bd1bd137349 /include/llvm/Transforms/Utils
parent2303df96b05077b085db64274cd0e3ade452e715 (diff)
downloadllvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.tar.gz
llvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.tar.bz2
llvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.tar.xz
Enable scalar replacement of AllocaInst whose one of the user is dbg info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/Local.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 35d2c0ce7e..73389124b8 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -25,6 +25,7 @@ class PHINode;
class AllocaInst;
class ConstantExpr;
class TargetData;
+class DbgInfoIntrinsic;
template<typename T> class SmallVectorImpl;
@@ -94,6 +95,11 @@ AllocaInst *DemoteRegToStack(Instruction &X, bool VolatileLoads = false,
/// The phi node is deleted and it returns the pointer to the alloca inserted.
AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0);
+/// OnlyUsedByDbgIntrinsics - Return true if the instruction I is only used
+/// by DbgIntrinsics. If DbgInUses is specified then the vector is filled
+/// with DbgInfoIntrinsic that use the instruction I.
+bool OnlyUsedByDbgInfoIntrinsics(Instruction *I,
+ SmallVectorImpl<DbgInfoIntrinsic *> *DbgInUses = 0);
} // End llvm namespace
#endif