mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
7eeb9f50c0
`revng pipeline --verbose` will now print a list of equivalent commands for the current invocation.
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <string>
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
|
|
#include "revng/Pipeline/ContainerSet.h"
|
|
#include "revng/Pipeline/Contract.h"
|
|
#include "revng/Pipeline/LLVMContainer.h"
|
|
#include "revng/Pipeline/LLVMGlobalKindBase.h"
|
|
#include "revng/Pipeline/Target.h"
|
|
#include "revng/Pipes/LLVMContextWrapper.h"
|
|
|
|
namespace revng::pipes {
|
|
|
|
class LinkSupportPipe {
|
|
public:
|
|
static constexpr auto Name = "LinkSupport";
|
|
|
|
std::array<pipeline::ContractGroup, 1> getContract() const {
|
|
return { pipeline::ContractGroup(Root,
|
|
pipeline::Exactness::DerivedFrom,
|
|
0,
|
|
pipeline::InputPreservation::Preserve) };
|
|
}
|
|
|
|
void run(const pipeline::Context &Ctx, pipeline::LLVMContainer &TargetsList);
|
|
|
|
void print(const pipeline::Context &Ctx,
|
|
llvm::raw_ostream &OS,
|
|
llvm::ArrayRef<std::string> RunningContainersNames) const;
|
|
};
|
|
|
|
} // namespace revng::pipes
|