Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Side by Side Diff: include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h

Issue 14682013: Copy BitCodes.h to NaCl/NaClBitCodes.h (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698