diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-22 17:19:09 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-22 17:19:09 +0000 |
commit | 5c525b59d5e0036a778d278eeff4832edfd41357 (patch) | |
tree | eb0e146a3ad637e382f3af8527aa385327b643e0 /lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | 23e75da7e0622528be3c3908b5fe3ae8857cdf65 (diff) | |
download | external_llvm-5c525b59d5e0036a778d278eeff4832edfd41357.zip external_llvm-5c525b59d5e0036a778d278eeff4832edfd41357.tar.gz external_llvm-5c525b59d5e0036a778d278eeff4832edfd41357.tar.bz2 |
add a new pass to instrument loads and stores for run-time bounds checking
move EmitGEPOffset from InstCombine to Transforms/Utils/Local.h
(a draft of this) patch reviewed by Andrew, thanks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstructionCombining.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index aa6e82f..b8a533b 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -87,6 +87,10 @@ void InstCombiner::getAnalysisUsage(AnalysisUsage &AU) const { } +Value *InstCombiner::EmitGEPOffset(User *GEP) { + return llvm::EmitGEPOffset(Builder, *getTargetData(), GEP); +} + /// ShouldChangeType - Return true if it is desirable to convert a computation /// from 'From' to 'To'. We don't want to convert from a legal to an illegal /// type for example, or from a smaller to a larger illegal type. |