Files
revng-revng/include/revng/Yield/Pipes/YieldCallGraph.h
2024-09-27 12:07:18 +02:00

39 lines
1004 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include <array>
#include <string>
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/raw_ostream.h"
#include "revng/Pipeline/Contract.h"
#include "revng/Pipes/StringMap.h"
#include "revng/Yield/Pipes/ProcessCallGraph.h"
namespace revng::pipes {
class YieldCallGraph {
public:
static constexpr const auto Name = "yield-call-graph";
public:
inline std::array<pipeline::ContractGroup, 1> getContract() const {
return { pipeline::ContractGroup(kinds::BinaryCrossRelations,
0,
kinds::CallGraphSVG,
1,
pipeline::InputPreservation::Preserve) };
}
public:
void run(pipeline::ExecutionContext &Context,
const CrossRelationsFileContainer &InputFile,
CallGraphSVGFileContainer &OutputFile);
};
} // namespace revng::pipes