1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/include/llvm/Bytecode/Format.h

56 lines
1.7 KiB
C
Raw Normal View History

//===-- llvm/Bytecode/Format.h - VM bytecode file format info ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
2001-06-06 22:29:01 +02: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
namespace llvm {
2001-06-06 22:29:01 +02:00
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 04:51:11 +01:00
Function = 0x11,
2001-06-06 22:29:01 +02:00
ConstantPool,
SymbolTable,
ModuleGlobalInfo,
2003-03-19 21:48:27 +01:00
GlobalTypePlane,
2001-06-06 22:29:01 +02:00
// Function subtypes:
2001-06-06 22:29:01 +02:00
// Can also have ConstantPool block
// Can also have SymbolTable block
BasicBlock = 0x31,// May contain many basic blocks (obsolete since LLVM 1.1)
2003-12-01 08:08:06 +01:00
// InstructionList - The instructions in the body of a function. This
// superceeds the old BasicBlock node used in LLVM 1.0.
2003-12-01 08:08:06 +01:00
InstructionList = 0x32,
// CompactionTable - blocks with this id are used to define local remapping
// tables for a function, allowing the indices used within the function to
// be as small as possible. This often allows the instructions to be
// encoded more efficiently.
CompactionTable = 0x33,
2001-06-06 22:29:01 +02:00
};
};
} // End llvm namespace
2001-06-06 22:29:01 +02:00
#endif