For PR351: \
[oota-llvm.git] / include / llvm / Support / PatternMatch.h
index 5a1df2a7a325b93176e7d7a0f1f016c8cbc04b99..ae1d30cc088517d6ae9b468c1df06874b097d52e 100644 (file)
@@ -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
 //