diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-23 23:29:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-23 23:29:59 +0000 |
commit | 2c783e46c3480c7fa8b91b10610a8e0d92e33ccd (patch) | |
tree | 9c462e1470af6184a676c95d100822cb3dbbc610 /include/llvm/Bitcode | |
parent | df1349546f486edff288d88bd446b64fe9dfd6a0 (diff) | |
download | external_llvm-2c783e46c3480c7fa8b91b10610a8e0d92e33ccd.zip external_llvm-2c783e46c3480c7fa8b91b10610a8e0d92e33ccd.tar.gz external_llvm-2c783e46c3480c7fa8b91b10610a8e0d92e33ccd.tar.bz2 |
add codes for constants table
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r-- | include/llvm/Bitcode/LLVMBitCodes.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/llvm/Bitcode/LLVMBitCodes.h b/include/llvm/Bitcode/LLVMBitCodes.h index bf59893..939aa3d 100644 --- a/include/llvm/Bitcode/LLVMBitCodes.h +++ b/include/llvm/Bitcode/LLVMBitCodes.h @@ -30,7 +30,7 @@ namespace bitc { // Module sub-block id's TYPE_BLOCK_ID = 1, MODULEINFO_BLOCK_ID = 2, - GLOBALCONSTANTS_BLOCK_ID = 3, + CONSTANTS_BLOCK_ID = 3, FUNCTION_BLOCK_ID = 4, TYPE_SYMTAB_BLOCK_ID = 5, VALUE_SYMTAB_BLOCK_ID = 6 @@ -78,12 +78,26 @@ namespace bitc { // The type symbol table only has one code (TST_ENTRY_CODE). enum TypeSymtabCodes { - TST_ENTRY_CODE = 1 // TST_ENTRY: [typeid, namelen, namechar x N] + TST_CODE_ENTRY = 1 // TST_ENTRY: [typeid, namelen, namechar x N] }; // The value symbol table only has one code (VST_ENTRY_CODE). enum ValueSymtabCodes { - VST_ENTRY_CODE = 1 // VST_ENTRY: [valid, namelen, namechar x N] + VST_CODE_ENTRY = 1 // VST_ENTRY: [valid, namelen, namechar x N] + }; + + // The constants block (CONSTANTS_BLOCK_ID) describes emission for each + // constant and maintains an implicit current type value. + enum ConstantsSymtabCodes { + CST_CODE_SETTYPE = 1, // SETTYPE: [typeid] + CST_CODE_NULL = 2, // NULL + CST_CODE_UNDEF = 3, // UNDEF + CST_CODE_INTEGER = 4, // INTEGER: [intval] + CST_CODE_WIDE_INTEGER = 5, // WIDE_INTEGER: [n, n x intval] + CST_CODE_FLOAT = 6, // FLOAT: [fpval] + CST_CODE_AGGREGATE = 7, // AGGREGATE: [n, n x value number] + CST_CODE_CONSTEXPR = 8 // CONSTEXPR: [opcode, n, n x val#] + // TODO: CE_BINOP ETC }; } // End bitc namespace |