13 lines
1.1 KiB
C
13 lines
1.1 KiB
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "ParRegions.h"
|
||
|
|
#include "../GraphCall/graph_calls.h"
|
||
|
|
#include "../GraphLoop/graph_loops.h"
|
||
|
|
|
||
|
|
void fillRegionLines(SgFile *file, std::vector<ParallelRegion*> ®ions, std::vector<Messages>& messagesForFile, std::vector<LoopGraph*> *loops = NULL, std::vector<FuncInfo*> *funcs = NULL);
|
||
|
|
void fillRegionLinesStep2(std::vector<ParallelRegion*> ®ions, const std::map<std::string, std::vector<FuncInfo*>> &allFuncInfo, std::map<std::string, std::vector<LoopGraph*>> *loopGraph = NULL);
|
||
|
|
int printParalleRegions(const char *fileName, std::vector<ParallelRegion*> ®ions);
|
||
|
|
bool buildGraphFromUserDirectives(const std::vector<Statement*> &userDvmAlignDirs, DIST::GraphCSR<int, double, attrType> &G, DIST::Arrays<int> &allArrays, const std::map<DIST::Array*, std::set<DIST::Array*>> &arrayLinksByFuncCalls, const std::set<DIST::Array*>& alignedArrays, std::set<DIST::Array*>& addedArrays, const std::map<std::string, std::vector<FuncInfo*>>& funcsByFile);
|
||
|
|
void clearRegionStaticData();
|
||
|
|
void calculateLinesOfCode(std::vector<ParallelRegion*> &allRegions);
|