[llvm] r243505 - Make function comments consistently imperative.

Bjarke Hammersholt Roune broune at google.com
Tue Jul 28 17:29:09 PDT 2015


Author: broune
Date: Tue Jul 28 19:29:08 2015
New Revision: 243505

URL: http://llvm.org/viewvc/llvm-project?rev=243505&view=rev
Log:
Make function comments consistently imperative.

(tiny edit, mostly a test that my new commit access works)


Modified:
    llvm/trunk/include/llvm/Analysis/ValueTracking.h

Modified: llvm/trunk/include/llvm/Analysis/ValueTracking.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ValueTracking.h?rev=243505&r1=243504&r2=243505&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ValueTracking.h (original)
+++ llvm/trunk/include/llvm/Analysis/ValueTracking.h Tue Jul 28 19:29:08 2015
@@ -49,7 +49,7 @@ namespace llvm {
   /// \p KnownZero the set of bits that are known to be zero
   void computeKnownBitsFromRangeMetadata(const MDNode &Ranges,
                                          APInt &KnownZero);
-  /// Returns true if LHS and RHS have no common bits set.
+  /// Return true if LHS and RHS have no common bits set.
   bool haveNoCommonBitsSet(Value *LHS, Value *RHS, const DataLayout &DL,
                            AssumptionCache *AC = nullptr,
                            const Instruction *CxtI = nullptr,
@@ -67,7 +67,7 @@ namespace llvm {
   /// exactly one bit set when defined. For vectors return true if every
   /// element is known to be a power of two when defined.  Supports values with
   /// integer or pointer type and vectors of integers.  If 'OrZero' is set then
-  /// returns true if the given value is either a power of two or zero.
+  /// return true if the given value is either a power of two or zero.
   bool isKnownToBeAPowerOfTwo(Value *V, const DataLayout &DL,
                               bool OrZero = false, unsigned Depth = 0,
                               AssumptionCache *AC = nullptr,





More information about the llvm-commits mailing list