diff options
author | Devang Patel <dpatel@apple.com> | 2009-02-10 07:00:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-02-10 07:00:59 +0000 |
commit | 4afc90dacf309999d8b7f6c2b4b0c56af346bab5 (patch) | |
tree | d6324836dd059b615659328eceaf1bd1bd137349 /include | |
parent | 2303df96b05077b085db64274cd0e3ade452e715 (diff) | |
download | external_llvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.zip external_llvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.tar.gz external_llvm-4afc90dacf309999d8b7f6c2b4b0c56af346bab5.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 35d2c0c..7338912 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 |