#pragma once // // This file is distributed under the MIT License. See LICENSE.md for details. // #include #include #include "llvm/ADT/ArrayRef.h" #include "llvm/Support/raw_ostream.h" #include "revng/Pipeline/Contract.h" #include "revng/Pipes/StringMap.h" #include "revng/Yield/Pipes/YieldControlFlow.h" namespace revng::pipes { class YieldAssembly { public: static constexpr const auto Name = "yield-assembly"; public: inline std::array getContract() const { return { pipeline::ContractGroup(kinds::FunctionAssemblyInternal, 0, kinds::FunctionAssemblyPTML, 1, pipeline::InputPreservation::Preserve) }; } public: void run(pipeline::ExecutionContext &Context, const FunctionAssemblyStringMap &Input, FunctionAssemblyPTMLStringMap &Output); }; } // namespace revng::pipes