Searched refs:OrZero (Results 1 - 2 of 2) sorted by relevance

/external/llvm/include/llvm/Analysis/
H A DValueTracking.h51 /// type and vectors of integers. If 'OrZero' is set then returns true if the
53 bool isPowerOfTwo(Value *V, const TargetData *TD = 0, bool OrZero = false,
/external/llvm/lib/Analysis/
H A DValueTracking.cpp799 bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, bool OrZero, argument
803 return OrZero;
825 if (OrZero && (match(V, m_Shl(m_Value(X), m_Value())) ||
827 return isPowerOfTwo(X, TD, /*OrZero*/true, Depth);
830 return isPowerOfTwo(ZI->getOperand(0), TD, OrZero, Depth);
833 return isPowerOfTwo(SI->getTrueValue(), TD, OrZero, Depth) &&
834 isPowerOfTwo(SI->getFalseValue(), TD, OrZero, Depth);
836 if (OrZero && match(V, m_And(m_Value(X), m_Value(Y)))) {
838 if (isPowerOfTwo(X, TD, /*OrZero*/true, Depth) ||
839 isPowerOfTwo(Y, TD, /*OrZero*/tru
[all...]

Completed in 32 milliseconds