26 lines
686 B
C++
26 lines
686 B
C++
#pragma once
|
|
#include <string>
|
|
#include <set>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
#include "errors.h"
|
|
|
|
#define SPF_USER_DIR 777
|
|
#define SPF_USER_DIR_COPY 999
|
|
#define SPF_OMP_DIR 888
|
|
|
|
struct OmpDir
|
|
{
|
|
std::set<std::string> privVars;
|
|
std::set<std::string> threadPrivVars;
|
|
std::map<std::string, std::set<std::string>> redVars;
|
|
std::set<std::string> keys;
|
|
|
|
SgStatement* start = NULL;
|
|
SgStatement* end = NULL;
|
|
};
|
|
|
|
void removeOmpDir(SgStatement* st);
|
|
std::vector<OmpDir> parseOmpInStatement(SgStatement* st, const std::set<std::string>& globalPriv, bool forDo = false);
|
|
void parseOmpDirectives(SgFile* file, std::vector<Messages>& currMessages); |