PandA-2024.02
|
#include <design_flow.hpp>
Public Member Functions | |
DesignFlow (const DesignFlowManagerConstRef design_flow_manager, const DesignFlow_Type design_flow_type, const ParameterConstRef parameters) | |
Constructor. More... | |
~DesignFlow () override | |
Destructor. More... | |
void | ComputeRelationships (DesignFlowStepSet &relationship, const DesignFlowStep::RelationshipType relationship_type) override |
Compute the relationships of a step with other steps. More... | |
std::string | GetSignature () const override |
Return the signature of this step. More... | |
std::string | GetName () const override |
Return the name of this design step. More... | |
DesignFlowStepFactoryConstRef | CGetDesignFlowStepFactory () const override |
Return the factory to create this type of steps. More... | |
bool | HasToBeExecuted () const override |
Check if this step has actually to be executed. More... | |
Public Member Functions inherited from DesignFlowStep | |
DesignFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters) | |
Constructor. More... | |
virtual | ~DesignFlowStep () |
Destructor. More... | |
virtual DesignFlowStep_Status | Exec ()=0 |
Execute the step. More... | |
virtual void | Initialize () |
Initialize the step (i.e., like a constructor, but executed just before exec. More... | |
DesignFlowStep_Status | GetStatus () const |
Return the status of this design step. More... | |
virtual void | WriteDot (std::ostream &out) const |
Write the label for a dot graph. More... | |
bool | IsComposed () const |
Returns if this step is composed. More... | |
int | CGetDebugLevel () const |
Return the debug level of the step. More... | |
virtual void | PrintInitialIR () const |
Dump the initial intermediate representation. More... | |
virtual void | PrintFinalIR () const |
Dump the final intermediate representation. More... | |
Static Public Member Functions | |
static std::string | ComputeSignature (const DesignFlow_Type design_flow_type) |
Compute the signature of a step. More... | |
static const std::string | EnumToKindText (const DesignFlow_Type design_flow_type) |
Return the name of the type. More... | |
static DesignFlow_Type | KindTextToEnum (const std::string &name) |
Given the name of design flow, return the enum. More... | |
Protected Attributes | |
const DesignFlow_Type | design_flow_type |
The type of this design flow. More... | |
Protected Attributes inherited from DesignFlowStep | |
bool | composed |
True if this step represents a composition of design flow steps (e.g., a flow); must be set by specialized constructors. More... | |
const Wrefcount< const DesignFlowManager > | design_flow_manager |
The design flow manager. More... | |
const ParameterConstRef | parameters |
Set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
const int | output_level |
The output level. More... | |
Additional Inherited Members | |
Public Types inherited from DesignFlowStep | |
enum | RelationshipType { DEPENDENCE_RELATIONSHIP, INVALIDATION_RELATIONSHIP, PRECEDENCE_RELATIONSHIP } |
The relationship type. More... | |
Definition at line 52 of file design_flow.hpp.
DesignFlow::DesignFlow | ( | const DesignFlowManagerConstRef | design_flow_manager, |
const DesignFlow_Type | design_flow_type, | ||
const ParameterConstRef | parameters | ||
) |
Constructor.
design_flow_manager | is the design flow manager |
design_flow_type | is the type of the flow |
parameters | is the set of the parameters |
Definition at line 46 of file design_flow.cpp.
References ~DesignFlow().
|
overridedefault |
|
overridevirtual |
Return the factory to create this type of steps.
Implements DesignFlowStep.
Definition at line 81 of file design_flow.cpp.
References DesignFlowStep::design_flow_manager, and Wrefcount< T >::lock().
|
overridevirtual |
Compute the relationships of a step with other steps.
relationship | is where relationships will be stored |
relationship_type | is the type of relationship to be computed |
Implements DesignFlowStep.
Definition at line 54 of file design_flow.cpp.
|
static |
Compute the signature of a step.
design_flow_type | is the type of design flow |
Definition at line 104 of file design_flow.cpp.
References STR.
Referenced by GetSignature().
|
static |
Return the name of the type.
design_flow_type | is the type of the design flow |
Definition at line 68 of file design_flow.cpp.
References NON_DETERMINISTIC_FLOWS, and THROW_UNREACHABLE.
Referenced by GetName().
|
overridevirtual |
Return the name of this design step.
Implements DesignFlowStep.
Definition at line 63 of file design_flow.cpp.
References design_flow_type, and EnumToKindText().
|
overridevirtual |
Return the signature of this step.
Implements DesignFlowStep.
Definition at line 58 of file design_flow.cpp.
References ComputeSignature(), and design_flow_type.
|
overridevirtual |
Check if this step has actually to be executed.
Implements DesignFlowStep.
Definition at line 99 of file design_flow.cpp.
|
static |
Given the name of design flow, return the enum.
name | is the name of the design flow |
Definition at line 86 of file design_flow.cpp.
References NON_DETERMINISTIC_FLOWS, and THROW_UNREACHABLE.
Referenced by DesignFlowFactory::CreateFlowStep().
|
protected |
The type of this design flow.
Definition at line 56 of file design_flow.hpp.
Referenced by GetName(), and GetSignature().