llvm/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp

//===-- TraceHTR.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
//
//===----------------------------------------------------------------------===//

#include "TraceHTR.h"

#include "lldb/Symbol/Function.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "llvm/Support/JSON.h"
#include <optional>
#include <sstream>
#include <string>

usingnamespacelldb_private;
usingnamespacelldb;

size_t HTRBlockMetadata::GetNumInstructions() const {}

std::optional<llvm::StringRef>
HTRBlockMetadata::GetMostFrequentlyCalledFunction() const {}

llvm::DenseMap<ConstString, size_t> const &
HTRBlockMetadata::GetFunctionCalls() const {}

lldb::addr_t HTRBlockMetadata::GetFirstInstructionLoadAddress() const {}

size_t HTRBlock::GetOffset() const {}

size_t HTRBlock::GetSize() const {}

HTRBlockMetadata const &HTRBlock::GetMetadata() const {}

llvm::ArrayRef<HTRBlockLayerUP> TraceHTR::GetBlockLayers() const {}

HTRInstructionLayer const &TraceHTR::GetInstructionLayer() const {}

void TraceHTR::AddNewBlockLayer(HTRBlockLayerUP &&block_layer) {}

size_t IHTRLayer::GetLayerId() const {}

void HTRBlockLayer::AppendNewBlock(size_t block_id, HTRBlock &&block) {}

void HTRBlockLayer::AppendRepeatedBlock(size_t block_id) {}

llvm::ArrayRef<lldb::addr_t> HTRInstructionLayer::GetInstructionTrace() const {}

void HTRInstructionLayer::AddCallInstructionMetadata(
    lldb::addr_t load_addr, std::optional<ConstString> func_name) {}

void HTRInstructionLayer::AppendInstruction(lldb::addr_t load_addr) {}

HTRBlock const *HTRBlockLayer::GetBlockById(size_t block_id) const {}

llvm::ArrayRef<size_t> HTRBlockLayer::GetBlockIdTrace() const {}

size_t HTRBlockLayer::GetNumUnits() const {}

HTRBlockMetadata HTRInstructionLayer::GetMetadataByIndex(size_t index) const {}

size_t HTRInstructionLayer::GetNumUnits() const {}

HTRBlockMetadata HTRBlockLayer::GetMetadataByIndex(size_t index) const {}

TraceHTR::TraceHTR(Thread &thread, TraceCursor &cursor)
    :{}

void HTRBlockMetadata::MergeMetadata(
    HTRBlockMetadata &merged_metadata,
    HTRBlockMetadata const &metadata_to_merge) {}

HTRBlock IHTRLayer::MergeUnits(size_t start_unit_index, size_t num_units) {}

void TraceHTR::ExecutePasses() {}

llvm::Error TraceHTR::Export(std::string outfile) {}

HTRBlockLayerUP lldb_private::BasicSuperBlockMerge(IHTRLayer &layer) {}

llvm::json::Value lldb_private::toJSON(const TraceHTR &htr) {}

llvm::json::Value lldb_private::toJSON(const HTRBlock &block) {}

llvm::json::Value lldb_private::toJSON(const HTRBlockMetadata &metadata) {}