//===-- BitstreamRemarkParser.h - Bitstream parser --------------*- 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 file provides an implementation of the remark parser using the LLVM // Bitstream format. // //===----------------------------------------------------------------------===// #ifndef LLVM_REMARKS_BITSTREAMREMARKPARSER_H #define LLVM_REMARKS_BITSTREAMREMARKPARSER_H #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" #include "llvm/Bitstream/BitstreamReader.h" #include "llvm/Support/Error.h" #include <array> #include <cstdint> #include <optional> namespace llvm { namespace remarks { /// Helper to parse a META_BLOCK for a bitstream remark container. struct BitstreamMetaParserHelper { … }; /// Helper to parse a REMARK_BLOCK for a bitstream remark container. struct BitstreamRemarkParserHelper { … }; /// Helper to parse any bitstream remark container. struct BitstreamParserHelper { … }; } // end namespace remarks } // end namespace llvm #endif // LLVM_REMARKS_BITSTREAMREMARKPARSER_H