From 3beb037fee2d77e09a96fbd5a507a2eeea7e860e Mon Sep 17 00:00:00 2001 From: Karl Schimpf Date: Mon, 29 Jul 2013 08:41:58 -0700 Subject: Remove handling of nongenerable instructions in PNaCl reader. The PNaCl bitcode writer doesn't generate certain forms of instructions that the PNaCl bitcode writer accepts. Since these instructions do not get generated, remove them from the bitcode reader. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3590 R=jvoung@chromium.org Review URL: https://codereview.chromium.org/20442002 --- include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/llvm/Bitcode') diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h index 53f74f0ef4..5433ed5352 100644 --- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h +++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h @@ -270,12 +270,11 @@ namespace naclbitc { // [, flags]] FUNC_CODE_INST_CAST = 3, // CAST: [opval, destty, castopc] FUNC_CODE_INST_GEP = 4, // Not used in PNaCl. - FUNC_CODE_INST_SELECT = 5, // SELECT: [opval, opval, opval] + FUNC_CODE_INST_SELECT = 5, // Not used in PNaCl. Replaced by VSELECT. FUNC_CODE_INST_EXTRACTELT = 6, // Not used in PNaCl. FUNC_CODE_INST_INSERTELT = 7, // Not used in PNaCl. FUNC_CODE_INST_SHUFFLEVEC = 8, // Not used in PNaCl. - FUNC_CODE_INST_CMP = 9, // CMP: [opval, opval, pred] - + FUNC_CODE_INST_CMP = 9, // Not used in PNaCl. Replaced by CMP2. FUNC_CODE_INST_RET = 10, // RET: [opval] FUNC_CODE_INST_BR = 11, // BR: [bb#, bb#, cond] or [bb#] FUNC_CODE_INST_SWITCH = 12, // SWITCH: [opty, op0, op1, ...] -- cgit v1.2.3-70-g09d2