Fix comments to match names of functions.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 11 Feb 2007 00:58:49 +0000 (00:58 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 11 Feb 2007 00:58:49 +0000 (00:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34173 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ConstantRange.h
lib/Analysis/ConstantRange.cpp
lib/Support/ConstantRange.cpp

index f37c54c7076da6cfc49dfb8c52074665e5c650f7..2e032903ff47890f2e4a619e645a045439e65b17 100644 (file)
@@ -120,19 +120,19 @@ class ConstantRange {
   /// constant range.
   ConstantRange subtract(ConstantInt *CI) const;
 
-  /// intersect - Return the range that results from the intersection of this
-  /// range with another range.  The resultant range is pruned as much as
+  /// intersectWith - Return the range that results from the intersection of
+  /// this range with another range.  The resultant range is pruned as much as
   /// possible, but there may be cases where elements are included that are in
   /// one of the sets but not the other.  For example: [100, 8) intersect [3,
   /// 120) yields [3, 120)
   ///
   ConstantRange intersectWith(const ConstantRange &CR, bool isSigned) const;
 
-  /// union - Return the range that results from the union of this range with
-  /// another range.  The resultant range is guaranteed to include the elements
-  /// of both sets, but may contain more.  For example, [3, 9) union [12,15) is
-  /// [3, 15), which includes 9, 10, and 11, which were not included in either
-  /// set before.
+  /// unionWith - Return the range that results from the union of this range
+  /// with another range.  The resultant range is guaranteed to include the
+  /// elements of both sets, but may contain more.  For example, [3, 9) union
+  /// [12,15) is [3, 15), which includes 9, 10, and 11, which were not included
+  /// in either set before.
   ///
   ConstantRange unionWith(const ConstantRange &CR, bool isSigned) const;
 
index 022c34fe4090cb697a0459bec3372759ded3c55a..c6948576f8ba13a7c3e6367d54352d8621054468 100644 (file)
@@ -274,7 +274,7 @@ static ConstantRange intersect1Wrapped(const ConstantRange &LHS,
   }
 }
 
-/// intersect - Return the range that results from the intersection of this
+/// intersectWith - Return the range that results from the intersection of this
 /// range with another range.
 ///
 ConstantRange ConstantRange::intersectWith(const ConstantRange &CR,
@@ -308,7 +308,7 @@ ConstantRange ConstantRange::intersectWith(const ConstantRange &CR,
   return *this;
 }
 
-/// union - Return the range that results from the union of this range with
+/// unionWith - Return the range that results from the union of this range with
 /// another range.  The resultant range is guaranteed to include the elements of
 /// both sets, but may contain more.  For example, [3, 9) union [12,15) is [3,
 /// 15), which includes 9, 10, and 11, which were not included in either set
index 022c34fe4090cb697a0459bec3372759ded3c55a..c6948576f8ba13a7c3e6367d54352d8621054468 100644 (file)
@@ -274,7 +274,7 @@ static ConstantRange intersect1Wrapped(const ConstantRange &LHS,
   }
 }
 
-/// intersect - Return the range that results from the intersection of this
+/// intersectWith - Return the range that results from the intersection of this
 /// range with another range.
 ///
 ConstantRange ConstantRange::intersectWith(const ConstantRange &CR,
@@ -308,7 +308,7 @@ ConstantRange ConstantRange::intersectWith(const ConstantRange &CR,
   return *this;
 }
 
-/// union - Return the range that results from the union of this range with
+/// unionWith - Return the range that results from the union of this range with
 /// another range.  The resultant range is guaranteed to include the elements of
 /// both sets, but may contain more.  For example, [3, 9) union [12,15) is [3,
 /// 15), which includes 9, 10, and 11, which were not included in either set