Files
revng-revng/include/revng/StackAnalysis/ABIDetectionPass.h
Alessandro Di Federico 4780457c53 Drop StackAnalysis<false> and FBDP
This commit drops support for running StackAnalysis without ABI
analysis. This has been broken for quite some time and a source of slow
downs in (badly) crafted optimization pipelines.
2021-03-06 17:35:30 +01:00

30 lines
603 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "llvm/Pass.h"
#include "revng/StackAnalysis/StackAnalysis.h"
namespace StackAnalysis {
class ABIDetectionPass : public llvm::ModulePass {
public:
static char ID;
public:
ABIDetectionPass() : llvm::ModulePass(ID) {}
void getAnalysisUsage(llvm::AnalysisUsage &AU) const override {
AU.setPreservesAll();
AU.addRequired<GeneratedCodeBasicInfoWrapperPass>();
AU.addRequired<StackAnalysis>();
}
bool runOnModule(llvm::Module &M) override;
};
} // namespace StackAnalysis