llvm/llvm/lib/Remarks/BitstreamRemarkSerializer.cpp

//===- BitstreamRemarkSerializer.cpp --------------------------------------===//
//
// 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 the implementation of the LLVM bitstream remark serializer
// using LLVM's bitstream writer.
//
//===----------------------------------------------------------------------===//

#include "llvm/Remarks/BitstreamRemarkSerializer.h"
#include "llvm/Remarks/Remark.h"
#include <optional>

usingnamespacellvm;
usingnamespacellvm::remarks;

BitstreamRemarkSerializerHelper::BitstreamRemarkSerializerHelper(
    BitstreamRemarkContainerType ContainerType)
    :{}

static void push(SmallVectorImpl<uint64_t> &R, StringRef Str) {}

static void setRecordName(unsigned RecordID, BitstreamWriter &Bitstream,
                          SmallVectorImpl<uint64_t> &R, StringRef Str) {}

static void initBlock(unsigned BlockID, BitstreamWriter &Bitstream,
                      SmallVectorImpl<uint64_t> &R, StringRef Str) {}

void BitstreamRemarkSerializerHelper::setupMetaBlockInfo() {}

void BitstreamRemarkSerializerHelper::setupMetaRemarkVersion() {}

void BitstreamRemarkSerializerHelper::emitMetaRemarkVersion(
    uint64_t RemarkVersion) {}

void BitstreamRemarkSerializerHelper::setupMetaStrTab() {}

void BitstreamRemarkSerializerHelper::emitMetaStrTab(
    const StringTable &StrTab) {}

void BitstreamRemarkSerializerHelper::setupMetaExternalFile() {}

void BitstreamRemarkSerializerHelper::emitMetaExternalFile(StringRef Filename) {}

void BitstreamRemarkSerializerHelper::setupRemarkBlockInfo() {}

void BitstreamRemarkSerializerHelper::setupBlockInfo() {}

void BitstreamRemarkSerializerHelper::emitMetaBlock(
    uint64_t ContainerVersion, std::optional<uint64_t> RemarkVersion,
    std::optional<const StringTable *> StrTab,
    std::optional<StringRef> Filename) {}

void BitstreamRemarkSerializerHelper::emitRemarkBlock(const Remark &Remark,
                                                      StringTable &StrTab) {}

void BitstreamRemarkSerializerHelper::flushToStream(raw_ostream &OS) {}

StringRef BitstreamRemarkSerializerHelper::getBuffer() {}

BitstreamRemarkSerializer::BitstreamRemarkSerializer(raw_ostream &OS,
                                                     SerializerMode Mode)
    :{}

BitstreamRemarkSerializer::BitstreamRemarkSerializer(raw_ostream &OS,
                                                     SerializerMode Mode,
                                                     StringTable StrTabIn)
    :{}

void BitstreamRemarkSerializer::emit(const Remark &Remark) {}

std::unique_ptr<MetaSerializer> BitstreamRemarkSerializer::metaSerializer(
    raw_ostream &OS, std::optional<StringRef> ExternalFilename) {}

void BitstreamMetaSerializer::emit() {}