summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-13 07:43:07 +0000
committerChris Lattner <sabre@nondot.org>2011-02-13 07:43:07 +0000
commit74542aa5001fb6ff3d7d0958b5c391cde63df1ca (patch)
tree7838b95d3dbcddda4f27fb4df45ae03f58d0016d /lib/Transforms/InstCombine/InstCombine.h
parent8ebaf909580ada88d9952327323ded1e328d0708 (diff)
downloadllvm-74542aa5001fb6ff3d7d0958b5c391cde63df1ca.tar.gz
llvm-74542aa5001fb6ff3d7d0958b5c391cde63df1ca.tar.bz2
llvm-74542aa5001fb6ff3d7d0958b5c391cde63df1ca.tar.xz
refactor some code out into a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r--lib/Transforms/InstCombine/InstCombine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h
index 450e7f0a39..9c2969c7ab 100644
--- a/lib/Transforms/InstCombine/InstCombine.h
+++ b/lib/Transforms/InstCombine/InstCombine.h
@@ -145,6 +145,8 @@ public:
ConstantInt *RHS);
Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI,
ConstantInt *DivRHS);
+ Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI,
+ ConstantInt *DivRHS);
Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI,
ICmpInst::Predicate Pred, Value *TheAdd);
Instruction *FoldGEPICmp(GEPOperator *GEPLHS, Value *RHS,