PandA-2024.02
Public Member Functions
discrepancy_instruction_writer Class Reference

#include <discrepancy_instruction_writer.hpp>

Inheritance diagram for discrepancy_instruction_writer:
Inheritance graph
[legend]
Collaboration diagram for discrepancy_instruction_writer:
Collaboration graph
[legend]

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...
 

Detailed Description

Definition at line 48 of file discrepancy_instruction_writer.hpp.

Constructor & Destructor Documentation

◆ discrepancy_instruction_writer()

discrepancy_instruction_writer::discrepancy_instruction_writer ( const application_managerConstRef  app_man,
const IndentedOutputStreamRef  indented_output_stream,
const ParameterConstRef  parameters 
)

Constructor.

Parameters
app_manis the application manager
indented_output_streamis the output stream on which source code has to be written
parametersis the set of input parameters

Definition at line 53 of file discrepancy_instruction_writer.cpp.

Member Function Documentation

◆ declareFunction()

void discrepancy_instruction_writer::declareFunction ( const unsigned int  function_id)
finalvirtual

Write the declaration of a function.

Parameters
function_idis 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.

Here is the call graph for this function:

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

Generated on Mon Feb 12 2024 13:03:50 for PandA-2024.02 by doxygen 1.8.13