[llvm-commits] [SignlessTypes] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

Reid Spencer reid at x10sys.com
Sun Oct 22 01:59:32 PDT 2006



Changes in directory llvm/tools/llvm2cpp:

CppWriter.cpp updated: 1.16.2.2 -> 1.16.2.3
---
Log message:

Implement the FDIV instruction for floating point divide.


---
Diffs of the changes:  (+3 -0)

 CppWriter.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.16.2.2 llvm/tools/llvm2cpp/CppWriter.cpp:1.16.2.3
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.16.2.2	Fri Oct 20 03:22:22 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp	Sun Oct 22 03:59:01 2006
@@ -775,6 +775,7 @@
         case Instruction::Mul:    Out << "getMul"; break;
         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::And:    Out << "getAnd"; break;
         case Instruction::Or:     Out << "getOr"; break;
@@ -1024,6 +1025,7 @@
     case Instruction::Mul:
     case Instruction::UDiv:
     case Instruction::SDiv:
+    case Instruction::FDiv:
     case Instruction::Rem:
     case Instruction::And:
     case Instruction::Or:
@@ -1037,6 +1039,7 @@
         case Instruction::Mul: Out << "Instruction::Mul"; break;
         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::And: Out << "Instruction::And"; break;
         case Instruction::Or:  Out << "Instruction::Or";  break;






More information about the llvm-commits mailing list