Lines Matching refs:Radix
410 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix,
413 if (Radix == 0)
414 Radix = GetAutoSenseRadix(Str);
435 if (CharVal >= Radix)
440 Result = Result * Radix + CharVal;
443 if (Result / Radix < PrevResult)
458 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix,
464 if (consumeUnsignedInteger(Str, Radix, ULLVal) ||
474 if (consumeUnsignedInteger(Str2, Radix, ULLVal) ||
488 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix,
490 if (consumeUnsignedInteger(Str, Radix, Result))
498 bool llvm::getAsSignedInteger(StringRef Str, unsigned Radix,
500 if (consumeSignedInteger(Str, Radix, Result))
508 bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const {
512 if (Radix == 0)
513 Radix = GetAutoSenseRadix(Str);
515 assert(Radix > 1 && Radix <= 36);
533 while ((1U << Log2Radix) < Radix) Log2Radix++;
534 bool IsPowerOf2Radix = ((1U << Log2Radix) == Radix);
545 RadixAP = APInt(BitWidth, Radix);
564 if (CharVal >= Radix)