1 //===-- llvm/Bytecode/Format.h - VM bytecode file format info ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This header defines intrinsic constants that are useful to libraries that
11 // need to hack on bytecode files directly, like the reader and writer.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_BYTECODE_FORMAT_H
16 #define LLVM_BYTECODE_FORMAT_H
20 class BytecodeFormat { // Throw the constants into a poorman's namespace...
21 BytecodeFormat(); // do not implement
24 // ID Numbers that are used in bytecode files...
26 // File level identifiers...
37 // Can also have ConstantPool block
38 // Can also have SymbolTable block
39 BasicBlock = 0x31,// May contain many basic blocks (obsolete since LLVM 1.1)
41 // InstructionList - The instructions in the body of a function. This
42 // superceeds the old BasicBlock node used in LLVM 1.0.
43 InstructionList = 0x32,
45 // CompactionTable - blocks with this id are used to define local remapping
46 // tables for a function, allowing the indices used within the function to
47 // be as small as possible. This often allows the instructions to be
48 // encoded more efficiently.
49 CompactionTable = 0x33,
53 } // End llvm namespace