[llvm-commits] CVS: llvm/include/llvm/Support/PatternMatch.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 13 11:32:59 PST 2004
Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.3 -> 1.4
---
Log message:
Add support for shifts
---
Diffs of the changes: (+12 -0)
Index: llvm/include/llvm/Support/PatternMatch.h
diff -u llvm/include/llvm/Support/PatternMatch.h:1.3 llvm/include/llvm/Support/PatternMatch.h:1.4
--- llvm/include/llvm/Support/PatternMatch.h:1.3 Tue Aug 3 23:45:29 2004
+++ llvm/include/llvm/Support/PatternMatch.h Sat Nov 13 13:32:45 2004
@@ -138,6 +138,18 @@
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
//
More information about the llvm-commits
mailing list