retdec
select_functions.h
Go to the documentation of this file.
1 
8 #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_SELECT_FUNCTIONS_SELECT_FUNCTIONS_H
9 #define RETDEC_BIN2LLVMIR_OPTIMIZATIONS_SELECT_FUNCTIONS_SELECT_FUNCTIONS_H
10 
11 #include <llvm/IR/Module.h>
12 #include <llvm/Pass.h>
13 
15 
16 namespace retdec {
17 namespace bin2llvmir {
18 
19 class SelectFunctions : public llvm::ModulePass
20 {
21  public:
22  static char ID;
24  virtual bool runOnModule(llvm::Module& M) override;
25  bool runOnModuleCustom(llvm::Module& M, Config* c);
26 
27  private:
28  bool run(llvm::Module& M);
29 
30  private:
31  Config* _config = nullptr;
32 };
33 
34 } // namespace bin2llvmir
35 } // namespace retdec
36 
37 #endif
Config DB provider for bin2llvmirl.
Definition: config.h:24
Definition: select_functions.h:20
static char ID
Definition: select_functions.h:22
bool runOnModuleCustom(llvm::Module &M, Config *c)
Definition: select_functions.cpp:43
Config * _config
Definition: select_functions.h:31
SelectFunctions()
Definition: select_functions.cpp:31
bool run(llvm::Module &M)
Definition: select_functions.cpp:49
virtual bool runOnModule(llvm::Module &M) override
Definition: select_functions.cpp:37
The frontend-end part of the decompiler.
Definition: archive_wrapper.h:19