llvm::APInt::countl_zero

The APInt version of std::countl_zero.

Synopsis

Declared in <llvm/ADT/APInt.h>

unsigned int
countl_zero() const;

Description

It counts the number of zeros from the most significant bit to the first one bit.

Return Value

BitWidth if the value is zero, otherwise returns the number of zeros from the most significant bit to the first one bits.