From 63af07fdec14331e7e1982d97390409214c2d8b5 Mon Sep 17 00:00:00 2001 From: Karl Schimpf Date: Thu, 25 Jul 2013 09:57:20 -0700 Subject: Remove constant expressions and constant inline assembly from the PNaCl reader/writer, since they can't appear in PNaCl bitcode. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3590 R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/20172002 --- include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h index 5a1e350a29..3c317cad75 100644 --- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h +++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h @@ -151,22 +151,20 @@ namespace naclbitc { CST_CODE_AGGREGATE = 7, // AGGREGATE: [n x value number] CST_CODE_STRING = 8, // STRING: [values] CST_CODE_CSTRING = 9, // CSTRING: [values] - CST_CODE_CE_BINOP = 10, // CE_BINOP: [opcode, opval, opval] - CST_CODE_CE_CAST = 11, // CE_CAST: [opcode, opty, opval] - CST_CODE_CE_GEP = 12, // CE_GEP: [n x operands] - CST_CODE_CE_SELECT = 13, // CE_SELECT: [opval, opval, opval] - CST_CODE_CE_EXTRACTELT = 14, // CE_EXTRACTELT: [opty, opval, opval] - CST_CODE_CE_INSERTELT = 15, // CE_INSERTELT: [opval, opval, opval] - CST_CODE_CE_SHUFFLEVEC = 16, // CE_SHUFFLEVEC: [opval, opval, opval] - CST_CODE_CE_CMP = 17, // CE_CMP: [opty, opval, opval, pred] - CST_CODE_INLINEASM_OLD = 18, // INLINEASM: [sideeffect|alignstack, - // asmstr,conststr] - CST_CODE_CE_SHUFVEC_EX = 19, // SHUFVEC_EX: [opty, opval, opval, opval] - CST_CODE_CE_INBOUNDS_GEP = 20,// INBOUNDS_GEP: [n x operands] + CST_CODE_CE_BINOP = 10, // Not used in PNaCl. + CST_CODE_CE_CAST = 11, // Not used in PNaCl. + CST_CODE_CE_GEP = 12, // Not used in PNaCl. + CST_CODE_CE_SELECT = 13, // Not used in PNaCl. + CST_CODE_CE_EXTRACTELT = 14, // Not used in PNaCl. + CST_CODE_CE_INSERTELT = 15, // Not used in PNaCl. + CST_CODE_CE_SHUFFLEVEC = 16, // Not used in PNaCl. + CST_CODE_CE_CMP = 17, // Not used in PNaCl. + CST_CODE_INLINEASM_OLD = 18, // No longer used. + CST_CODE_CE_SHUFVEC_EX = 19, // Not used in PNaCl. + CST_CODE_CE_INBOUNDS_GEP = 20,// Not used in PNaCl. CST_CODE_BLOCKADDRESS = 21, // CST_CODE_BLOCKADDRESS [fnty, fnval, bb#] CST_CODE_DATA = 22, // DATA: [n x elements] - CST_CODE_INLINEASM = 23 // INLINEASM: [sideeffect|alignstack| - // asmdialect,asmstr,conststr] + CST_CODE_INLINEASM = 23 // Not used in PNaCl. }; /// GlobalVarOpcodes - These are values used in the bitcode files to -- cgit v1.2.3-18-g5258