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 | e3ac22a20493981070075930460e1befa08ddf72 (patch) | |
tree | dcc8b29223f324d2d19908f48f149b0813877267 | |
parent | 76f0ff394de5656b9e6e6a4016a2a5f3fbece7ad (diff) | |
download | external_llvm-e3ac22a20493981070075930460e1befa08ddf72.zip external_llvm-e3ac22a20493981070075930460e1befa08ddf72.tar.gz external_llvm-e3ac22a20493981070075930460e1befa08ddf72.tar.bz2 |
Read select instrs from bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12314 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 8912704..0ade581 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/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"); |