mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-10 18:11:26 +00:00
Clarify the language. Pointed out by Duncan Sands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d4b711e7f
commit
28753f8df2
@ -145,8 +145,11 @@ class ConstantRange {
|
|||||||
|
|
||||||
/// maximalIntersectWith - Return the range that results from the intersection
|
/// maximalIntersectWith - Return the range that results from the intersection
|
||||||
/// of this range with another range. The resultant range is guaranteed to
|
/// of this range with another range. The resultant range is guaranteed to
|
||||||
/// include all elements contained in both input ranges, and is also
|
/// include all elements contained in both input ranges, and to have the
|
||||||
/// guaranteed to be the smallest possible set that does so.
|
/// smallest possible set size that does so. Because there may be two
|
||||||
|
/// intersections with the same set size, A.maximalIntersectWith(B) might not
|
||||||
|
/// be equal to B.maximalIntersectWith(A).
|
||||||
|
///
|
||||||
ConstantRange maximalIntersectWith(const ConstantRange &CR) const;
|
ConstantRange maximalIntersectWith(const ConstantRange &CR) const;
|
||||||
|
|
||||||
/// unionWith - Return the range that results from the union of this range
|
/// unionWith - Return the range that results from the union of this range
|
||||||
|
@ -248,8 +248,10 @@ ConstantRange ConstantRange::intersectWith(const ConstantRange &CR) const {
|
|||||||
|
|
||||||
/// maximalIntersectWith - Return the range that results from the intersection
|
/// maximalIntersectWith - Return the range that results from the intersection
|
||||||
/// of this range with another range. The resultant range is guaranteed to
|
/// of this range with another range. The resultant range is guaranteed to
|
||||||
/// include all elements contained in both input ranges, and is also guaranteed
|
/// include all elements contained in both input ranges, and to have the
|
||||||
/// to be the smallest possible set that does so.
|
/// smallest possible set size that does so. Because there may be two
|
||||||
|
/// intersections with the same set size, A.maximalIntersectWith(B) might not
|
||||||
|
/// be equal to B.maximalIntersect(A).
|
||||||
ConstantRange ConstantRange::maximalIntersectWith(const ConstantRange &CR) const {
|
ConstantRange ConstantRange::maximalIntersectWith(const ConstantRange &CR) const {
|
||||||
assert(getBitWidth() == CR.getBitWidth() &&
|
assert(getBitWidth() == CR.getBitWidth() &&
|
||||||
"ConstantRange types don't agree!");
|
"ConstantRange types don't agree!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user