/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | StringRef.cpp | 408 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument 411 if (Radix == 0) in consumeUnsignedInteger() 412 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger() 433 if (CharVal >= Radix) in consumeUnsignedInteger() 438 Result = Result * Radix + CharVal; in consumeUnsignedInteger() 441 if (Result / Radix < PrevResult) in consumeUnsignedInteger() 456 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument 462 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger() 472 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger() 486 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument [all …]
|
H A D | APInt.cpp | 513 unsigned APInt::getSufficientBitsNeeded(StringRef Str, uint8_t Radix) { in getSufficientBitsNeeded() argument 527 if (Radix == 2) in getSufficientBitsNeeded() 529 if (Radix == 8) in getSufficientBitsNeeded() 531 if (Radix == 16) in getSufficientBitsNeeded() 538 if (Radix == 10) in getSufficientBitsNeeded() 541 assert(Radix == 36); in getSufficientBitsNeeded() 2134 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed, in toString() argument 2137 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString() 2138 Radix == 36) && in toString() 2143 switch (Radix) { in toString() [all …]
|
H A D | APFloat.cpp | 3201 unsigned Radix = 10; in convertFromStringSpecials() local 3205 Radix = 16; in convertFromStringSpecials() 3207 Radix = 8; in convertFromStringSpecials() 3212 if (!str.getAsInteger(Radix, Payload)) { in convertFromStringSpecials()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | AsmLexer.cpp | 303 static std::string radixName(unsigned Radix) { in radixName() argument 304 switch (Radix) { in radixName() 314 return "base-" + std::to_string(Radix); in radixName() 373 unsigned Radix = 0; in LexDigit() local 377 Radix = 16; in LexDigit() 381 Radix = 10; in LexDigit() 386 Radix = 8; in LexDigit() 390 Radix = 2; in LexDigit() 394 Radix = 10; in LexDigit() 398 Radix = 2; in LexDigit() [all …]
|
H A D | MasmParser.cpp | 7176 unsigned Radix; in parseDirectiveRadix() local 7177 if (RadixString.getAsInteger(10, Radix)) { in parseDirectiveRadix() 7182 if (Radix < 2 || Radix > 16) in parseDirectiveRadix() 7184 std::to_string(Radix)); in parseDirectiveRadix() 7185 getLexer().setMasmDefaultRadix(Radix); in parseDirectiveRadix()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-strings/ |
H A D | llvm-strings.cpp | 73 static radix Radix; 95 switch (Radix) { 154 Radix = none; in main() 156 Radix = octal; in main() 158 Radix = decimal; in main() 160 Radix = hexadecimal; in main() 80 static radix Radix; global() variable
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | StringRef.h | 34 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 37 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 39 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix, 41 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result); 455 template <typename T> bool getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument 458 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger() 467 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger() 484 template <typename T> bool consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument 487 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger() 493 if (consumeUnsignedInteger(*this, Radix, ULLVal) || in consumeInteger() [all …]
|
H A D | StringExtras.h | 331 inline std::string toString(const APInt &I, unsigned Radix, bool Signed, 336 I.toString(S, Radix, Signed, formatAsCLiteral, UpperCase, InsertSeparators); 340 inline std::string toString(const APSInt &I, unsigned Radix) { in toString() argument 341 return toString(I, Radix, I.isSigned()); in toString()
|
H A D | APInt.h | 1548 static unsigned getSufficientBitsNeeded(StringRef Str, uint8_t Radix); 1643 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed, 1649 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1650 toString(Str, Radix, false, false); 1655 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1656 toString(Str, Radix, true, false);
|
H A D | APSInt.h | 83 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 84 APInt::toString(Str, Radix, isSigned());
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/ |
H A D | llvm-size.cpp | 75 static RadixTy Radix; 146 /// Get the length of the string that represents @p num in Radix including the in error() 151 conv.toString(result, Radix, false, true); in error() 155 /// Return the printing format for the Radix. 157 switch (Radix) { in getNumLengthAsString() 206 if (Radix == hexadecimal) 350 /// The format used is determined by @c OutputFormat and @c Radix. in printDarwinSegmentSizes() 490 << (Radix == octal ? "oct" : "dec") in printObjectSectionSizes() 503 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printObjectSectionSizes() 858 fmt << "%7" << (Radix in printBerkeleyTotals() 84 static RadixTy Radix; global() variable [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmLexer.h | 167 void setMasmDefaultRadix(unsigned Radix) { DefaultRadix = Radix; } in setMasmDefaultRadix() argument
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/ |
H A D | llvm-nm.cpp | 119 enum Radix { d, o, x }; enum 121 static Radix AddressRadix; 755 case Radix::o: in printSymbolList() 758 case Radix::x: in printSymbolList() 768 case Radix::o: in printSymbolList() 771 case Radix::x: in printSymbolList() 2465 AddressRadix = Radix::o; in llvm_nm_main() 2467 AddressRadix = Radix::d; in llvm_nm_main() 2469 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/FileCheck/ |
H A D | FileCheck.cpp | 85 unsigned Radix; in getMatchingString() local 92 Radix = 10; in getMatchingString() 96 Radix = 16; in getMatchingString() 99 Radix = 16; in getMatchingString() 106 IntValue.abs().toString(AbsoluteValueStr, Radix, /*Signed=*/false, in getMatchingString()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 1448 static bool alwaysFitsInto64Bits(unsigned Radix, unsigned NumDigits) { in alwaysFitsInto64Bits() argument 1449 switch (Radix) { in alwaysFitsInto64Bits()
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | Core.h | 2230 uint8_t Radix); 2239 unsigned SLen, uint8_t Radix);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 137 static ConstantInt *get(IntegerType *Ty, StringRef Str, uint8_t Radix);
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Core.cpp | 1549 uint8_t Radix) { in LLVMConstIntOfString() argument 1551 Radix)); in LLVMConstIntOfString() 1555 unsigned SLen, uint8_t Radix) { in LLVMConstIntOfStringAndSize() argument 1557 Radix)); in LLVMConstIntOfStringAndSize()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1012 std::string FixedPointLiteral::getValueAsString(unsigned Radix) const { in getValueAsString()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Expr.h | 1578 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…
|