PandA-2024.02
|
#include <discrepancy_instruction_writer.hpp>
Public Member Functions | |
discrepancy_instruction_writer (const application_managerConstRef app_man, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters) | |
Constructor. More... | |
void | declareFunction (const unsigned int function_id) final |
Write the declaration of a function. More... | |
Public Member Functions inherited from HLSInstructionWriter | |
HLSInstructionWriter (const application_managerConstRef app_man, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters) | |
Constructor. More... | |
~HLSInstructionWriter () override | |
Destructor. More... | |
void | declareFunction (const unsigned int function_id) override |
Write the declaration of a function. More... | |
Public Member Functions inherited from InstructionWriter | |
virtual | ~InstructionWriter () |
Destructor. More... | |
virtual void | Initialize () |
Initialize data structure. More... | |
virtual void | write (const FunctionBehaviorConstRef function_behavior, const vertex statement, const var_pp_functorConstRef varFunctor) |
Write a statement. More... | |
virtual void | write_declarations () |
Write code needed for declaration/initialization of auxiliary variables. More... | |
void | WriteComment (const std::string &text) |
Writes a comment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from InstructionWriter | |
static InstructionWriterRef | CreateInstructionWriter (const ActorGraphBackend_Type actor_graph_backend_type, const application_managerConstRef AppM, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters) |
Factory method. More... | |
Protected Member Functions inherited from InstructionWriter | |
InstructionWriter (const application_managerConstRef AppM, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters) | |
Constructor; it is protected since factory method should be used. More... | |
Protected Attributes inherited from InstructionWriter | |
const application_managerConstRef | AppM |
The application manager. More... | |
const IndentedOutputStreamRef | indented_output_stream |
The indented output stream. More... | |
const ParameterConstRef | parameters |
The set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
Definition at line 48 of file discrepancy_instruction_writer.hpp.
discrepancy_instruction_writer::discrepancy_instruction_writer | ( | const application_managerConstRef | app_man, |
const IndentedOutputStreamRef | indented_output_stream, | ||
const ParameterConstRef | parameters | ||
) |
Constructor.
app_man | is the application manager |
indented_output_stream | is the output stream on which source code has to be written |
parameters | is the set of input parameters |
Definition at line 53 of file discrepancy_instruction_writer.cpp.
|
finalvirtual |
Write the declaration of a function.
function_id | is the index of the function |
Reimplemented from InstructionWriter.
Definition at line 60 of file discrepancy_instruction_writer.cpp.
References InstructionWriter::AppM, HLSInstructionWriter::declareFunction(), GET_NODE, tree_helper::IsExternDeclaration(), tree_helper::IsStaticDeclaration(), and THROW_ASSERT.