reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/MC/MCAsmMacro.h
  101       return getString();
lib/MC/MCAsmMacro.cpp
   28       OS << T.getString();
lib/MC/MCParser/AsmParser.cpp
  837     if (!getTok().getString().empty() && getTok().getString().front() != '\n' &&
  837     if (!getTok().getString().empty() && getTok().getString().front() != '\n' &&
  838         getTok().getString().front() != '\r' && MAI.preserveAsmComments())
  839       Out.addExplicitComment(Twine(getTok().getString()));
  847       Out.addExplicitComment(Twine(tok->getString()));
 1194       StringRef IDVal = getTok().getString();
 1218     APFloat RealVal(APFloat::IEEEdouble(), getTok().getString());
 1694     if (getTok().getString().empty() || getTok().getString().front() == '\r' ||
 1694     if (getTok().getString().empty() || getTok().getString().front() == '\r' ||
 1695         getTok().getString().front() == '\n')
 1717       IDVal = getTok().getString();
 2311   StringRef Filename = getTok().getString();
 2451           OS << Token.getString();
 2495             if (AltMacroMode && Token.getString().front() == '%' &&
 2501             else if (AltMacroMode && Token.getString().front() == '<' &&
 2508               OS << Token.getString();
 3133   StringRef IDVal = getTok().getString();
 5657   StringRef Values = A.front().front().getString();
 5721   if (StrTok.isNot(AsmToken::String) || StrTok.getString().front() != '"')
lib/MC/MCParser/ELFAsmParser.cpp
  265       CurSize = getTok().getString().size();
  406     TypeName = getTok().getString();
  430     GroupName = getTok().getString();
lib/MC/MCParser/MCAsmLexer.cpp
   45     OS << "identifier: " << getString();
   48     OS << "int: " << getString();
   51     OS << "real: " << getString();
   54     OS << "string: " << getString();
  127   OS.write_escaped(getString());
lib/MC/MCParser/WasmAsmParser.cpp
   71     return Parser->Error(Tok.getLoc(), Msg + Tok.getString());
  184                        Lexer->getTok().getString()));
  189     auto TypeName = Lexer->getTok().getString();
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 2302   std::string lowerCase = Tok.getString().lower();
 2400   auto PRFM = LookupByName(Tok.getString());
 2408       *PRFM, Tok.getString(), S, getContext()));
 2423   auto PSB = AArch64PSBHint::lookupPSBByName(Tok.getString());
 2431       PSB->Encoding, Tok.getString(), S, getContext()));
 2446   auto BTI = AArch64BTIHint::lookupBTIByName(Tok.getString());
 2454       BTI->Encoding, Tok.getString(), S, getContext()));
 2568   if (Tok.is(AsmToken::Integer) && Tok.getString().startswith("0x")) {
 2581         RealVal.convertFromString(Tok.getString(), APFloat::rmTowardZero);
 2713   StringRef Cond = Tok.getString();
 2736   std::string LowerID = Tok.getString().lower();
 2893   StringRef Op = Tok.getString();
 3013   auto TSB = AArch64TSB::lookupTSBByName(Tok.getString());
 3015   auto DB = AArch64DB::lookupDBByName(Tok.getString());
 3029       DB ? DB->Encoding : TSB->Encoding, Tok.getString(), getLoc(), getContext()));
 3044   auto SysReg = AArch64SysReg::lookupSysRegByName(Tok.getString());
 3049     MRSReg = MSRReg = AArch64SysReg::parseGenericRegister(Tok.getString());
 3051   auto PState = AArch64PState::lookupPStateByName(Tok.getString());
 3057       AArch64Operand::CreateSysReg(Tok.getString(), getLoc(), MRSReg, MSRReg,
 3135   StringRef Name = Tok.getString();
 3197   auto Pred = Parser.getTok().getString().lower();
 3508   bool NextIsVL = Parser.getLexer().peekTok().getString().equals_lower("vl");
 3510   if (!Parser.getTok().getString().equals_lower("mul") ||
 3640       APFloat RealVal(APFloat::IEEEdouble(), Tok.getString());
 5741     auto Pat = AArch64SVEPredPattern::lookupSVEPREDPATByName(TokE.getString());
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 2085   StringRef Str = Token.getString();
 2438     const auto &str = Token.getString();
 4088   StringRef KernelName = Parser.getTok().getString();
 4168       CollectStream << getLexer().getTok().getString();
 4299   StringRef IDVal = DirectiveID.getString();
 4611         StringRef Tok = Parser.getTok().getString();
 4658   StringRef Tok = Parser.getTok().getString();
 4673   Value = Parser.getTok().getString();
 5138   StringRef Str = Parser.getTok().getString();
 5159   StringRef Str = Parser.getTok().getString();
 5269   StringRef Str = Parser.getTok().getString();
 5289   return Token.is(AsmToken::Identifier) && Token.getString() == Id;
 5404   return getToken().getString();
 5710       Parser.getTok().getString() == "gpr_idx" &&
 6145   StringRef Name = Parser.getTok().getString();
 6448   if (getLexer().getTok().getString() != "dim")
 6462     Token = getLexer().getTok().getString();
 6469   Token += getLexer().getTok().getString();
 6491     Prefix = Parser.getTok().getString();
 6551     Prefix = Parser.getTok().getString();
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 3896   std::string lowerCase = Tok.getString().lower();
 3955   std::string lowerCase = Tok.getString().lower();
 4062     Operands.push_back(ARMOperand::CreateToken(ExclaimTok.getString(),
 4153   unsigned CC = ARMCondCodeFromString(Tok.getString());
 4174   int Num = MatchCoprocessorOperandName(Tok.getString().lower(), 'p');
 4196   int Reg = MatchCoprocessorOperandName(Tok.getString().lower(), 'c');
 4388         Warning(RegLoc, "duplicated register (" + RegTok.getString() +
 4414       Warning(RegLoc, "duplicated register (" + RegTok.getString() +
 4758     StringRef OptStr = Tok.getString();
 4830   if (!Tok.getString().equals_lower("csync"))
 4848     StringRef OptStr = Tok.getString();
 4899   StringRef IFlagsStr = Tok.getString();
 4946   StringRef Mask = Tok.getString();
 5032   StringRef RegName = Tok.getString();
 5053   StringRef ShiftName = Tok.getString();
 5102   int Val = StringSwitch<int>(Tok.getString().lower())
 5132   StringRef ShiftName = Tok.getString();
 5201   StringRef ShiftName = Tok.getString();
 5844   StringRef ShiftName = Tok.getString();
 5949     APFloat RealVal(APFloat::IEEEsingle(), Tok.getString());
 6017           Parser.getTok().getString().equals_lower("apsr_nzcv")) {
 6072         Operands.push_back(ARMOperand::CreateToken(Parser.getTok().getString(),
10672   StringRef Mode = Tok.getString();
11443   StringRef Arch = Parser.getTok().getString();
11758   StringRef Name = Parser.getTok().getString();
lib/Target/AVR/AsmParser/AVRAsmParser.cpp
  335   StringRef Name = Parser.getTok().getString();
  456   StringRef ModifierName = Parser.getTok().getString();
  462     if (Parser.getTok().getString() == GENERATE_STUBS &&
  537     Operands.push_back(AVROperand::CreateToken(Parser.getTok().getString(),
  660     StringRef ModifierName = Parser.getTok().getString();
  670         getContext().getOrCreateSymbol(Parser.getTok().getString());
lib/Target/BPF/AsmParser/BPFAsmParser.cpp
  376     StringRef Name = getLexer().getTok().getString();
  390         getLexer().getTok().getString().substr(0, 1), S));
  392         getLexer().getTok().getString().substr(1, 1), S));
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  507     StringRef Option = Parser.getTok().getString();
  847   StringRef String = Token.getString();
  888               MaybeDotNew.getString().equals_lower(".new"))
  906               MaybeDotNew.getString().equals_lower(".new"))
  925   StringRef String = Token.getString();
  931       Third.getString().lower() == "sat")
  938   StringRef Raw(String.data(), Third.getString().data() - String.data() +
  939                                    Third.getString().size());
  965   StringRef RawString(Lexer.getTok().getString().data(), 0);
  970     RawString = StringRef(RawString.data(), Token.getString().data() -
  972                                                 Token.getString().size());
  975     bool Contigious = Lexer.getTok().getString().data() ==
  976                       Lookahead.back().getString().data() +
  977                           Lookahead.back().getString().size();
 1108           getContext(), Token.getString(), Token.getLoc()));
 1115             getContext(), Token.getString(), Token.getLoc()));
 1131           getContext(), Token.getString().substr(0, 1), Token.getLoc()));
 1133           getContext(), Token.getString().substr(1, 1), Token.getLoc()));
 1143             getContext(), Token.getString(), Token.getLoc()));
 1155         StringRef String = Token.getString();
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
 6364         RegNum, Token.getString(), getContext().getRegisterInfo(), S,
 6441     return matchCPURegisterName(Parser.getLexer().peekTok().getString()) == -1
 7478     if (Tok.getString() == "2008") {
 7482     } else if (Tok.getString() == "legacy") {
 7496   StringRef IdVal = Tok.getString();
 8120     StringRef Value = Parser.getTok().getString();
 8191   StringRef IDVal = DirectiveID.getString();
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
 1175     StringRef Name = getParser().getTok().getString();
 1406     StringRef poss = Parser.getTok().getString();
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
 1485   StringRef IDVal = DirectiveID.getString();
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  700   StringRef IDVal = DirectiveID.getString();
  772     unsigned MaskVal = StringSwitch<unsigned>(Parser.getTok().getString())
  885       StringRef name = Parser.getTok().getString();
  972     StringRef modName = Parser.getTok().getString();
  988     StringRef name = Tok.getString();
 1291   StringRef name = Tok.getString();
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
  707   StringRef Name = Parser.getTok().getString();
 1333     StringRef Name = Parser.getTok().getString();
 1355     StringRef Identifier = Parser.getTok().getString();
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  219     return Parser.Error(Tok.getLoc(), Msg + Tok.getString());
  291     auto Name = Lexer.getTok().getString();
  331       auto Type = parseType(Lexer.getTok().getString());
  356     if (Flt.getString().getAsDouble(Val, false))
  371     auto S = Flt.getString();
  441       Name = StringRef(Name.begin(), Name.size() + Sep.getString().size());
  448       Name = StringRef(Name.begin(), Name.size() + Id.getString().size());
  536           auto BT = parseBlockType(Id.getString());
  663     if (DirectiveID.getString() == ".globaltype") {
  686     if (DirectiveID.getString() == ".functype") {
  715     if (DirectiveID.getString() == ".eventtype") {
  731     if (DirectiveID.getString() == ".local") {
  743     if (DirectiveID.getString() == ".int8" ||
  744         DirectiveID.getString() == ".int16" ||
  745         DirectiveID.getString() == ".int32" ||
  746         DirectiveID.getString() == ".int64") {
  753       DirectiveID.getString().drop_front(4).getAsInteger(10, NumBits);
  758     if (DirectiveID.getString() == ".asciz") {
lib/Target/X86/AsmParser/X86AsmParser.cpp
 1109   RegNo = MatchRegisterName(Tok.getString());
 1113     RegNo = MatchRegisterName(Tok.getString().lower());
 1130       StringRef RegName = Tok.getString();
 1175   if (RegNo == 0 && Tok.getString().startswith("db")) {
 1176     if (Tok.getString().size() == 3) {
 1177       switch (Tok.getString()[2]) {
 1189     } else if (Tok.getString().size() == 4 && Tok.getString()[2] == '1') {
 1189     } else if (Tok.getString().size() == 4 && Tok.getString()[2] == '1') {
 1190       switch (Tok.getString()[3]) {
 1463       StringRef Identifier = Tok.getString();
 1521         StringRef IDVal = getTok().getString();
 1715   StringRef DotDispStr = Tok.getString();
 1752   StringRef Identifier = Tok.getString();
 1801   StringRef Identifier = Tok.getString();
 1823   Size = StringSwitch<unsigned>(getTok().getString())
 1841     if (!(Tok.getString().equals("PTR") || Tok.getString().equals("ptr")))
 1841     if (!(Tok.getString().equals("PTR") || Tok.getString().equals("ptr")))
 1857     if (IdentifyIntelInlineAsmOperator(Tok.getString()) == IOK_OFFSET)
 2334        MatchRegisterName(Parser.getTok().getString()))) {
 2358       std::string Prefix = Parser.getTok().getString().lower();
 2381         Name = Parser.getTok().getString();
 2398     StringRef NextTok = Parser.getTok().getString();
 2589     Name = Parser.getTok().getString();
 2597       Name = Parser.getTok().getString();
 3565       if (Parser.getTok().getString() == "prefix")
 3567       else if (Parser.getTok().getString() == "noprefix")
 3577       if (Parser.getTok().getString() == "noprefix")
 3579       else if (Parser.getTok().getString() == "prefix")