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 //