| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | StringRef.cpp | 417 if (Radix == 0) in consumeUnsignedInteger() 418 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger() 439 if (CharVal >= Radix) in consumeUnsignedInteger() 444 Result = Result * Radix + CharVal; in consumeUnsignedInteger() 447 if (Result / Radix < PrevResult) in consumeUnsignedInteger() 504 if (consumeSignedInteger(Str, Radix, Result)) in getAsSignedInteger() 516 if (Radix == 0) in getAsInteger() 517 Radix = GetAutoSenseRadix(Str); in getAsInteger() 519 assert(Radix > 1 && Radix <= 36); in getAsInteger() 549 RadixAP = APInt(BitWidth, Radix); in getAsInteger() [all …]
|
| H A D | APInt.cpp | 519 if (Radix == 2) in getSufficientBitsNeeded() 521 if (Radix == 8) in getSufficientBitsNeeded() 523 if (Radix == 16) in getSufficientBitsNeeded() 530 if (Radix == 10) in getSufficientBitsNeeded() 533 assert(Radix == 36); in getSufficientBitsNeeded() 2141 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString() 2142 Radix == 36) && in toString() 2147 switch (Radix) { in toString() 2202 N /= Radix; in toString() 2229 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString() [all …]
|
| H A D | APFloat.cpp | 2887 unsigned Radix = 10; in convertFromStringSpecials() local 2891 Radix = 16; in convertFromStringSpecials() 2893 Radix = 8; in convertFromStringSpecials() 2898 if (!str.getAsInteger(Radix, Payload)) { in convertFromStringSpecials()
|
| /llvm-project-15.0.7/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 304 switch (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() 401 if (Radix) { in LexDigit() 467 bool IsHex = Radix == 16; in LexDigit() [all …]
|
| H A D | MasmParser.cpp | 7188 unsigned Radix; in parseDirectiveRadix() local 7189 if (RadixString.getAsInteger(10, Radix)) { in parseDirectiveRadix() 7194 if (Radix < 2 || Radix > 16) in parseDirectiveRadix() 7196 std::to_string(Radix)); in parseDirectiveRadix() 7197 getLexer().setMasmDefaultRadix(Radix); in parseDirectiveRadix()
|
| /llvm-project-15.0.7/llvm/tools/llvm-strings/ |
| H A D | llvm-strings.cpp | 73 static radix Radix; variable 95 switch (Radix) { in strings() 154 Radix = none; in main() 156 Radix = octal; in main() 158 Radix = decimal; in main() 160 Radix = hexadecimal; in main()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | StringRef.h | 42 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 47 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix, 514 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument 516 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger() 525 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument 530 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger() 548 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument 550 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger() 559 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument 561 if (consumeUnsignedInteger(*this, Radix, ULLVal) || in consumeInteger() [all …]
|
| H A D | StringExtras.h | 318 inline std::string toString(const APInt &I, unsigned Radix, bool Signed, 321 I.toString(S, Radix, Signed, formatAsCLiteral); 325 inline std::string toString(const APSInt &I, unsigned Radix) { in toString() argument 326 return toString(I, Radix, I.isSigned()); in toString()
|
| H A D | APInt.h | 1494 static unsigned getSufficientBitsNeeded(StringRef Str, uint8_t Radix); 1584 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed, 1589 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1590 toString(Str, Radix, false, false); 1595 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const { 1596 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());
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | llvm-conventions.cpp | 104 getAsInteger(unsigned Radix, T &Result) const; 107 getAsInteger(unsigned Radix, T &Result) const; 110 consumeInteger(unsigned Radix, T &Result); 113 consumeInteger(unsigned Radix, T &Result); 114 bool getAsInteger(unsigned Radix, APInt &Result) const;
|
| /llvm-project-15.0.7/llvm/tools/llvm-size/ |
| H A D | llvm-size.cpp | 80 static RadixTy Radix; variable 156 conv.toString(result, Radix, false, true); in getNumLengthAsString() 162 switch (Radix) { in getRadixFmt() 211 if (Radix == hexadecimal) in printDarwinSectionSizes() 495 << (Radix == octal ? "oct" : "dec") in printObjectSectionSizes() 508 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printObjectSectionSizes() 859 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printBerkeleyTotals() 905 Radix = RadixTy::octal; in main() 907 Radix = RadixTy::decimal; in main() 909 Radix = RadixTy::hexadecimal; in main()
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/ |
| H A D | MCAsmLexer.h | 167 void setMasmDefaultRadix(unsigned Radix) { DefaultRadix = Radix; } in setMasmDefaultRadix() argument
|
| /llvm-project-15.0.7/llvm/tools/llvm-nm/ |
| H A D | llvm-nm.cpp | 116 enum Radix { d, o, x }; enum 118 static Radix AddressRadix; 732 case Radix::o: in printSymbolList() 735 case Radix::x: in printSymbolList() 745 case Radix::o: in printSymbolList() 748 case Radix::x: in printSymbolList() 2363 AddressRadix = Radix::o; in main() 2365 AddressRadix = Radix::d; in main() 2367 AddressRadix = Radix::x; in main()
|
| H A D | Opts.td | 33 defm radix : Eq<"radix", "Radix (o/d/x) for printing symbol Values">, MetaVarName<"<radix>">;
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 1339 static bool alwaysFitsInto64Bits(unsigned Radix, unsigned NumDigits) { in alwaysFitsInto64Bits() argument 1340 switch (Radix) { in alwaysFitsInto64Bits()
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | Core.h | 1985 uint8_t Radix); 1994 unsigned SLen, uint8_t Radix);
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 124 static ConstantInt *get(IntegerType *Ty, StringRef Str, uint8_t Radix);
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Core.cpp | 1385 uint8_t Radix) { in LLVMConstIntOfString() argument 1387 Radix)); in LLVMConstIntOfString() 1391 unsigned SLen, uint8_t Radix) { in LLVMConstIntOfStringAndSize() argument 1393 Radix)); in LLVMConstIntOfStringAndSize()
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/llvm/ |
| H A D | llvm_ocaml.c | 888 LLVMValueRef llvm_const_int_of_string(LLVMTypeRef IntTy, value S, value Radix) { in llvm_const_int_of_string() argument 890 caml_string_length(S), Int_val(Radix)); in llvm_const_int_of_string()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Expr.h | 1573 std::string getValueAsString(unsigned Radix) const;
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Expr.cpp | 935 std::string FixedPointLiteral::getValueAsString(unsigned Radix) const { in getValueAsString()
|