mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
33 lines
1004 B
C++
33 lines
1004 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "revng/Pipebox/Helpers.h"
|
|
#include "revng/PipeboxCommon/LLVMContainer.h"
|
|
#include "revng/PipeboxCommon/Model.h"
|
|
|
|
namespace revng::pypeline::piperuns {
|
|
|
|
struct InjectStackSizeProbesAtCallSites {
|
|
private:
|
|
const model::Binary &Binary;
|
|
LLVMFunctionContainer &ModuleContainer;
|
|
|
|
public:
|
|
static constexpr llvm::StringRef Name = "inject-stack-size-probes-at-"
|
|
"callsites";
|
|
using Arguments = SingleLLVMFunctionsArgument;
|
|
|
|
InjectStackSizeProbesAtCallSites(const class Model &Model,
|
|
llvm::StringRef Config,
|
|
llvm::StringRef DynamicConfig,
|
|
LLVMFunctionContainer &ModuleContainer) :
|
|
Binary(*Model.get().get()), ModuleContainer(ModuleContainer){};
|
|
|
|
void runOnFunction(const model::Function &Function);
|
|
};
|
|
|
|
} // namespace revng::pypeline::piperuns
|