retdec
Static Public Member Functions | List of all members
retdec::bin2llvmir::IndirectlyCalledFuncsAnalysis Class Reference

Analysis for finding out which functions can be indirectly called. More...

#include <indirectly_called_funcs_analysis.h>

Static Public Member Functions

static std::set< llvm::Function * > getFuncsForIndirectCalls (const std::set< llvm::CallInst * > &call, llvm::Module::FunctionListType &funcsToCheck)
 Tries to find functions that can be called by indirect calls. More...
 
static std::set< llvm::Function * > getFuncsForIndirectCall (const llvm::CallInst &call, const std::vector< llvm::Function * > &funcsToCheck)
 Tries to find functions that can be called by indirect call. More...
 

Detailed Description

Analysis for finding out which functions can be indirectly called.

Member Function Documentation

◆ getFuncsForIndirectCall()

std::set< llvm::Function * > retdec::bin2llvmir::IndirectlyCalledFuncsAnalysis::getFuncsForIndirectCall ( const llvm::CallInst &  call,
const std::vector< llvm::Function * > &  funcsToCheck 
)
static

Tries to find functions that can be called by indirect call.

Preconditions
  • callInst is a call that calls some function indirectly.
Parameters
[in]callWe try to find functions for this indirect call.
[in]funcsToCheckWe are finding functions that can be indirectly called only in this functions.
Returns
Found functions that can be called indirectly.

◆ getFuncsForIndirectCalls()

std::set< llvm::Function * > retdec::bin2llvmir::IndirectlyCalledFuncsAnalysis::getFuncsForIndirectCalls ( const std::set< llvm::CallInst * > &  call,
llvm::Module::FunctionListType &  funcsToCheck 
)
static

Tries to find functions that can be called by indirect calls.

Preconditions
  • callInsts are a calls that calls some function indirectly.
Parameters
[in]callWe try to find functions for this indirect calls.
[in]funcsToCheckWe are finding functions that can be indirectly called only in this functions.
Returns
Found functions that can be called indirectly.

The documentation for this class was generated from the following files: