Lines Matching refs:Radix
339 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
342 if (Radix == 0) in getAsUnsignedInteger()
343 Radix = GetAutoSenseRadix(Str); in getAsUnsignedInteger()
363 if (CharVal >= Radix) in getAsUnsignedInteger()
368 Result = Result*Radix+CharVal; in getAsUnsignedInteger()
371 if (Result/Radix < PrevResult) in getAsUnsignedInteger()
380 bool llvm::getAsSignedInteger(StringRef Str, unsigned Radix, in getAsSignedInteger() argument
386 if (getAsUnsignedInteger(Str, Radix, ULLVal) || in getAsSignedInteger()
395 if (getAsUnsignedInteger(Str.substr(1), Radix, ULLVal) || in getAsSignedInteger()
406 bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const { in getAsInteger() argument
410 if (Radix == 0) in getAsInteger()
411 Radix = GetAutoSenseRadix(Str); in getAsInteger()
413 assert(Radix > 1 && Radix <= 36); in getAsInteger()
431 while ((1U << Log2Radix) < Radix) Log2Radix++; in getAsInteger()
432 bool IsPowerOf2Radix = ((1U << Log2Radix) == Radix); in getAsInteger()
443 RadixAP = APInt(BitWidth, Radix); in getAsInteger()
462 if (CharVal >= Radix) in getAsInteger()