45 #ifndef PRAGMA_MANAGER_HPP 46 #define PRAGMA_MANAGER_HPP 49 #include "config_HAVE_FROM_PRAGMA_BUILT.hpp" 148 bool isBlackBox(
const std::string& name)
const;
167 unsigned int addBlackBoxPragma(
const std::string& function_name,
unsigned int function_id);
188 const vertex bb_operation_vertex)
const;
210 std::string
get_mapping(
const std::string& function_name)
const;
const application_managerRef application_manager
The application manager NOTE: this is equivalente to a weakrefcount since deleter should be null...
static const std::string omp_directive_keywords[OMP_UNKNOWN]
The list of omp directive keywords.
CustomOrderedSet< std::string > BlackBoxFunctions
File containing functions and utilities to support the printing of debug messagges.
const std::list< std::string > GetFunctionDefinitionPragmas(const std::string &function_name) const
Return the pragmas associated with a function definition.
CustomUnorderedSet< std::string > getFunctionCallPragmas(const std::string &Name) const
std::map< std::string, std::list< std::string > > function_definition_pragmas
Function defintion pragmas.
std::map< unsigned int, std::string > GenericPragmas
This class manages the tree structures extracted from the raw file.
void addFunctionCallPragmas(const std::string &Name, const CustomUnorderedSet< std::string > &Pragmas)
bool checkCompliant() const
Check if the data-structure information are compliant with the pragma reference manual.
Class specification of the graph structures.
CustomUnorderedMapUnstable< std::string, std::string > ExtractClauses(const std::string &clauses_list) const
Extract clauses associated with a pragma.
absl::flat_hash_map< T, U, Hash, Eq, Alloc > CustomUnorderedMapUnstable
redefinition of map to manage ordered/unordered structures
unsigned int addBlackBoxPragma(const std::string &function_name, unsigned int function_id)
REF_FORWARD_DECL(application_manager)
void line(int x1, int y1, int x2, int y2, unsigned int color)
void AddFunctionDefinitionPragmas(const std::string &name, const CustomUnorderedSet< std::string > &pragmas)
Add a set of definition pragmas to a function.
virtual ~pragma_manager()
Destructor.
std::map< std::string, CustomUnorderedSet< std::string > > FunctionCallPragmas
This class is used to manage the pragma directives found in the source code.
std::string getGenericPragma(unsigned int number) const
redefinition of set to manage ordered/unordered structures
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
OmpPragmaType
The possible openmp pragmas Note that sections has to go before section but after parallel sections o...
bool CheckOmpFor(const application_managerConstRef app_man, const unsigned int function_index, const vertex bb_operation_vertex) const
Check if a omp for pragma is associated with the loop.
std::string get_mapping(const std::string &function_name) const
Get mapping of a function given by the pragma.
Template definition of refcount.
void CheckAddOmpFor(const unsigned int function_index, const vertex bb_operation_vertex, const application_managerRef AppM)
Check if a omp for pragma is associated with the loop; if yes, add the gimple_for.
pragma_manager(const application_managerRef application_manager, const ParameterConstRef param)
Constructor.
int debug_level
The debug level.
bool isBlackBox(const std::string &name) const
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
unsigned int AddOmpSimdPragma(const std::string &line, unsigned int function_id) const
Create a simd openmp pragma starting from the line containing it.
void setGenericPragma(unsigned int number, const std::string &line)
CONSTREF_FORWARD_DECL(application_manager)
const ParameterConstRef param
Set of input parameters.
static OmpPragmaType GetOmpPragmaType(const std::string &directive)
Returns the identifier corresponding to an openmp directive.
void CheckAddOmpSimd(const unsigned int function_index, const vertex bb_operation_vertex, const application_managerRef AppM)
Check if a omp simd pragma is associated with the loop; if yes, add information to the loop...