mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
d55aa9b9e6
Now * is just a pipeline frontend shorthand.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
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/FunctionStringMap.h"
|
|
#include "revng/Yield/Pipes/YieldControlFlow.h"
|
|
|
|
namespace revng::pipes {
|
|
|
|
class YieldAssembly {
|
|
public:
|
|
static constexpr const auto Name = "YieldAssembly";
|
|
|
|
public:
|
|
inline std::array<pipeline::ContractGroup, 1> getContract() const {
|
|
return { pipeline::ContractGroup(kinds::FunctionAssemblyInternal,
|
|
0,
|
|
kinds::FunctionAssemblyPTML,
|
|
1,
|
|
pipeline::InputPreservation::Preserve) };
|
|
}
|
|
|
|
public:
|
|
void run(pipeline::Context &Context,
|
|
const FunctionAssemblyStringMap &Input,
|
|
FunctionAssemblyPTMLStringMap &Output);
|
|
|
|
void print(const pipeline::Context &Ctx,
|
|
llvm::raw_ostream &OS,
|
|
llvm::ArrayRef<std::string> ContainerNames) const;
|
|
};
|
|
|
|
} // namespace revng::pipes
|