Files
revng-revng/include/revng/Pipes/Kinds.h
Giacomo Vercesi f4d63759de PipelineC: expose kinds, ranks and more
Adds missing API functions to PipelineC that will be needed by the
GraphQL API:

* Kinds enumeration
* Get Rank and parent of a Kind
* Enumerate and inspect Ranks
* Get a Step's parent

Included are some docstring fixes
2022-04-26 15:05:30 +02:00

33 lines
924 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/Pipeline/Kind.h"
#include "revng/Pipes/RootKind.h"
#include "revng/Pipes/TaggedFunctionKind.h"
namespace revng::pipes {
inline pipeline::Rank RootRank("root");
inline pipeline::Rank FunctionsRank("function", RootRank);
inline pipeline::Kind Binary("Binary", &RootRank);
inline RootKind Root("Root", &RootRank);
inline IsolatedRootKind IsolatedRoot("IsolatedRoot", Root);
inline TaggedFunctionKind
Isolated("Isolated", &FunctionsRank, FunctionTags::Isolated);
inline TaggedFunctionKind
ABIEnforced("ABIEnforced", &FunctionsRank, FunctionTags::ABIEnforced);
inline TaggedFunctionKind
CSVsPromoted("CSVsPromoted", &FunctionsRank, FunctionTags::CSVsPromoted);
inline pipeline::Kind Object("Object", &RootRank);
inline pipeline::Kind Translated("Translated", &RootRank);
} // namespace revng::pipes