mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
4780457c53
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.
30 lines
603 B
C++
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
|