PandA-2024.02
Public Member Functions | Data Fields | Protected Attributes | Friends
OmpFunctions Class Reference

#include <omp_functions.hpp>

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

Public Member Functions

 OmpFunctions (const HLS_managerConstRef HLSMgr)
 Constructor. More...
 
- Public Member Functions inherited from functions
 functions ()
 Constructor. More...
 
virtual ~functions ()
 Destructor. More...
 
void map_shared_function (unsigned int funID_scope, const std::string &fun)
 allocate a shared function in a specified function. More...
 
const CustomOrderedSet< std::string > & get_shared_functions (unsigned int funID_scope) const
 return the set of shared functions allocated in a given function. More...
 
bool has_shared_functions (unsigned int funID_scope) const
 return true in case there are shared functions allocated in a given function. More...
 
bool is_a_shared_function (unsigned int funID_scope, const std::string &fun) const
 return true if a given function is a shared function allocated in a given function scope More...
 
void add_shared_function_proxy (unsigned int funID_scope, const std::string &fun)
 allocate a proxy for the function referred within a given function More...
 
const CustomOrderedSet< std::string > & get_proxied_shared_functions (unsigned int funID_scope) const
 return the proxied internal functions associated with the function More...
 
bool has_proxied_shared_functions (unsigned int funID_scope) const
 check if the function has proxy shared functions More...
 
bool is_a_proxied_shared_function (unsigned int funID_scope, const std::string &fun) const
 return true if a given function is a shared function allocated in a given function scope More...
 
bool is_a_proxied_function (const std::string &fun) const
 return true if the function is a proxied function More...
 
unsigned int get_proxy_mapping (const std::string &fun) const
 in case the function is a proxy function, it returns where the function is actually instantiated More...
 

Data Fields

unsigned int locks_allocation
 The function where locks have to be instantiated. More...
 
CustomSet< unsigned int > omp_for_wrappers
 The set of openmp for wrappers. More...
 
CustomSet< unsigned int > kernel_functions
 The set of functions which have to be parallelized. More...
 
CustomSet< unsigned int > atomic_functions
 The set of functions which have to be parallelized. More...
 
CustomSet< unsigned int > parallelized_functions
 The set of functions which have to be parallelized. More...
 
CustomSet< unsigned int > hierarchical_functions
 The set of functions which have to be parallelized. More...
 
CustomSet< unsigned int > locking_functions
 The set of functions which lock/unlock mutexes. More...
 
CustomSet< unsigned int > locks_merge_communication
 The set of functions propagating accesses to locks in mutual exclusions. More...
 
CustomSet< unsigned int > locks_parallel_comunication
 The set of functions propagating accesses to locks in parallel. More...
 

Protected Attributes

const HLS_managerConstRef HLSMgr
 The HLS manager. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const OmpFunctions *omp_function)
 Friend definition of the << operator. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from functions
static std::string GetFUName (const std::string &fname, const HLS_managerRef HLSMgr)
 Return FU used to implement given function. More...
 
static std::string GetFUName (unsigned funID, const HLS_managerRef HLSMgr)
 

Detailed Description

Definition at line 57 of file omp_functions.hpp.

Constructor & Destructor Documentation

◆ OmpFunctions()

OmpFunctions::OmpFunctions ( const HLS_managerConstRef  _HLSMgr)
explicit

Constructor.

Header include.

Parameters
HLSMgris the HLS manager

behavior include HLS include tree include utility include

Definition at line 56 of file omp_functions.cpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const OmpFunctions omp_function 
)
friend

Friend definition of the << operator.

Parameters
osis the output stream
omp_functionis the OmpFunction to be printed

Definition at line 60 of file omp_functions.cpp.

Field Documentation

◆ atomic_functions

CustomSet<unsigned int> OmpFunctions::atomic_functions

The set of functions which have to be parallelized.

Definition at line 74 of file omp_functions.hpp.

Referenced by operator<<().

◆ hierarchical_functions

CustomSet<unsigned int> OmpFunctions::hierarchical_functions

The set of functions which have to be parallelized.

Definition at line 80 of file omp_functions.hpp.

Referenced by operator<<().

◆ HLSMgr

const HLS_managerConstRef OmpFunctions::HLSMgr
protected

The HLS manager.

Definition at line 61 of file omp_functions.hpp.

Referenced by operator<<().

◆ kernel_functions

CustomSet<unsigned int> OmpFunctions::kernel_functions

The set of functions which have to be parallelized.

Definition at line 71 of file omp_functions.hpp.

Referenced by operator<<().

◆ locking_functions

CustomSet<unsigned int> OmpFunctions::locking_functions

The set of functions which lock/unlock mutexes.

Definition at line 83 of file omp_functions.hpp.

Referenced by operator<<().

◆ locks_allocation

unsigned int OmpFunctions::locks_allocation

The function where locks have to be instantiated.

Definition at line 65 of file omp_functions.hpp.

Referenced by operator<<().

◆ locks_merge_communication

CustomSet<unsigned int> OmpFunctions::locks_merge_communication

The set of functions propagating accesses to locks in mutual exclusions.

Definition at line 86 of file omp_functions.hpp.

Referenced by operator<<().

◆ locks_parallel_comunication

CustomSet<unsigned int> OmpFunctions::locks_parallel_comunication

The set of functions propagating accesses to locks in parallel.

Definition at line 89 of file omp_functions.hpp.

Referenced by operator<<().

◆ omp_for_wrappers

CustomSet<unsigned int> OmpFunctions::omp_for_wrappers

The set of openmp for wrappers.

Definition at line 68 of file omp_functions.hpp.

Referenced by operator<<().

◆ parallelized_functions

CustomSet<unsigned int> OmpFunctions::parallelized_functions

The set of functions which have to be parallelized.

Definition at line 77 of file omp_functions.hpp.

Referenced by operator<<().


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

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