mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -33,7 +33,8 @@ namespace bitc {
|
||||
CONSTANTS_BLOCK_ID,
|
||||
FUNCTION_BLOCK_ID,
|
||||
TYPE_SYMTAB_BLOCK_ID,
|
||||
VALUE_SYMTAB_BLOCK_ID
|
||||
VALUE_SYMTAB_BLOCK_ID,
|
||||
METADATA_BLOCK_ID
|
||||
};
|
||||
|
||||
|
||||
@ -106,6 +107,9 @@ namespace bitc {
|
||||
VST_CODE_BBENTRY = 2 // VST_BBENTRY: [bbid, namechar x N]
|
||||
};
|
||||
|
||||
enum MetadataCodes {
|
||||
METADATA_STRING = 1 // MDString: [values]
|
||||
};
|
||||
// The constants block (CONSTANTS_BLOCK_ID) describes emission for each
|
||||
// constant and maintains an implicit current type value.
|
||||
enum ConstantsCodes {
|
||||
@ -128,7 +132,6 @@ namespace bitc {
|
||||
CST_CODE_CE_CMP = 17, // CE_CMP: [opty, opval, opval, pred]
|
||||
CST_CODE_INLINEASM = 18, // INLINEASM: [sideeffect,asmstr,conststr]
|
||||
CST_CODE_CE_SHUFVEC_EX = 19, // SHUFVEC_EX: [opty, opval, opval, opval]
|
||||
CST_CODE_MDSTRING = 20, // MDSTRING: [values]
|
||||
CST_CODE_MDNODE = 21 // MDNODE: [n x (type num, value num)]
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user