From f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Nov 2004 19:32:45 +0000 Subject: [PATCH] Add support for shifts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17702 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/PatternMatch.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index 5a1df2a7a32..ae1d30cc088 100644 --- a/include/llvm/Support/PatternMatch.h +++ b/include/llvm/Support/PatternMatch.h @@ -138,6 +138,18 @@ inline BinaryOp_match m_Xor(const LHS &L, return BinaryOp_match(L, R); } +template +inline BinaryOp_match m_Shl(const LHS &L, + const RHS &R) { + return BinaryOp_match(L, R); +} + +template +inline BinaryOp_match m_Shr(const LHS &L, + const RHS &R) { + return BinaryOp_match(L, R); +} + //===----------------------------------------------------------------------===// // Matchers for binary classes //