#include "llvm/Remarks/RemarkParser.h"
#include "BitstreamRemarkParser.h"
#include "YAMLRemarkParser.h"
#include "llvm-c/Remarks.h"
#include "llvm/Support/CBindingWrapping.h"
#include <optional>
usingnamespacellvm;
usingnamespacellvm::remarks;
char EndOfFileError::ID = …;
ParsedStringTable::ParsedStringTable(StringRef InBuffer) : … { … }
Expected<StringRef> ParsedStringTable::operator[](size_t Index) const { … }
Expected<std::unique_ptr<RemarkParser>>
llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf) { … }
Expected<std::unique_ptr<RemarkParser>>
llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf,
ParsedStringTable StrTab) { … }
Expected<std::unique_ptr<RemarkParser>>
llvm::remarks::createRemarkParserFromMeta(
Format ParserFormat, StringRef Buf, std::optional<ParsedStringTable> StrTab,
std::optional<StringRef> ExternalFilePrependPath) { … }
namespace {
struct CParser { … };
}
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(…)
extern "C" LLVMRemarkParserRef LLVMRemarkParserCreateYAML(const void *Buf,
uint64_t Size) { … }
extern "C" LLVMRemarkParserRef LLVMRemarkParserCreateBitstream(const void *Buf,
uint64_t Size) { … }
extern "C" LLVMRemarkEntryRef
LLVMRemarkParserGetNext(LLVMRemarkParserRef Parser) { … }
extern "C" LLVMBool LLVMRemarkParserHasError(LLVMRemarkParserRef Parser) { … }
extern "C" const char *
LLVMRemarkParserGetErrorMessage(LLVMRemarkParserRef Parser) { … }
extern "C" void LLVMRemarkParserDispose(LLVMRemarkParserRef Parser) { … }