made functions static

This commit is contained in:
2025-05-05 22:49:53 +03:00
parent f679666d01
commit 1973d095f5
2 changed files with 6 additions and 6 deletions

View File

@@ -508,13 +508,13 @@ AccessingSet AccessingSet::Diff(const AccessingSet& secondSet) const
return uncovered; return uncovered;
} }
bool operator!=(const ArrayDimension& lhs, const ArrayDimension& rhs) static bool operator!=(const ArrayDimension& lhs, const ArrayDimension& rhs)
{ {
return !(lhs.start == rhs.start && lhs.step == rhs.step && lhs.tripCount == rhs.tripCount); return !(lhs.start == rhs.start && lhs.step == rhs.step && lhs.tripCount == rhs.tripCount);
} }
bool operator!=(const AccessingSet& lhs, const AccessingSet& rhs) static bool operator!=(const AccessingSet& lhs, const AccessingSet& rhs)
{ {
for (size_t i = 0; i < lhs.allElements.size(); i++) for (size_t i = 0; i < lhs.allElements.size(); i++)
{ {
@@ -529,7 +529,7 @@ bool operator!=(const AccessingSet& lhs, const AccessingSet& rhs)
return false; return false;
} }
bool operator!=(const ArrayAccessingIndexes& lhs, const ArrayAccessingIndexes& rhs) static bool operator!=(const ArrayAccessingIndexes& lhs, const ArrayAccessingIndexes& rhs)
{ {
if(lhs.size() != rhs.size()) if(lhs.size() != rhs.size())
{ {
@@ -628,7 +628,7 @@ Region::Region(LoopGraph* loop, vector<SAPFOR::BasicBlock*>& Blocks)
} }
} }
void SolveDataFlowIteratively(Region* DFG) static void SolveDataFlowIteratively(Region* DFG)
{ {
unordered_set<Region*> worklist(DFG->getBasickBlocks()); unordered_set<Region*> worklist(DFG->getBasickBlocks());
do do
@@ -661,7 +661,7 @@ void SolveDataFlowIteratively(Region* DFG)
while (!worklist.empty()); while (!worklist.empty());
} }
void SolveDataFlow(Region* DFG) static void SolveDataFlow(Region* DFG)
{ {
SolveDataFlowIteratively(DFG); SolveDataFlowIteratively(DFG);
for (Region* subRegion : DFG->getSubRegions()) for (Region* subRegion : DFG->getSubRegions())