mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
f4d63759de
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
33 lines
924 B
C++
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
|