forked from OSchip/llvm-project
[MLIR][Presburger] maybeLocalRepr: rename inEqualityPair -> inequalityPair
This commit is contained in:
parent
6592bcecd4
commit
29d1651d7b
|
@ -35,7 +35,7 @@ struct MaybeLocalRepr {
|
|||
unsigned equalityIdx;
|
||||
struct {
|
||||
unsigned lowerBoundIdx, upperBoundIdx;
|
||||
} inEqualityPair;
|
||||
} inequalityPair;
|
||||
} repr;
|
||||
};
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue