This commit is contained in:
2025-03-12 12:37:19 +03:00
committed by Dudarenko
parent 0c9f0664fd
commit d4fb323f86
428 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "../GraphLoop/graph_loops_func.h"
#include <string>
class DvmhRegion
{
private:
std::vector<LoopGraph*> loops;
std::string fun_name;
public:
DvmhRegion() { }
DvmhRegion(LoopGraph *loopNode, const std::string &fun_name);
SgStatement* getFirstSt() const;
SgStatement* getLastSt() const;
void addLoop(LoopGraph* newLoop) { loops.push_back(newLoop); }
const std::string& getFunName() const { return fun_name; }
void setFunName(const std::string& newName) { fun_name = newName; }
const std::vector<LoopGraph*>& getLoops() const { return loops; }
std::string getFileName() const { return getFirstSt()->fileName(); }
void append(DvmhRegion& region);
int getLineForSort() const;
};