Files
revng-revng/include/revng/Pipes/CallGraphCache.h
Massimo Fioravanti de9fb4ae7e Add CallGraphCache
2022-03-10 13:51:28 +01:00

47 lines
1013 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include <string>
#include "revng/Pipeline/YamlizableGlobal.h"
#include "revng/Support/YAMLTraits.h"
#include "revng/TupleTree/TupleLikeTraits.h"
/* TUPLE-TREE-YAML
name: CallGraphCache
doc: don't know
type: struct
fields:
- name: Name
type: std::string
key:
- Name
TUPLE-TREE-YAML */
namespace pipeline {
class Context;
}
#include "revng/Pipes/Generated/Early/CallGraphCache.h"
class revng::pipes::CallGraphCache
: public revng::pipes::generated::CallGraphCache {
public:
static constexpr const char *GlobalName = "CallGraphCache.yml";
using revng::pipes::generated::CallGraphCache::CallGraphCache;
static CallGraphCache &fromContext(pipeline::Context &Ctx);
static const CallGraphCache &fromContext(const pipeline::Context &Ctx);
};
#include "revng/Pipes/Generated/Late/CallGraphCache.h"
namespace revng::pipes {
using CallGraphGlobal = pipeline::YamlizableGlobal<CallGraphCache>;
}