ΒΆbool isKnownToBeAPowerOfTwo(
const llvm::Value* V,
bool OrZero,
unsigned int Depth,
const(anonymous namespace)::Query& Q)
bool isKnownToBeAPowerOfTwo(
const llvm::Value* V,
bool OrZero,
unsigned int Depth,
const(anonymous namespace)::Query& Q)
Description
Return true if the given value is known to have 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 types and vectors of integers.
Declared at: llvm/lib/Analysis/ValueTracking.cpp:1829
Parameters
- const llvm::Value* V
- bool OrZero
- unsigned int Depth
- const(anonymous namespace)::Query& Q