llvm/llvm/lib/XRay/FDRTraceWriter.cpp

//===- FDRTraceWriter.cpp - XRay FDR Trace Writer ---------------*- 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
//
//===----------------------------------------------------------------------===//
//
// Test a utility that can write out XRay FDR Mode formatted trace files.
//
//===----------------------------------------------------------------------===//
#include "llvm/XRay/FDRTraceWriter.h"
#include <tuple>

namespace llvm {
namespace xray {

namespace {

template <size_t Index> struct IndexedWriter {};

template <uint8_t Kind, class... Values>
Error writeMetadata(support::endian::Writer &OS, Values &&... Ds) {}

} // namespace

FDRTraceWriter::FDRTraceWriter(raw_ostream &O, const XRayFileHeader &H)
    :{}

FDRTraceWriter::~FDRTraceWriter() = default;

Error FDRTraceWriter::visit(BufferExtents &R) {}

Error FDRTraceWriter::visit(WallclockRecord &R) {}

Error FDRTraceWriter::visit(NewCPUIDRecord &R) {}

Error FDRTraceWriter::visit(TSCWrapRecord &R) {}

Error FDRTraceWriter::visit(CustomEventRecord &R) {}

Error FDRTraceWriter::visit(CustomEventRecordV5 &R) {}

Error FDRTraceWriter::visit(TypedEventRecord &R) {}

Error FDRTraceWriter::visit(CallArgRecord &R) {}

Error FDRTraceWriter::visit(PIDRecord &R) {}

Error FDRTraceWriter::visit(NewBufferRecord &R) {}

Error FDRTraceWriter::visit(EndBufferRecord &R) {}

Error FDRTraceWriter::visit(FunctionRecord &R) {}

} // namespace xray
} // namespace llvm