[MLIR][Presburger] maybeLocalRepr: rename inEqualityPair -> inequalityPair

This commit is contained in:
Arjun P 2022-02-02 18:56:01 +05:30
parent 6592bcecd4
commit 29d1651d7b
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ struct MaybeLocalRepr {
unsigned equalityIdx;
struct {
unsigned lowerBoundIdx, upperBoundIdx;
} inEqualityPair;
} inequalityPair;
} repr;
};

View File

@ -227,8 +227,8 @@ static void subtractRecursively(IntegerPolyhedron &b, Simplex &simplex,
assert(maybeInequality.kind == ReprKind::Inequality &&
"Subtraction is not supported when a representation of the local "
"variables of the subtrahend cannot be found!");
auto lb = maybeInequality.repr.inEqualityPair.lowerBoundIdx;
auto ub = maybeInequality.repr.inEqualityPair.upperBoundIdx;
auto lb = maybeInequality.repr.inequalityPair.lowerBoundIdx;
auto ub = maybeInequality.repr.inequalityPair.upperBoundIdx;
b.addInequality(sI.getInequality(lb));
b.addInequality(sI.getInequality(ub));

View File

@ -234,7 +234,7 @@ MaybeLocalRepr presburger_utils::computeSingleVarRepr(
continue;
repr.kind = ReprKind::Inequality;
repr.repr.inEqualityPair = {ubPos, lbPos};
repr.repr.inequalityPair = {ubPos, lbPos};
return repr;
}
}