diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-21 07:51:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-21 07:51:27 +0000 |
commit | e90c5cb747631b315350e7ee7424048c7778bdf9 (patch) | |
tree | a7b226291ad299d1853a60b01b15e993f7710cfe /include | |
parent | f6f1f062cc8029aa75ca7d0e99fbc1e0b453d07e (diff) | |
download | external_llvm-e90c5cb747631b315350e7ee7424048c7778bdf9.zip external_llvm-e90c5cb747631b315350e7ee7424048c7778bdf9.tar.gz external_llvm-e90c5cb747631b315350e7ee7424048c7778bdf9.tar.bz2 |
add "getLocation" method to AliasAnalysis for getting the source and
destination location of a memcpy/memmove. I'm not clear about whether
TBAA works on these, so I'm leaving it out for now. Dan, please revisit
this when convenient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/AliasAnalysis.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index 5fe9d91..007724d 100644 --- a/include/llvm/Analysis/AliasAnalysis.h +++ b/include/llvm/Analysis/AliasAnalysis.h @@ -48,6 +48,7 @@ class VAArgInst; class TargetData; class Pass; class AnalysisUsage; +class MemTransferInst; class AliasAnalysis { protected: @@ -135,6 +136,8 @@ public: Location getLocation(const LoadInst *LI); Location getLocation(const StoreInst *SI); Location getLocation(const VAArgInst *VI); + Location getLocationForSource(const MemTransferInst *MTI); + Location getLocationForDest(const MemTransferInst *MTI); /// Alias analysis result - Either we know for sure that it does not alias, we /// know for sure it must alias, or we don't know anything: The two pointers |