| OLD | NEW |
| 1 //===- NaClLLVMBitCodes.h ---------------------------------------*- C++ -*-===// | 1 //===- NaClLLVMBitCodes.h ---------------------------------------*- C++ -*-===// |
| 2 // Enum values for the NaCl bitcode wire format | 2 // Enum values for the NaCl bitcode wire format |
| 3 // | 3 // |
| 4 // The LLVM Compiler Infrastructure | 4 // The LLVM Compiler Infrastructure |
| 5 // | 5 // |
| 6 // This file is distributed under the University of Illinois Open Source | 6 // This file is distributed under the University of Illinois Open Source |
| 7 // License. See LICENSE.TXT for details. | 7 // License. See LICENSE.TXT for details. |
| 8 // | 8 // |
| 9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
| 10 // | 10 // |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 TYPE_CODE_LABEL = 5, // LABEL | 90 TYPE_CODE_LABEL = 5, // LABEL |
| 91 TYPE_CODE_OPAQUE = 6, // Not used in PNaCl. | 91 TYPE_CODE_OPAQUE = 6, // Not used in PNaCl. |
| 92 TYPE_CODE_INTEGER = 7, // INTEGER: [width] | 92 TYPE_CODE_INTEGER = 7, // INTEGER: [width] |
| 93 TYPE_CODE_POINTER = 8, // POINTER: [pointee type] | 93 TYPE_CODE_POINTER = 8, // POINTER: [pointee type] |
| 94 | 94 |
| 95 TYPE_CODE_FUNCTION_OLD = 9, // Not used in PNaCl. | 95 TYPE_CODE_FUNCTION_OLD = 9, // Not used in PNaCl. |
| 96 | 96 |
| 97 TYPE_CODE_HALF = 10, // Not used in PNaCl. | 97 TYPE_CODE_HALF = 10, // Not used in PNaCl. |
| 98 | 98 |
| 99 TYPE_CODE_ARRAY = 11, // Not used in PNaCl. | 99 TYPE_CODE_ARRAY = 11, // Not used in PNaCl. |
| 100 TYPE_CODE_VECTOR = 12, // Not used in PNaCl. | 100 TYPE_CODE_VECTOR = 12, // VECTOR: [numelts, eltty] |
| 101 | 101 |
| 102 // These are not with the other floating point types because they're | 102 // These are not with the other floating point types because they're |
| 103 // a late addition, and putting them in the right place breaks | 103 // a late addition, and putting them in the right place breaks |
| 104 // binary compatibility. | 104 // binary compatibility. |
| 105 TYPE_CODE_X86_FP80 = 13, // Not used in PNaCl. | 105 TYPE_CODE_X86_FP80 = 13, // Not used in PNaCl. |
| 106 TYPE_CODE_FP128 = 14, // Not used in PNaCl. | 106 TYPE_CODE_FP128 = 14, // Not used in PNaCl. |
| 107 TYPE_CODE_PPC_FP128= 15, // Not used in PNaCl. | 107 TYPE_CODE_PPC_FP128= 15, // Not used in PNaCl. |
| 108 | 108 |
| 109 TYPE_CODE_METADATA = 16, // Not used in PNaCl. | 109 TYPE_CODE_METADATA = 16, // Not used in PNaCl. |
| 110 | 110 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 FUNC_CODE_DECLAREBLOCKS = 1, // DECLAREBLOCKS: [n] | 309 FUNC_CODE_DECLAREBLOCKS = 1, // DECLAREBLOCKS: [n] |
| 310 | 310 |
| 311 FUNC_CODE_INST_BINOP = 2, // BINOP: [opval, opval, opcode] | 311 FUNC_CODE_INST_BINOP = 2, // BINOP: [opval, opval, opcode] |
| 312 // Note: because old PNaCl bitcode files | 312 // Note: because old PNaCl bitcode files |
| 313 // may contain flags (which we now ignore), | 313 // may contain flags (which we now ignore), |
| 314 // the reader must also support: | 314 // the reader must also support: |
| 315 // BINOP: [opval, opval, opcode, flags] | 315 // BINOP: [opval, opval, opcode, flags] |
| 316 FUNC_CODE_INST_CAST = 3, // CAST: [opval, destty, castopc] | 316 FUNC_CODE_INST_CAST = 3, // CAST: [opval, destty, castopc] |
| 317 FUNC_CODE_INST_GEP = 4, // Not used in PNaCl. | 317 FUNC_CODE_INST_GEP = 4, // Not used in PNaCl. |
| 318 FUNC_CODE_INST_SELECT = 5, // Not used in PNaCl. Replaced by VSELECT. | 318 FUNC_CODE_INST_SELECT = 5, // Not used in PNaCl. Replaced by VSELECT. |
| 319 FUNC_CODE_INST_EXTRACTELT = 6, // Not used in PNaCl. | 319 FUNC_CODE_INST_EXTRACTELT = 6, // EXTRACTELT: [opval, opval] |
| 320 FUNC_CODE_INST_INSERTELT = 7, // Not used in PNaCl. | 320 FUNC_CODE_INST_INSERTELT = 7, // INSERTELT: [opval, opval, opval] |
| 321 FUNC_CODE_INST_SHUFFLEVEC = 8, // Not used in PNaCl. | 321 FUNC_CODE_INST_SHUFFLEVEC = 8, // Not used in PNaCl. |
| 322 FUNC_CODE_INST_CMP = 9, // Not used in PNaCl. Replaced by CMP2. | 322 FUNC_CODE_INST_CMP = 9, // Not used in PNaCl. Replaced by CMP2. |
| 323 FUNC_CODE_INST_RET = 10, // RET: [opval<optional>] | 323 FUNC_CODE_INST_RET = 10, // RET: [opval<optional>] |
| 324 FUNC_CODE_INST_BR = 11, // BR: [bb#, bb#, cond] or [bb#] | 324 FUNC_CODE_INST_BR = 11, // BR: [bb#, bb#, cond] or [bb#] |
| 325 FUNC_CODE_INST_SWITCH = 12, // SWITCH: [opty, op0, op1, ...] | 325 FUNC_CODE_INST_SWITCH = 12, // SWITCH: [opty, op0, op1, ...] |
| 326 FUNC_CODE_INST_INVOKE = 13, // Not used in PNaCl. | 326 FUNC_CODE_INST_INVOKE = 13, // Not used in PNaCl. |
| 327 // 14 is unused. | 327 // 14 is unused. |
| 328 FUNC_CODE_INST_UNREACHABLE = 15, // UNREACHABLE | 328 FUNC_CODE_INST_UNREACHABLE = 15, // UNREACHABLE |
| 329 | 329 |
| 330 FUNC_CODE_INST_PHI = 16, // PHI: [ty, val0,bb0, ...] | 330 FUNC_CODE_INST_PHI = 16, // PHI: [ty, val0,bb0, ...] |
| (...skipping 29 matching lines...) Expand all Loading... |
| 360 FUNC_CODE_INST_LOADATOMIC = 41, // Not used in PNaCl. | 360 FUNC_CODE_INST_LOADATOMIC = 41, // Not used in PNaCl. |
| 361 FUNC_CODE_INST_STOREATOMIC = 42, // Not used in PNaCl. | 361 FUNC_CODE_INST_STOREATOMIC = 42, // Not used in PNaCl. |
| 362 FUNC_CODE_INST_FORWARDTYPEREF = 43, // TYPE: [opval, ty] | 362 FUNC_CODE_INST_FORWARDTYPEREF = 43, // TYPE: [opval, ty] |
| 363 // CALL_INDIRECT: [cc, fnid, returnty, args...] | 363 // CALL_INDIRECT: [cc, fnid, returnty, args...] |
| 364 FUNC_CODE_INST_CALL_INDIRECT = 44 | 364 FUNC_CODE_INST_CALL_INDIRECT = 44 |
| 365 }; | 365 }; |
| 366 } // End naclbitc namespace | 366 } // End naclbitc namespace |
| 367 } // End llvm namespace | 367 } // End llvm namespace |
| 368 | 368 |
| 369 #endif | 369 #endif |
| OLD | NEW |