diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-27 00:29:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 00:29:05 +0000 |
commit | c514c1f5218b8fe7499a0b9a4737860344cf4c43 (patch) | |
tree | 63c2da331934d330f40edf4f9ae3e0dfb5b9f6a3 /include | |
parent | 304076268a342b2b15e1af2e678d101af3165f4c (diff) | |
download | llvm-c514c1f5218b8fe7499a0b9a4737860344cf4c43.tar.gz llvm-c514c1f5218b8fe7499a0b9a4737860344cf4c43.tar.bz2 llvm-c514c1f5218b8fe7499a0b9a4737860344cf4c43.tar.xz |
factor some instcombine simplifications for getelementptr out to a new
SimplifyGEPInst method in InstructionSimplify.h. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/InstructionSimplify.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index aa5c0f554b..1cd7e56556 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -42,6 +42,11 @@ namespace llvm { const TargetData *TD = 0); + /// SimplifyGEPInst - Given operands for an GetElementPtrInst, see if we can + /// fold the result. If not, this returns null. + Value *SimplifyGEPInst(Value * const *Ops, unsigned NumOps, + const TargetData *TD = 0); + //=== Helper functions for higher up the class hierarchy. |