[llvm-commits] [SignlessTypes] CVS: llvm/include/llvm/Support/PatternMatch.h
Reid Spencer
reid at x10sys.com
Thu Oct 19 21:27:42 PDT 2006
Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.9 -> 1.9.2.1
---
Log message:
Initial patch for DIV -> SDIV/UDIV
---
Diffs of the changes: (+8 -2)
PatternMatch.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Support/PatternMatch.h
diff -u llvm/include/llvm/Support/PatternMatch.h:1.9 llvm/include/llvm/Support/PatternMatch.h:1.9.2.1
--- llvm/include/llvm/Support/PatternMatch.h:1.9 Mon Sep 18 00:17:11 2006
+++ llvm/include/llvm/Support/PatternMatch.h Thu Oct 19 23:27:17 2006
@@ -112,9 +112,15 @@
}
template<typename LHS, typename RHS>
-inline BinaryOp_match<LHS, RHS, Instruction::Div> m_Div(const LHS &L,
+inline BinaryOp_match<LHS, RHS, Instruction::UDiv> m_UDiv(const LHS &L,
const RHS &R) {
- return BinaryOp_match<LHS, RHS, Instruction::Div>(L, R);
+ return BinaryOp_match<LHS, RHS, Instruction::UDiv>(L, R);
+}
+
+template<typename LHS, typename RHS>
+inline BinaryOp_match<LHS, RHS, Instruction::SDiv> m_SDiv(const LHS &L,
+ const RHS &R) {
+ return BinaryOp_match<LHS, RHS, Instruction::SDiv>(L, R);
}
template<typename LHS, typename RHS>
More information about the llvm-commits
mailing list