diff --git a/src/Distribution/Array.h b/src/Distribution/Array.h index 67ac43b..8f77faf 100644 --- a/src/Distribution/Array.h +++ b/src/Distribution/Array.h @@ -106,7 +106,7 @@ namespace Distribution MAP> usagePlaces; VECTOR mappedDims; - VECTOR depracateToDistribute; + VECTOR deprecateToDistribute; bool ompThreadPrivate; bool privateInLoop; @@ -171,7 +171,7 @@ namespace Distribution sizes.resize(dimSize); sizesExpr.resize(dimSize); mappedDims.resize(dimSize); - depracateToDistribute.resize(dimSize); + deprecateToDistribute.resize(dimSize); for (int z = 0; z < dimSize; ++z) { @@ -179,7 +179,7 @@ namespace Distribution PAIR initVal = std::make_pair(0, 0); sizesExpr[z] = std::make_pair(std::make_pair((Expression*)NULL, initVal), std::make_pair((Expression*)NULL, initVal)); mappedDims[z] = false; - depracateToDistribute[z] = false; + deprecateToDistribute[z] = false; } GenUniqKey(); @@ -214,7 +214,7 @@ namespace Distribution uniqKey = copy.uniqKey; containsInRegions = copy.containsInRegions; mappedDims = copy.mappedDims; - depracateToDistribute = copy.depracateToDistribute; + deprecateToDistribute = copy.deprecateToDistribute; ompThreadPrivate = copy.ompThreadPrivate; privateInLoop = copy.privateInLoop; inEquivalence = copy.inEquivalence; @@ -226,7 +226,7 @@ namespace Distribution int countToRem = 0; for (int z = 0; z < dimSize; ++z) { - if (!mappedDims[z] || depracateToDistribute[z]) + if (!mappedDims[z] || deprecateToDistribute[z]) { needToRemove = true; countToRem++; @@ -246,19 +246,19 @@ namespace Distribution for (int z = 0; z < dimSize; ++z) { - if (mappedDims[z] && !depracateToDistribute[z]) + if (mappedDims[z] && !deprecateToDistribute[z]) { newSizes.push_back(sizes[z]); newSizesExpr.push_back(sizesExpr[z]); newMappedDims.push_back(mappedDims[z]); - newDepr.push_back(depracateToDistribute[z]); + newDepr.push_back(deprecateToDistribute[z]); } } sizes = newSizes; sizesExpr = newSizesExpr; mappedDims = newMappedDims; - depracateToDistribute = newDepr; + deprecateToDistribute = newDepr; dimSize = (int)sizes.size(); return false; @@ -445,9 +445,9 @@ namespace Distribution retVal["isLoopArrayFlag"] = (int)isLoopArrayFlag; JSON deprToDist = nlohmann::json::array(); - for (int i = 0; i < depracateToDistribute.size(); ++i) - deprToDist.push_back((int)depracateToDistribute[i]); - retVal["depracateToDist"] = deprToDist; + for (int i = 0; i < deprecateToDistribute.size(); ++i) + deprToDist.push_back((int)deprecateToDistribute[i]); + retVal["deprecateToDist"] = deprToDist; JSON mappedDimsJ = nlohmann::json::array(); for (int i = 0; i < mappedDims.size(); ++i) @@ -605,13 +605,13 @@ namespace Distribution { if (dim >= dimSize) return; - depracateToDistribute[dim] = value; + deprecateToDistribute[dim] = value; } void DeprecateAllDims() { for (int dim = 0; dim < dimSize; ++dim) - depracateToDistribute[dim] = true; + deprecateToDistribute[dim] = true; } bool IsDimDepracated(const int dim) const @@ -621,9 +621,9 @@ namespace Distribution else { if (templateDimsOrder.size() == 0) - return depracateToDistribute[dim]; + return deprecateToDistribute[dim]; else - return depracateToDistribute[templateDimsOrder[dim]]; + return deprecateToDistribute[templateDimsOrder[dim]]; } } @@ -631,11 +631,11 @@ namespace Distribution { bool ret = true; for (int z = 0; z < dimSize; ++z) - ret = ret && depracateToDistribute[z]; + ret = ret && deprecateToDistribute[z]; return ret; } - const VECTOR& GetDeprecetedDims() const { return depracateToDistribute; } + const VECTOR& GetDeprecetedDims() const { return deprecateToDistribute; } int GetTypeSize() const { return typeSize; }