[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp
Reid Spencer
reid at x10sys.com
Wed Nov 1 17:54:34 PST 2006
Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.18 -> 1.19
---
Log message:
For PR950: http://llvm.org/PR950 :
Replace the REM instruction with UREM, SREM and FREM.
---
Diffs of the changes: (+9 -3)
CppWriter.cpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.18 llvm/tools/llvm2cpp/CppWriter.cpp:1.19
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.18 Thu Oct 26 01:15:43 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp Wed Nov 1 19:53:59 2006
@@ -776,7 +776,9 @@
case Instruction::UDiv: Out << "getUDiv"; break;
case Instruction::SDiv: Out << "getSDiv"; break;
case Instruction::FDiv: Out << "getFDiv"; break;
- case Instruction::Rem: Out << "getRem"; break;
+ case Instruction::URem: Out << "getURem"; break;
+ case Instruction::SRem: Out << "getSRem"; break;
+ case Instruction::FRem: Out << "getFRem"; break;
case Instruction::And: Out << "getAnd"; break;
case Instruction::Or: Out << "getOr"; break;
case Instruction::Xor: Out << "getXor"; break;
@@ -1026,7 +1028,9 @@
case Instruction::UDiv:
case Instruction::SDiv:
case Instruction::FDiv:
- case Instruction::Rem:
+ case Instruction::URem:
+ case Instruction::SRem:
+ case Instruction::FRem:
case Instruction::And:
case Instruction::Or:
case Instruction::Xor:
@@ -1040,7 +1044,9 @@
case Instruction::UDiv:Out << "Instruction::UDiv"; break;
case Instruction::SDiv:Out << "Instruction::SDiv"; break;
case Instruction::FDiv:Out << "Instruction::FDiv"; break;
- case Instruction::Rem: Out << "Instruction::Rem"; break;
+ case Instruction::URem:Out << "Instruction::URem"; break;
+ case Instruction::SRem:Out << "Instruction::SRem"; break;
+ case Instruction::FRem:Out << "Instruction::FRem"; break;
case Instruction::And: Out << "Instruction::And"; break;
case Instruction::Or: Out << "Instruction::Or"; break;
case Instruction::Xor: Out << "Instruction::Xor"; break;
More information about the llvm-commits
mailing list