llvm.org GIT mirror llvm / 2c783e4
add codes for constants table git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36382 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 17 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2929 // Module sub-block id's
3030 TYPE_BLOCK_ID = 1,
3131 MODULEINFO_BLOCK_ID = 2,
32 GLOBALCONSTANTS_BLOCK_ID = 3,
32 CONSTANTS_BLOCK_ID = 3,
3333 FUNCTION_BLOCK_ID = 4,
3434 TYPE_SYMTAB_BLOCK_ID = 5,
3535 VALUE_SYMTAB_BLOCK_ID = 6
7777
7878 // The type symbol table only has one code (TST_ENTRY_CODE).
7979 enum TypeSymtabCodes {
80 TST_ENTRY_CODE = 1 // TST_ENTRY: [typeid, namelen, namechar x N]
80 TST_CODE_ENTRY = 1 // TST_ENTRY: [typeid, namelen, namechar x N]
8181 };
8282
8383 // The value symbol table only has one code (VST_ENTRY_CODE).
8484 enum ValueSymtabCodes {
85 VST_ENTRY_CODE = 1 // VST_ENTRY: [valid, namelen, namechar x N]
85 VST_CODE_ENTRY = 1 // VST_ENTRY: [valid, namelen, namechar x N]
86 };
87
88 // The constants block (CONSTANTS_BLOCK_ID) describes emission for each
89 // constant and maintains an implicit current type value.
90 enum ConstantsSymtabCodes {
91 CST_CODE_SETTYPE = 1, // SETTYPE: [typeid]
92 CST_CODE_NULL = 2, // NULL
93 CST_CODE_UNDEF = 3, // UNDEF
94 CST_CODE_INTEGER = 4, // INTEGER: [intval]
95 CST_CODE_WIDE_INTEGER = 5, // WIDE_INTEGER: [n, n x intval]
96 CST_CODE_FLOAT = 6, // FLOAT: [fpval]
97 CST_CODE_AGGREGATE = 7, // AGGREGATE: [n, n x value number]
98 CST_CODE_CONSTEXPR = 8 // CONSTEXPR: [opcode, n, n x val#]
99 // TODO: CE_BINOP ETC
86100 };
87101
88102 } // End bitc namespace