[llvm-commits] CVS: llvm/include/llvm/Support/PatternMatch.h
Reid Spencer
reid at x10sys.com
Wed Nov 1 17:54:28 PST 2006
Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.10 -> 1.11
---
Log message:
For PR950: http://llvm.org/PR950 :
Replace the REM instruction with UREM, SREM and FREM.
---
Diffs of the changes: (+14 -2)
PatternMatch.h | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Support/PatternMatch.h
diff -u llvm/include/llvm/Support/PatternMatch.h:1.10 llvm/include/llvm/Support/PatternMatch.h:1.11
--- llvm/include/llvm/Support/PatternMatch.h:1.10 Thu Oct 26 01:15:43 2006
+++ llvm/include/llvm/Support/PatternMatch.h Wed Nov 1 19:53:58 2006
@@ -130,9 +130,21 @@
}
template<typename LHS, typename RHS>
-inline BinaryOp_match<LHS, RHS, Instruction::Rem> m_Rem(const LHS &L,
+inline BinaryOp_match<LHS, RHS, Instruction::URem> m_URem(const LHS &L,
+ const RHS &R) {
+ return BinaryOp_match<LHS, RHS, Instruction::URem>(L, R);
+}
+
+template<typename LHS, typename RHS>
+inline BinaryOp_match<LHS, RHS, Instruction::SRem> m_SRem(const LHS &L,
+ const RHS &R) {
+ return BinaryOp_match<LHS, RHS, Instruction::SRem>(L, R);
+}
+
+template<typename LHS, typename RHS>
+inline BinaryOp_match<LHS, RHS, Instruction::FRem> m_FRem(const LHS &L,
const RHS &R) {
- return BinaryOp_match<LHS, RHS, Instruction::Rem>(L, R);
+ return BinaryOp_match<LHS, RHS, Instruction::FRem>(L, R);
}
template<typename LHS, typename RHS>
More information about the llvm-commits
mailing list