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 // |
11 // This header defines Bitcode enum values for NaCl bitcode wire format. | 11 // This header defines Bitcode enum values for NaCl bitcode wire format. |
12 // | 12 // |
13 // The enum values defined in this file should be considered permanent. If | 13 // The enum values defined in this file should be considered permanent. If |
14 // new features are added, they should have values added at the end of the | 14 // new features are added, they should have values added at the end of the |
15 // respective lists. | 15 // respective lists. |
16 // | 16 // |
17 //===----------------------------------------------------------------------===// | 17 //===----------------------------------------------------------------------===// |
18 | 18 |
19 #ifndef LLVM_BITCODE_NACL_NACLLLVMBITCODES_H | 19 #ifndef LLVM_BITCODE_NACL_NACLLLVMBITCODES_H |
20 #define LLVM_BITCODE_NACL_NACLLLVMBITCODES_H | 20 #define LLVM_BITCODE_NACL_NACLLLVMBITCODES_H |
21 | 21 |
22 // TODO(kschimpf) Make a NaCl version of BitCodes.h, so that block id's | 22 #include "llvm/Bitcode/NaCl/NaClBitCodes.h" |
23 // and abbreviations can be modified. | |
24 #include "llvm/Bitcode/BitCodes.h" | |
25 | 23 |
26 namespace llvm { | 24 namespace llvm { |
27 namespace naclbitc { | 25 namespace naclbitc { |
28 // The only top-level block type defined is for a module. | 26 // The only top-level block type defined is for a module. |
29 enum NaClBlockIDs { | 27 enum NaClBlockIDs { |
30 // Blocks | 28 // Blocks |
31 MODULE_BLOCK_ID = bitc::FIRST_APPLICATION_BLOCKID, | 29 MODULE_BLOCK_ID = FIRST_APPLICATION_BLOCKID, |
32 | 30 |
33 // Module sub-block id's. | 31 // Module sub-block id's. |
34 PARAMATTR_BLOCK_ID, | 32 PARAMATTR_BLOCK_ID, |
35 PARAMATTR_GROUP_BLOCK_ID, | 33 PARAMATTR_GROUP_BLOCK_ID, |
36 | 34 |
37 CONSTANTS_BLOCK_ID, | 35 CONSTANTS_BLOCK_ID, |
38 FUNCTION_BLOCK_ID, | 36 FUNCTION_BLOCK_ID, |
39 | 37 |
40 UNUSED_ID1, | 38 UNUSED_ID1, |
41 | 39 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // ordering, synchscope] | 328 // ordering, synchscope] |
331 }; | 329 }; |
332 | 330 |
333 enum NaClUseListCodes { | 331 enum NaClUseListCodes { |
334 USELIST_CODE_ENTRY = 1 // USELIST_CODE_ENTRY: TBD. | 332 USELIST_CODE_ENTRY = 1 // USELIST_CODE_ENTRY: TBD. |
335 }; | 333 }; |
336 } // End naclbitc namespace | 334 } // End naclbitc namespace |
337 } // End llvm namespace | 335 } // End llvm namespace |
338 | 336 |
339 #endif | 337 #endif |
OLD | NEW |