chromium/v8/src/compiler/turboshaft/graph-visualizer.cc

// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/compiler/graph-visualizer.h"

#include "src/base/small-vector.h"
#include "src/compiler/node-origin-table.h"
#include "src/compiler/turboshaft/graph-visualizer.h"

namespace v8::internal::compiler::turboshaft {

JSONTurboshaftGraphWriter::JSONTurboshaftGraphWriter(
    std::ostream& os, const Graph& turboshaft_graph, NodeOriginTable* origins,
    Zone* zone)
    :{}

void JSONTurboshaftGraphWriter::Print() {}

void JSONTurboshaftGraphWriter::PrintNodes() {}

void JSONTurboshaftGraphWriter::PrintEdges() {}

void JSONTurboshaftGraphWriter::PrintBlocks() {}

std::ostream& operator<<(std::ostream& os, const TurboshaftGraphAsJSON& ad) {}

void PrintTurboshaftCustomDataPerOperation(
    std::ofstream& stream, const char* data_name, const Graph& graph,
    std::function<bool(std::ostream&, const Graph&, OpIndex)> printer) {}

void PrintTurboshaftCustomDataPerBlock(
    std::ofstream& stream, const char* data_name, const Graph& graph,
    std::function<bool(std::ostream&, const Graph&, BlockIndex)> printer) {}

}  // namespace v8::internal::compiler::turboshaft