Files
Pietro Fezzardi 6a3ab92a9d Mark to-be-dropped pipeline names as legacy
Several components in both pipeline YAMLs are slated for removal.
Prepend a legacy prefix to their names, and to the matching c++ code, so
they are clearly distinguished from the new Clift-based pipeline until
they are dropped.
2026-06-15 17:28:22 +02:00

38 lines
1.0 KiB
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "llvm/ADT/StringRef.h"
#include "revng/ADT/TypeList.h"
#include "revng/Pipebox/Containers.h"
#include "revng/PipeboxCommon/Common.h"
#include "revng/PipeboxCommon/Model.h"
#include "revng/PipeboxCommon/RawContainer.h"
namespace revng::pypeline::piperuns {
class ModelToHeader {
private:
const model::Binary &Binary;
PTMLCBytesContainer &Buffer;
public:
static constexpr llvm::StringRef Name = "legacy-model-to-header";
using Arguments = TypeList<PipeRunArgument<PTMLCBytesContainer,
"Buffer",
"The output C header of the model",
Access::Write>>;
ModelToHeader(const Model &TheModel,
llvm::StringRef StaticConfig,
llvm::StringRef DynamicConfig,
PTMLCBytesContainer &Buffer);
void run();
};
} // namespace revng::pypeline::piperuns