PandA-2024.02
Public Member Functions
HLSInstructionWriter Class Reference

#include <hls_instruction_writer.hpp>

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

Public Member Functions

 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 56 of file hls_instruction_writer.hpp.

Constructor & Destructor Documentation

◆ HLSInstructionWriter()

HLSInstructionWriter::HLSInstructionWriter ( 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 63 of file hls_instruction_writer.cpp.

References ~HLSInstructionWriter().

Here is the call graph for this function:

◆ ~HLSInstructionWriter()

HLSInstructionWriter::~HLSInstructionWriter ( )
overridedefault

Destructor.

Referenced by HLSInstructionWriter().

Here is the caller graph for this function:

Member Function Documentation

◆ declareFunction()

void HLSInstructionWriter::declareFunction ( const unsigned int  function_id)
overridevirtual

Write the declaration of a function.

Parameters
function_idis the index of the function

the assumption is strong but the code that prints the name of the function is under our control ;-)

Reimplemented from InstructionWriter.

Definition at line 72 of file hls_instruction_writer.cpp.

References IndentedOutputStream::Append(), InstructionWriter::AppM, InstructionWriter::indented_output_stream, match(), tree_helper::PrintType(), THROW_ASSERT, and U.

Referenced by discrepancy_instruction_writer::declareFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

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

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