r182675 - Replace Count{Leading, Trailing}Zeros_{32, 64} with count{Leading, Trailing}Zeros.

Michael J. Spencer bigcheesegs at gmail.com
Fri May 24 14:42:04 PDT 2013


Author: mspencer
Date: Fri May 24 16:42:04 2013
New Revision: 182675

URL: http://llvm.org/viewvc/llvm-project?rev=182675&view=rev
Log:
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.

Modified:
    cfe/trunk/lib/AST/Type.cpp
    cfe/trunk/lib/Basic/SourceManager.cpp
    cfe/trunk/lib/Lex/Lexer.cpp

Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=182675&r1=182674&r2=182675&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Fri May 24 16:42:04 2013
@@ -93,7 +93,7 @@ unsigned ConstantArrayType::getNumAddres
   if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
       (NumElements.getZExtValue() >> 32) == 0) {
     uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
-    return 64 - llvm::CountLeadingZeros_64(TotalSize);
+    return 64 - llvm::countLeadingZeros(TotalSize);
   }
 
   // Otherwise, use APSInt to handle arbitrary sized values.

Modified: cfe/trunk/lib/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/SourceManager.cpp?rev=182675&r1=182674&r2=182675&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/SourceManager.cpp (original)
+++ cfe/trunk/lib/Basic/SourceManager.cpp Fri May 24 16:42:04 2013
@@ -1258,7 +1258,7 @@ static void ComputeLineNumbers(Diagnosti
 
       // If we found a newline, adjust the pointer and jump to the handling code.
       if (Mask != 0) {
-        NextBuf += llvm::CountTrailingZeros_32(Mask);
+        NextBuf += llvm::countTrailingZeros(Mask);
         goto FoundSpecialChar;
       }
       NextBuf += 16;

Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=182675&r1=182674&r2=182675&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Fri May 24 16:42:04 2013
@@ -2195,7 +2195,7 @@ bool Lexer::SkipBlockComment(Token &Resu
           // Adjust the pointer to point directly after the first slash. It's
           // not necessary to set C here, it will be overwritten at the end of
           // the outer loop.
-          CurPtr += llvm::CountTrailingZeros_32(cmp) + 1;
+          CurPtr += llvm::countTrailingZeros<unsigned>(cmp) + 1;
           goto FoundSlash;
         }
         CurPtr += 16;





More information about the cfe-commits mailing list