Files
revng-revng/include/revng/BasicAnalyses/RemoveHelperCalls.h
Antonio Frighetto e9439a15e5 Introduce RemoveHelperCallsPass
A simple pass that removes the calls to the helpers and replaces them
with stores of an opaque value onto the CSVs clobbered by the helper.
2021-12-15 18:03:30 +01:00

22 lines
502 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "llvm/IR/PassManager.h"
#include "revng/BasicAnalyses/GeneratedCodeBasicInfo.h"
#include "revng/Support/OpaqueFunctionsPool.h"
class RemoveHelperCallsPass
: public llvm::PassInfoMixin<RemoveHelperCallsPass> {
GeneratedCodeBasicInfo *GCBI = nullptr;
public:
RemoveHelperCallsPass() = default;
llvm::PreservedAnalyses
run(llvm::Function &F, llvm::FunctionAnalysisManager &FAM);
};