Lines Matching refs:Radix
378 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
381 if (Radix == 0) in getAsUnsignedInteger()
382 Radix = GetAutoSenseRadix(Str); in getAsUnsignedInteger()
402 if (CharVal >= Radix) in getAsUnsignedInteger()
407 Result = Result*Radix+CharVal; in getAsUnsignedInteger()
410 if (Result/Radix < PrevResult) in getAsUnsignedInteger()
419 bool llvm::getAsSignedInteger(StringRef Str, unsigned Radix, in getAsSignedInteger() argument
425 if (getAsUnsignedInteger(Str, Radix, ULLVal) || in getAsSignedInteger()
434 if (getAsUnsignedInteger(Str.substr(1), Radix, ULLVal) || in getAsSignedInteger()
445 bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const { in getAsInteger() argument
449 if (Radix == 0) in getAsInteger()
450 Radix = GetAutoSenseRadix(Str); in getAsInteger()
452 assert(Radix > 1 && Radix <= 36); in getAsInteger()
470 while ((1U << Log2Radix) < Radix) Log2Radix++; in getAsInteger()
471 bool IsPowerOf2Radix = ((1U << Log2Radix) == Radix); in getAsInteger()
482 RadixAP = APInt(BitWidth, Radix); in getAsInteger()
501 if (CharVal >= Radix) in getAsInteger()