summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-13 19:32:45 +0000
committerChris Lattner <sabre@nondot.org>2004-11-13 19:32:45 +0000
commitf17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80 (patch)
tree044366b86358e08b4417117e4ffed3104d875456 /include
parent65aedc1a4edc146c1368a0f4e8d67ff6026a38e5 (diff)
downloadllvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.tar.gz
llvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.tar.bz2
llvm-f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80.tar.xz
Add support for shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/PatternMatch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index 5a1df2a7a3..ae1d30cc08 100644
--- a/include/llvm/Support/PatternMatch.h
+++ b/include/llvm/Support/PatternMatch.h
@@ -138,6 +138,18 @@ inline BinaryOp_match<LHS, RHS, Instruction::Xor> m_Xor(const LHS &L,
return BinaryOp_match<LHS, RHS, Instruction::Xor>(L, R);
}
+template<typename LHS, typename RHS>
+inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L,
+ const RHS &R) {
+ return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R);
+}
+
+template<typename LHS, typename RHS>
+inline BinaryOp_match<LHS, RHS, Instruction::Shr> m_Shr(const LHS &L,
+ const RHS &R) {
+ return BinaryOp_match<LHS, RHS, Instruction::Shr>(L, R);
+}
+
//===----------------------------------------------------------------------===//
// Matchers for binary classes
//