| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | StringRef.cpp | 409 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument 412 if (Radix == 0) in consumeUnsignedInteger() 413 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger() 434 if (CharVal >= Radix) in consumeUnsignedInteger() 439 Result = Result * Radix + CharVal; in consumeUnsignedInteger() 442 if (Result / Radix < PrevResult) in consumeUnsignedInteger() 457 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument 463 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger() 473 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger() 487 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument [all …]
|
| H A D | APInt.cpp | 544 unsigned APInt::getSufficientBitsNeeded(StringRef Str, uint8_t Radix) { in getSufficientBitsNeeded() argument 558 if (Radix == 2) in getSufficientBitsNeeded() 560 if (Radix == 8) in getSufficientBitsNeeded() 562 if (Radix == 16) in getSufficientBitsNeeded() 569 if (Radix == 10) in getSufficientBitsNeeded() 572 assert(Radix == 36); in getSufficientBitsNeeded() 2164 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed, in toString() argument 2167 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString() 2168 Radix == 36) && in toString() 2173 switch (Radix) { in toString() [all …]
|
| H A D | APFloat.cpp | 3301 unsigned Radix = 10; in convertFromStringSpecials() local 3305 Radix = 16; in convertFromStringSpecials() 3307 Radix = 8; in convertFromStringSpecials() 3313 if (!str.getAsInteger(Radix, Payload)) { in convertFromStringSpecials()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 383 static std::string radixName(unsigned Radix) { in radixName() argument 384 switch (Radix) { in radixName() 394 return "base-" + std::to_string(Radix); in radixName() 453 unsigned Radix = 0; in LexDigit() local 457 Radix = 16; in LexDigit() 461 Radix = 10; in LexDigit() 466 Radix = 8; in LexDigit() 470 Radix = 2; in LexDigit() 474 Radix = 10; in LexDigit() 478 Radix = 2; in LexDigit() [all …]
|
| H A D | MasmParser.cpp | 5712 unsigned Radix; in parseDirectiveRadix() local 5713 if (RadixString.getAsInteger(10, Radix)) { in parseDirectiveRadix() 5718 if (Radix < 2 || Radix > 16) in parseDirectiveRadix() 5720 std::to_string(Radix)); in parseDirectiveRadix() 5721 getLexer().setMasmDefaultRadix(Radix); in parseDirectiveRadix()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-strings/ |
| H A D | llvm-strings.cpp | 75 static radix Radix; variable 97 switch (Radix) { in strings() 156 Radix = none; in main() 158 Radix = octal; in main() 160 Radix = decimal; in main() 162 Radix = hexadecimal; in main()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | StringRef.h | 35 LLVM_ABI bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 38 LLVM_ABI bool getAsSignedInteger(StringRef Str, unsigned Radix, 41 LLVM_ABI bool consumeUnsignedInteger(StringRef &Str, unsigned Radix, 43 LLVM_ABI bool consumeSignedInteger(StringRef &Str, unsigned Radix, 478 template <typename T> bool getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument 481 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger() 490 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger() 507 template <typename T> bool consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument 510 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger() 516 if (consumeUnsignedInteger(*this, Radix, ULLVal) || in consumeInteger() [all …]
|
| H A D | APInt.h | 1589 uint8_t Radix); 1684 LLVM_ABI void toString(SmallVectorImpl<char> &Str, unsigned Radix, 1691 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1692 toString(Str, Radix, false, false); 1697 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1698 toString(Str, Radix, true, false);
|
| H A D | APSInt.h | 84 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 85 APInt::toString(Str, Radix, isSigned());
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-size/ |
| H A D | llvm-size.cpp | 79 static RadixTy Radix = RadixTy::decimal; variable 155 conv.toString(result, Radix, false, true); in getNumLengthAsString() 161 switch (Radix) { in getRadixFmt() 210 if (Radix == hexadecimal) in printDarwinSectionSizes() 493 << (Radix == octal ? "oct" : "dec") in printObjectSectionSizes() 506 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printObjectSectionSizes() 861 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printBerkeleyTotals() 906 Radix = RadixTy::octal; in llvm_size_main() 908 Radix = RadixTy::decimal; in llvm_size_main() 910 Radix = RadixTy::hexadecimal; in llvm_size_main()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| H A D | AsmLexer.h | 173 void setMasmDefaultRadix(unsigned Radix) { DefaultRadix = Radix; } in setMasmDefaultRadix() argument
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-nm/ |
| H A D | llvm-nm.cpp | 121 enum Radix { d, o, x }; enum 123 static Radix AddressRadix; 757 case Radix::o: in printSymbolList() 760 case Radix::x: in printSymbolList() 770 case Radix::o: in printSymbolList() 773 case Radix::x: in printSymbolList() 2467 AddressRadix = Radix::o; in llvm_nm_main() 2469 AddressRadix = Radix::d; in llvm_nm_main() 2471 AddressRadix = Radix::x; in llvm_nm_main()
|
| H A D | Opts.td | 34 defm radix : Eq<"radix", "Radix (o/d/x) for printing symbol Values">, MetaVarName<"<radix>">;
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Constant.cpp | 69 ConstantInt *ConstantInt::get(IntegerType *Ty, StringRef Str, uint8_t Radix) { in get() argument 71 llvm::ConstantInt::get(cast<llvm::IntegerType>(Ty->LLVMTy), Str, Radix); in get()
|
| /freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 84 unsigned Radix; in getMatchingString() local 91 Radix = 10; in getMatchingString() 95 Radix = 16; in getMatchingString() 98 Radix = 16; in getMatchingString() 105 IntValue.abs().toString(AbsoluteValueStr, Radix, /*Signed=*/false, in getMatchingString()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 1488 static bool alwaysFitsInto64Bits(unsigned Radix, unsigned NumDigits) { in alwaysFitsInto64Bits() argument 1489 switch (Radix) { in alwaysFitsInto64Bits()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 145 uint8_t Radix);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 2291 const char *Text, uint8_t Radix); 2302 uint8_t Radix);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Core.cpp | 1552 uint8_t Radix) { in LLVMConstIntOfString() argument 1554 Radix)); in LLVMConstIntOfString() 1558 unsigned SLen, uint8_t Radix) { in LLVMConstIntOfStringAndSize() argument 1560 Radix)); in LLVMConstIntOfStringAndSize()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Constant.h | 114 uint8_t Radix);
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Expr.cpp | 1009 std::string FixedPointLiteral::getValueAsString(unsigned Radix) const { in getValueAsString()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Expr.h | 1590 std::string getValueAsString(unsigned Radix) const;
|
| /freebsd/contrib/one-true-awk/testdir/ |
| H A D | funstack.ok | 2176 Radix Conversion . . . . . . . . . . . . 344--346
|
| H A D | funstack.in | 16471 title = "Addition in an Arbitrary Base Without Radix Conversion", 16482 …a mixed radix, and stored one digit per byte in bytes of sufficient size. Radix conversion is unne…
|