//===- BitCodeEnums.h - Core enums for the bitstream format -----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This header defines "core" bitstream enum values. // It has been separated from the other header that defines bitstream enum // values, BitCodes.h, to allow tools to track changes to the various // bitstream and bitcode enums without needing to fully or partially build // LLVM itself. // // The enum values defined in this file should be considered permanent. If // new features are added, they should have values added at the end of the // respective lists. // //===----------------------------------------------------------------------===// #ifndef LLVM_BITSTREAM_BITCODEENUMS_H #define LLVM_BITSTREAM_BITCODEENUMS_H namespace llvm { /// Offsets of the 32-bit fields of bitstream wrapper header. enum BitstreamWrapperHeader : unsigned { … }; namespace bitc { enum StandardWidths { … }; // The standard abbrev namespace always has a way to exit a block, enter a // nested block, define abbrevs, and define an unabbreviated record. enum FixedAbbrevIDs { … }; /// StandardBlockIDs - All bitcode files can optionally include a BLOCKINFO /// block, which contains metadata about other blocks in the file. enum StandardBlockIDs { … }; /// BlockInfoCodes - The blockinfo block contains metadata about user-defined /// blocks. enum BlockInfoCodes { … }; } // namespace bitc } // namespace llvm #endif