60 unsigned int _function_id,
const DesignFlowManagerConstRef _design_flow_manager)
72 switch(relationship_type)
76 if(!
parameters->getOption<
int>(OPT_gcc_openmp_simd))
78 relationships.insert(std::make_pair(BIT_VALUE_OPT,
SAME_FUNCTION));
81 if(
parameters->isOption(OPT_hls_div) &&
parameters->getOption<std::string>(OPT_hls_div) !=
"none")
83 relationships.insert(std::make_pair(HLS_DIV_CG_EXT,
SAME_FUNCTION));
86 relationships.insert(std::make_pair(USE_COUNTING,
SAME_FUNCTION));
97 if(!
parameters->getOption<
int>(OPT_gcc_openmp_simd))
99 relationships.insert(std::make_pair(BIT_VALUE,
SAME_FUNCTION));
101 if(
parameters->isOption(OPT_hls_div) &&
parameters->getOption<std::string>(OPT_hls_div) !=
"none")
103 relationships.insert(std::make_pair(HLS_DIV_CG_EXT,
SAME_FUNCTION));
111 return relationships;
116 const auto design_flow_step =
118 ->CreateFunctionFrontendFlowStep(FrontendFlowStepType::BIT_VALUE_OPT,
function_id);
119 design_flow_step->Initialize();
120 const auto return_status = design_flow_step->Exec();
122 return return_status;
File containing functions and utilities to support the printing of debug messagges.
#define GET_CLASS(obj)
Macro returning the actual type of an object.
RelationshipType
The relationship type.
Source must be executed to satisfy target.
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.
Class performing some optimizations on the IR exploiting Bit Value analysis but executed after Range ...
Auxiliary methods for manipulating string.
bool HasToBeExecuted() const override
Check if this step has actually to be executed.
#define THROW_UNREACHABLE(str_expr)
helper function used to specify that some points should never be reached
Classes to describe design flow graph.
Target must be reexecuted.
DesignFlowStep_Status InternalExec() override
Optimize IR after the RA has been executed.
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
DesignFlowStep_Status GetStatus() const
Return the status of this design step.
const ParameterConstRef parameters
Set of input parameters.
DesignFlowStep_Status
The status of a step.
#define DEBUG_LEVEL_NONE
no debugging print is performed.
~BitValueRange() override
Destructor.
refcount< T > lock() const
const unsigned int function_id
The index of the function to be analyzed.
BitValueRange(const ParameterConstRef _Param, const application_managerRef _AppM, unsigned int function_id, const DesignFlowManagerConstRef design_flow_manager)
Constructor.
This class contains the methods to create a frontend flow step.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
bool HasToBeExecuted() const override
Check if this step has actually to be executed.
this class is used to manage the command-line or XML options.
unsigned int bitvalue_version
The version of the bitvalue information on which this step has been applied.
int debug_level
The debug level.
A brief description of the C++ Header File.
const FunctionBehaviorRef function_behavior
The function behavior of the function to be analyzed.