43 #ifndef FUNCTION_CALL_OPT_HPP 44 #define FUNCTION_CALL_OPT_HPP
This struct specifies the statement_list node.
RelationshipType
The relationship type.
static CustomSet< unsigned int > never_inline
Set of never inlined functions.
CustomOrderedMap< T, U > CustomMap
CustomUnorderedSet< unsigned int > already_visited
This class contains the base representation for a generic frontend flow step which works on a single ...
redefinition of map to manage ordered/unordered structures
Abstract pure class for the tree structure.
CustomMap< unsigned int, unsigned int > caller_bb
static void RequestCallOpt(const tree_nodeConstRef &call_stmt, unsigned int caller_id, FunctionOptType opt)
Request optimization for given call statement.
DesignFlowStep_Status InternalExec() override
Computes the operations CFG graph data structure.
CONSTREF_FORWARD_DECL(DesignFlowManager)
const CustomUnorderedSet< std::pair< FrontendFlowStepType, FunctionRelationship > > ComputeFrontendRelationships(const DesignFlowStep::RelationshipType relationship_type) const override
Return the set of analyses in relationship with this design step.
static CustomSet< unsigned int > always_inline
Set of always inlined functions.
bool HasToBeExecuted() const override
Check if this step has actually to be executed.
redefinition of set to manage ordered/unordered structures
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
DesignFlowStep_Status
The status of a step.
REF_FORWARD_DECL(application_manager)
const unsigned int function_id
The index of the function to be analyzed.
size_t compute_cost(const statement_list *body, bool &has_simd)
Compute function body cost based on statements' types.
const application_managerRef AppM
The application manager.
static bool HasConstantArgs(const tree_nodeConstRef &call_stmt)
Check if given call statement performs a call with all constant arguments.
FunctionCallOpt(const ParameterConstRef Param, const application_managerRef AppM, unsigned int function_id, const DesignFlowManagerConstRef design_flow_manager)
Constructor.
void Initialize() override
Initialize the step (i.e., like a constructor, but executed just before exec.
static size_t inline_max_cost
static CustomMap< unsigned int, CustomSet< std::tuple< unsigned int, FunctionOptType > > > opt_call
~FunctionCallOpt() override
Destructor.
size_t detect_loops(const statement_list *body) const
Check if given function body has loops.