2003-09-30 18:37:50 +00:00
|
|
|
//===-- llvm/Bytecode/Format.h - VM bytecode file format info ---*- C++ -*-===//
|
2001-06-06 20:29:01 +00:00
|
|
|
//
|
|
|
|
// This header defines intrinsic constants that are useful to libraries that
|
|
|
|
// need to hack on bytecode files directly, like the reader and writer.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_BYTECODE_FORMAT_H
|
|
|
|
#define LLVM_BYTECODE_FORMAT_H
|
|
|
|
|
|
|
|
class BytecodeFormat { // Throw the constants into a poorman's namespace...
|
|
|
|
BytecodeFormat(); // do not implement
|
|
|
|
public:
|
|
|
|
|
|
|
|
// ID Numbers that are used in bytecode files...
|
|
|
|
enum FileBlockIDs {
|
|
|
|
// File level identifiers...
|
|
|
|
Module = 0x01,
|
|
|
|
|
|
|
|
// Module subtypes:
|
2002-03-29 03:51:11 +00:00
|
|
|
Function = 0x11,
|
2001-06-06 20:29:01 +00:00
|
|
|
ConstantPool,
|
|
|
|
SymbolTable,
|
|
|
|
ModuleGlobalInfo,
|
2003-03-19 20:48:27 +00:00
|
|
|
GlobalTypePlane,
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2003-09-30 18:37:50 +00:00
|
|
|
// Function subtypes:
|
2001-06-06 20:29:01 +00:00
|
|
|
MethodInfo = 0x21,
|
|
|
|
// Can also have ConstantPool block
|
|
|
|
// Can also have SymbolTable block
|
|
|
|
BasicBlock = 0x31, // May contain many basic blocks
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|