[llvm-commits] CVS: llvm/lib/Bytecode/Reader/InstructionReader.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 11 23:52:40 PST 2004


Changes in directory llvm/lib/Bytecode/Reader:

InstructionReader.cpp updated: 1.67 -> 1.68

---
Log message:

Read select instrs from bytecode


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

Index: llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff -u llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.67 llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.68
--- llvm/lib/Bytecode/Reader/InstructionReader.cpp:1.67	Sun Feb  8 22:13:38 2004
+++ llvm/lib/Bytecode/Reader/InstructionReader.cpp	Thu Mar 11 23:51:49 2004
@@ -156,6 +156,11 @@
   case Instruction::Cast:
     Result = new CastInst(getValue(RI.Type, Args[0]), getType(Args[1]));
     break;
+  case Instruction::Select:
+    Result = new SelectInst(getValue(Type::BoolTyID, Args[0]),
+                            getValue(RI.Type, Args[1]),
+                            getValue(RI.Type, Args[2]));
+    break;
   case Instruction::PHI: {
     if (Args.size() == 0 || (Args.size() & 1))
       throw std::string("Invalid phi node encountered!\n");





More information about the llvm-commits mailing list