retdec
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
retdec::llvmir2hll::PessimCallInfoObtainer Class Reference

Obtainer of information about functions and function calls that assumes nothing. More...

#include <pessim_call_info_obtainer.h>

Inheritance diagram for retdec::llvmir2hll::PessimCallInfoObtainer:
Inheritance graph
[legend]
Collaboration diagram for retdec::llvmir2hll::PessimCallInfoObtainer:
Collaboration graph
[legend]

Public Member Functions

virtual std::string getId () const override
 Returns the ID of the obtainer. More...
 
virtual ShPtr< CallInfogetCallInfo (ShPtr< CallExpr > call, ShPtr< Function > caller) override
 Computes and returns information about the given function call which occurs in caller. More...
 
virtual ShPtr< FuncInfogetFuncInfo (ShPtr< Function > func) override
 Computes and returns information about the given function. More...
 
- Public Member Functions inherited from retdec::llvmir2hll::CallInfoObtainer
virtual ~CallInfoObtainer ()=default
 
ShPtr< CGgetCG () const
 Returns the call graph with which the obtainer has been initialized. More...
 
ShPtr< CFGgetCFGForFunc (ShPtr< Function > func) const
 Returns the CFG for func after the obtainer has been initialized. More...
 
virtual void init (ShPtr< CG > cg, ShPtr< ValueAnalysis > va)
 Initializes the obtainer. More...
 
virtual bool isInitialized () const
 Returns true if the obtainer has been initialized, false otherwise. More...
 

Static Public Member Functions

static ShPtr< CallInfoObtainercreate ()
 Creates a new obtainer. More...
 

Private Member Functions

 PessimCallInfoObtainer ()
 Constructs a new obtainer. More...
 

Additional Inherited Members

- Protected Types inherited from retdec::llvmir2hll::CallInfoObtainer
using FuncVectorSet = std::vector< FuncSet >
 Vector of sets of functions. More...
 
using FuncCFGMap = std::map< ShPtr< Function >, ShPtr< CFG > >
 Mapping of a function into its CFG. More...
 
- Protected Member Functions inherited from retdec::llvmir2hll::CallInfoObtainer
 CallInfoObtainer ()
 Constructs a new obtainer. More...
 
ShPtr< FuncInfoCompOrdergetFuncInfoCompOrder (ShPtr< CG > cg)
 Computes an order in which FuncInfos should be computed. More...
 
- Protected Attributes inherited from retdec::llvmir2hll::CallInfoObtainer
ShPtr< Modulemodule
 The current module. More...
 
ShPtr< CGcg
 Call graph of the current module. More...
 
ShPtr< ValueAnalysisva
 Analysis of values. More...
 
FuncCFGMap funcCFGMap
 Mapping of a function into its CFG. More...
 
ShPtr< CFGBuildercfgBuilder
 The used builder of CFGs. More...
 

Detailed Description

Obtainer of information about functions and function calls that assumes nothing.

Compare with OptimCallInfoObtainer.

Use create() to create instances. Instances of this class have reference object semantics.

Constructor & Destructor Documentation

◆ PessimCallInfoObtainer()

retdec::llvmir2hll::PessimCallInfoObtainer::PessimCallInfoObtainer ( )
private

Constructs a new obtainer.

See create() for the description of parameters.

Member Function Documentation

◆ create()

ShPtr< CallInfoObtainer > retdec::llvmir2hll::PessimCallInfoObtainer::create ( )
static

Creates a new obtainer.

◆ getCallInfo()

ShPtr< CallInfo > retdec::llvmir2hll::PessimCallInfoObtainer::getCallInfo ( ShPtr< CallExpr call,
ShPtr< Function caller 
)
overridevirtual

Computes and returns information about the given function call which occurs in caller.

Preconditions
  • the call obtainer has been initialized using init()
  • the given call and caller exist in the module

Implements retdec::llvmir2hll::CallInfoObtainer.

◆ getFuncInfo()

ShPtr< FuncInfo > retdec::llvmir2hll::PessimCallInfoObtainer::getFuncInfo ( ShPtr< Function func)
overridevirtual

Computes and returns information about the given function.

Preconditions
  • the call obtainer has been initialized using init()
  • the given function exists in the module

Implements retdec::llvmir2hll::CallInfoObtainer.

◆ getId()

std::string retdec::llvmir2hll::PessimCallInfoObtainer::getId ( ) const
overridevirtual

Returns the ID of the obtainer.

Implements retdec::llvmir2hll::CallInfoObtainer.


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