diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-12 05:51:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-12 05:51:49 +0000 |
commit | 92412466b6373e12fc5015c9c03a91b8877004fa (patch) | |
tree | c279b08c008b386dc18105548e80f426bdfb13b2 /llvm/lib/Bytecode/Reader/InstructionReader.cpp | |
parent | 6536f0c35f5014c2ad56eeb71d32719aab2cda13 (diff) | |
download | bcm5719-llvm-92412466b6373e12fc5015c9c03a91b8877004fa.tar.gz bcm5719-llvm-92412466b6373e12fc5015c9c03a91b8877004fa.zip |
Read select instrs from bytecode
llvm-svn: 12314
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/InstructionReader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index 8912704c6f6..0ade581c1fd 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp @@ -156,6 +156,11 @@ void BytecodeParser::ParseInstruction(const unsigned char *&Buf, 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"); |