From: Chris Lattner Date: Sat, 13 Nov 2004 19:32:45 +0000 (+0000) Subject: Add support for shifts X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f17ffcce18ad8e3da3b1e7a3a8b1ac19ac301c80;p=oota-llvm.git Add support for shifts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17702 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 //