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

References

lib/AsmParser/LLParser.cpp
   66   Lex.Lex();
   70         Lex.getLoc(),
   80   Lex.Lex();
   85   if (Lex.getKind() != lltok::Eof)
   86     return Error(Lex.getLoc(), "expected end of string");
   93   Lex.Lex();
   96   SMLoc Start = Lex.getLoc();
  100   SMLoc End = Lex.getLoc();
  301       switch (Lex.getKind()) {
  314         Lex.Lex();
  319     switch (Lex.getKind()) {
  355   assert(Lex.getKind() == lltok::kw_module);
  356   Lex.Lex();
  370   assert(Lex.getKind() == lltok::kw_target);
  372   switch (Lex.Lex()) {
  375     Lex.Lex();
  382     Lex.Lex();
  395   assert(Lex.getKind() == lltok::kw_source_filename);
  396   Lex.Lex();
  410   assert(Lex.getKind() == lltok::kw_deplibs);
  411   Lex.Lex();
  430   LocTy TypeLoc = Lex.getLoc();
  431   unsigned TypeID = Lex.getUIntVal();
  432   Lex.Lex(); // eat LocalVarID;
  456   std::string Name = Lex.getStrVal();
  457   LocTy NameLoc = Lex.getLoc();
  458   Lex.Lex();  // eat LocalVar.
  482   assert(Lex.getKind() == lltok::kw_declare);
  483   Lex.Lex();
  486   while (Lex.getKind() == lltok::MetadataVar) {
  505   assert(Lex.getKind() == lltok::kw_define);
  506   Lex.Lex();
  518   if (Lex.getKind() == lltok::kw_constant)
  520   else if (Lex.getKind() == lltok::kw_global)
  526   Lex.Lex();
  553   LocTy NameLoc = Lex.getLoc();
  556   if (Lex.getKind() == lltok::GlobalID) {
  557     if (Lex.getUIntVal() != VarID)
  558       return Error(Lex.getLoc(), "variable expected to be numbered '%" +
  560     Lex.Lex(); // eat GlobalID;
  576   if (Lex.getKind() != lltok::kw_alias && Lex.getKind() != lltok::kw_ifunc)
  576   if (Lex.getKind() != lltok::kw_alias && Lex.getKind() != lltok::kw_ifunc)
  590   assert(Lex.getKind() == lltok::GlobalVar);
  591   LocTy NameLoc = Lex.getLoc();
  592   std::string Name = Lex.getStrVal();
  593   Lex.Lex();
  606   if (Lex.getKind() != lltok::kw_alias && Lex.getKind() != lltok::kw_ifunc)
  606   if (Lex.getKind() != lltok::kw_alias && Lex.getKind() != lltok::kw_ifunc)
  615   assert(Lex.getKind() == lltok::ComdatVar);
  616   std::string Name = Lex.getStrVal();
  617   LocTy NameLoc = Lex.getLoc();
  618   Lex.Lex();
  627   switch (Lex.getKind()) {
  646   Lex.Lex();
  677   LocTy IDLoc = Lex.getLoc();
  700   assert(Lex.getKind() == lltok::MetadataVar);
  701   std::string Name = Lex.getStrVal();
  702   Lex.Lex();
  710   if (Lex.getKind() != lltok::rbrace)
  716       if (Lex.getKind() == lltok::MetadataVar &&
  717           Lex.getStrVal() == "DIExpression") {
  733   assert(Lex.getKind() == lltok::exclaim);
  734   Lex.Lex();
  743   if (Lex.getKind() == lltok::Type)
  747   if (Lex.getKind() == lltok::MetadataVar) {
  776   if (Lex.getKind() != lltok::kw_gv && Lex.getKind() != lltok::kw_module &&
  776   if (Lex.getKind() != lltok::kw_gv && Lex.getKind() != lltok::kw_module &&
  777       Lex.getKind() != lltok::kw_typeid)
  780   Lex.Lex();
  788     switch (Lex.getKind()) {
  801     Lex.Lex();
  809   assert(Lex.getKind() == lltok::SummaryID);
  810   unsigned SummaryID = Lex.getUIntVal();
  814   Lex.setIgnoreColonInIdentifiers(true);
  816   Lex.Lex();
  825   switch (Lex.getKind()) {
  839     result = Error(Lex.getLoc(), "unexpected summary kind");
  842   Lex.setIgnoreColonInIdentifiers(false);
  878   if (Lex.getKind() == lltok::kw_alias)
  880   else if (Lex.getKind() == lltok::kw_ifunc)
  884   Lex.Lex();
  896   LocTy ExplicitTypeLoc = Lex.getLoc();
  902   LocTy AliaseeLoc = Lex.getLoc();
  903   if (Lex.getKind() != lltok::kw_bitcast &&
  904       Lex.getKind() != lltok::kw_getelementptr &&
  905       Lex.getKind() != lltok::kw_addrspacecast &&
  906       Lex.getKind() != lltok::kw_inttoptr) {
  971   while (Lex.getKind() == lltok::comma) {
  972     Lex.Lex();
  974     if (Lex.getKind() == lltok::kw_partition) {
  975       Lex.Lex();
  976       GA->setPartition(Lex.getStrVal());
 1111   while (Lex.getKind() == lltok::comma) {
 1112     Lex.Lex();
 1114     if (Lex.getKind() == lltok::kw_section) {
 1115       Lex.Lex();
 1116       GV->setSection(Lex.getStrVal());
 1119     } else if (Lex.getKind() == lltok::kw_partition) {
 1120       Lex.Lex();
 1121       GV->setPartition(Lex.getStrVal());
 1124     } else if (Lex.getKind() == lltok::kw_align) {
 1128     } else if (Lex.getKind() == lltok::MetadataVar) {
 1158   assert(Lex.getKind() == lltok::kw_attributes);
 1159   LocTy AttrGrpLoc = Lex.getLoc();
 1160   Lex.Lex();
 1162   if (Lex.getKind() != lltok::AttrGrpID)
 1165   unsigned VarID = Lex.getUIntVal();
 1168   Lex.Lex();
 1193     lltok::Kind Token = Lex.getKind();
 1195       BuiltinLoc = Lex.getLoc();
 1199       return Error(Lex.getLoc(), "unterminated attribute group");
 1210           Error(Lex.getLoc(),
 1213       unsigned AttrGrpNum = Lex.getUIntVal();
 1234         Lex.Lex();
 1249         Lex.Lex();
 1334         Error(Lex.getLoc(),
 1351         Error(Lex.getLoc(),
 1356     Lex.Lex();
 1485   if (Lex.getKind() != T)
 1487   Lex.Lex();
 1494   if (Lex.getKind() != lltok::StringConstant)
 1496   Result = Lex.getStrVal();
 1497   Lex.Lex();
 1504   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 1504   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 1506   uint64_t Val64 = Lex.getAPSIntVal().getLimitedValue(0xFFFFFFFFULL+1);
 1510   Lex.Lex();
 1517   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 1517   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 1519   Val = Lex.getAPSIntVal().getLimitedValue();
 1520   Lex.Lex();
 1529   switch (Lex.getKind()) {
 1543   Lex.Lex();
 1557   if (Lex.getKind() == lltok::lparen) {
 1558     Lex.Lex();
 1581   std::string Attr = Lex.getStrVal();
 1582   Lex.Lex();
 1597     lltok::Kind Token = Lex.getKind();
 1685       HaveError |= Error(Lex.getLoc(), "invalid use of function-only attribute");
 1689     Lex.Lex();
 1700     lltok::Kind Token = Lex.getKind();
 1746       HaveError |= Error(Lex.getLoc(), "invalid use of parameter-only attribute");
 1784       HaveError |= Error(Lex.getLoc(), "invalid use of function-only attribute");
 1789       HaveError |= Error(Lex.getLoc(), "invalid use of attribute on return type");
 1792     Lex.Lex();
 1844   Res = parseOptionalLinkageAux(Lex.getKind(), HasLinkage);
 1846     Lex.Lex();
 1852     return Error(Lex.getLoc(), "dso_location and DLL-StorageClass mismatch");
 1859   switch (Lex.getKind()) {
 1865     Lex.Lex();
 1869     Lex.Lex();
 1881   switch (Lex.getKind()) {
 1895   Lex.Lex();
 1904   switch (Lex.getKind()) {
 1915   Lex.Lex();
 1964   switch (Lex.getKind()) {
 2009       Lex.Lex();
 2014   Lex.Lex();
 2021   assert(Lex.getKind() == lltok::MetadataVar && "Expected metadata attachment");
 2023   std::string Name = Lex.getStrVal();
 2025   Lex.Lex();
 2034     if (Lex.getKind() != lltok::MetadataVar)
 2066   while (Lex.getKind() == lltok::MetadataVar)
 2079   LocTy AlignLoc = Lex.getLoc();
 2105   LocTy ParenLoc = Lex.getLoc();
 2108   LocTy DerefLoc = Lex.getLoc();
 2110   ParenLoc = Lex.getLoc();
 2129     if (Lex.getKind() == lltok::MetadataVar) {
 2134     if (Lex.getKind() != lltok::kw_align)
 2135       return Error(Lex.getLoc(), "expected metadata or 'align'");
 2155     if (Lex.getKind() == lltok::MetadataVar) {
 2160     Loc = Lex.getLoc();
 2161     if (Lex.getKind() != lltok::kw_addrspace)
 2162       return Error(Lex.getLoc(), "expected metadata or 'addrspace'");
 2173   Lex.Lex();
 2175   auto StartParen = Lex.getLoc();
 2183     auto HowManyAt = Lex.getLoc();
 2194   auto EndParen = Lex.getLoc();
 2220     auto StartParenAt = Lex.getLoc();
 2225     auto SSNAt = Lex.getLoc();
 2229     auto EndParenAt = Lex.getLoc();
 2244   switch (Lex.getKind()) {
 2257   Lex.Lex();
 2268   LocTy ParenLoc = Lex.getLoc();
 2271   LocTy AlignLoc = Lex.getLoc();
 2273   ParenLoc = Lex.getLoc();
 2294   if (Lex.getKind() != lltok::comma)
 2298     if (Lex.getKind() == lltok::MetadataVar) {
 2317   SMLoc TypeLoc = Lex.getLoc();
 2318   switch (Lex.getKind()) {
 2323     Result = Lex.getTyVal();
 2324     Lex.Lex();
 2333     Lex.Lex(); // eat the lsquare.
 2339     Lex.Lex();
 2340     if (Lex.getKind() == lltok::lbrace) {
 2349     std::pair<Type*, LocTy> &Entry = NamedTypes[Lex.getStrVal()];
 2354       Entry.first = StructType::create(Context, Lex.getStrVal());
 2355       Entry.second = Lex.getLoc();
 2358     Lex.Lex();
 2364     std::pair<Type*, LocTy> &Entry = NumberedTypes[Lex.getUIntVal()];
 2370       Entry.second = Lex.getLoc();
 2373     Lex.Lex();
 2380     switch (Lex.getKind()) {
 2396       Lex.Lex();
 2436   while (Lex.getKind() != lltok::rparen) {
 2443     if (Lex.getKind() == lltok::dotdotdot) {
 2449       Lex.Lex();  // Lex the '...', it is purely for readability.
 2477   Lex.Lex();  // Lex the ')'.
 2493     return Error(Lex.getLoc(), "expected ')'");
 2508   LocTy BeginLoc = Lex.getLoc();
 2512   while (Lex.getKind() != lltok::rsquare) {
 2526     while (Lex.getKind() != lltok::rparen) {
 2541     Lex.Lex(); // Lex the ')'.
 2547   Lex.Lex(); // Lex the ']'.
 2564   assert(Lex.getKind() == lltok::lparen);
 2565   Lex.Lex(); // eat the (.
 2567   if (Lex.getKind() == lltok::rparen) {
 2569   } else if (Lex.getKind() == lltok::dotdotdot) {
 2571     Lex.Lex();
 2573     LocTy TypeLoc = Lex.getLoc();
 2584     if (Lex.getKind() == lltok::LocalVar) {
 2585       Name = Lex.getStrVal();
 2586       Lex.Lex();
 2587     } else if (Lex.getKind() == lltok::LocalVarID) {
 2588       if (Lex.getUIntVal() != CurValID)
 2592       Lex.Lex();
 2610       TypeLoc = Lex.getLoc();
 2616       if (Lex.getKind() == lltok::LocalVar) {
 2617         Name = Lex.getStrVal();
 2618         Lex.Lex();
 2620         if (Lex.getKind() == lltok::LocalVarID) {
 2621           if (Lex.getUIntVal() != CurValID)
 2624           Lex.Lex();
 2645   assert(Lex.getKind() == lltok::lparen);
 2709   if (Lex.getKind() != lltok::lbrace) {
 2745   assert(Lex.getKind() == lltok::lbrace);
 2746   Lex.Lex(); // Consume the '{'
 2752   LocTy EltTyLoc = Lex.getLoc();
 2761     EltTyLoc = Lex.getLoc();
 2782   if (isVector && Lex.getKind() == lltok::kw_vscale) {
 2783     Lex.Lex(); // consume the 'vscale'
 2790   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned() ||
 2790   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned() ||
 2791       Lex.getAPSIntVal().getBitWidth() > 64)
 2794   LocTy SizeLoc = Lex.getLoc();
 2795   uint64_t Size = Lex.getAPSIntVal().getZExtValue();
 2796   Lex.Lex();
 2801   LocTy TypeLoc = Lex.getLoc();
 3070   ID.Loc = Lex.getLoc();
 3071   switch (Lex.getKind()) {
 3074     ID.UIntVal = Lex.getUIntVal();
 3078     ID.StrVal = Lex.getStrVal();
 3082     ID.UIntVal = Lex.getUIntVal();
 3086     ID.StrVal = Lex.getStrVal();
 3090     ID.APSIntVal = Lex.getAPSIntVal();
 3094     ID.APFloatVal = Lex.getAPFloatVal();
 3112     Lex.Lex();
 3128     Lex.Lex();
 3132     LocTy FirstEltLoc = Lex.getLoc();
 3169     Lex.Lex();
 3171     LocTy FirstEltLoc = Lex.getLoc();
 3203     Lex.Lex();
 3204     ID.ConstantVal = ConstantDataArray::getString(Context, Lex.getStrVal(),
 3214     Lex.Lex();
 3222     ID.StrVal2 = Lex.getStrVal();
 3231     Lex.Lex();
 3319     unsigned Opc = Lex.getUIntVal();
 3322     Lex.Lex();
 3339     Lex.Lex();
 3357     Lex.Lex();
 3384     unsigned PredVal, Opc = Lex.getUIntVal();
 3386     Lex.Lex();
 3417     unsigned Opc = Lex.getUIntVal();
 3419     Lex.Lex();
 3458     unsigned Opc = Lex.getUIntVal();
 3460     Lex.Lex();
 3522     unsigned Opc = Lex.getUIntVal();
 3524     Lex.Lex();
 3546     unsigned Opc = Lex.getUIntVal();
 3550     Lex.Lex();
 3558     LocTy ExplicitTypeLoc = Lex.getLoc();
 3654   Lex.Lex();
 3679   LocTy KwLoc = Lex.getLoc();
 3684     if (Lex.getKind() != lltok::ComdatVar)
 3686     C = getComdat(Lex.getStrVal(), Lex.getLoc());
 3686     C = getComdat(Lex.getStrVal(), Lex.getLoc());
 3687     Lex.Lex();
 3705   if (Lex.getKind() == lltok::rbrace ||
 3706       Lex.getKind() == lltok::rsquare ||
 3707       Lex.getKind() == lltok::greater ||
 3708       Lex.getKind() == lltok::rparen)
 3737   if (Lex.getKind() == lltok::MetadataVar)
 3746   if (Lex.getKind() == lltok::lbrace)
 3946   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 3946   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 3949   auto &U = Lex.getAPSIntVal();
 3955   Lex.Lex();
 3970   if (Lex.getKind() == lltok::APSInt)
 3973   if (Lex.getKind() != lltok::DwarfTag)
 3976   unsigned Tag = dwarf::getTag(Lex.getStrVal());
 3978     return TokError("invalid DWARF tag" + Twine(" '") + Lex.getStrVal() + "'");
 3982   Lex.Lex();
 3989   if (Lex.getKind() == lltok::APSInt)
 3992   if (Lex.getKind() != lltok::DwarfMacinfo)
 3995   unsigned Macinfo = dwarf::getMacinfo(Lex.getStrVal());
 3998         "invalid DWARF macinfo type" + Twine(" '") + Lex.getStrVal() + "'");
 4002   Lex.Lex();
 4009   if (Lex.getKind() == lltok::APSInt)
 4012   if (Lex.getKind() != lltok::DwarfVirtuality)
 4015   unsigned Virtuality = dwarf::getVirtuality(Lex.getStrVal());
 4018                     Lex.getStrVal() + "'");
 4021   Lex.Lex();
 4027   if (Lex.getKind() == lltok::APSInt)
 4030   if (Lex.getKind() != lltok::DwarfLang)
 4033   unsigned Lang = dwarf::getLanguage(Lex.getStrVal());
 4035     return TokError("invalid DWARF language" + Twine(" '") + Lex.getStrVal() +
 4039   Lex.Lex();
 4045   if (Lex.getKind() == lltok::APSInt)
 4048   if (Lex.getKind() != lltok::DwarfCC)
 4051   unsigned CC = dwarf::getCallingConvention(Lex.getStrVal());
 4053     return TokError("invalid DWARF calling convention" + Twine(" '") + Lex.getStrVal() +
 4057   Lex.Lex();
 4063   if (Lex.getKind() == lltok::APSInt)
 4066   if (Lex.getKind() != lltok::EmissionKind)
 4069   auto Kind = DICompileUnit::getEmissionKind(Lex.getStrVal());
 4071     return TokError("invalid emission kind" + Twine(" '") + Lex.getStrVal() +
 4075   Lex.Lex();
 4082   if (Lex.getKind() == lltok::APSInt)
 4085   if (Lex.getKind() != lltok::NameTableKind)
 4088   auto Kind = DICompileUnit::getNameTableKind(Lex.getStrVal());
 4090     return TokError("invalid nameTable kind" + Twine(" '") + Lex.getStrVal() +
 4094   Lex.Lex();
 4101   if (Lex.getKind() == lltok::APSInt)
 4104   if (Lex.getKind() != lltok::DwarfAttEncoding)
 4107   unsigned Encoding = dwarf::getAttributeEncoding(Lex.getStrVal());
 4110                     Lex.getStrVal() + "'");
 4113   Lex.Lex();
 4126     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4126     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4133     if (Lex.getKind() != lltok::DIFlag)
 4136     Val = DINode::getFlag(Lex.getStrVal());
 4139                       Lex.getStrVal() + "'");
 4140     Lex.Lex();
 4166     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4166     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4173     if (Lex.getKind() != lltok::DISPFlag)
 4176     Val = DISubprogram::getFlag(Lex.getStrVal());
 4179                       Lex.getStrVal() + "'");
 4180     Lex.Lex();
 4200   if (Lex.getKind() != lltok::APSInt)
 4203   auto &S = Lex.getAPSIntVal();
 4213   Lex.Lex();
 4219   switch (Lex.getKind()) {
 4229   Lex.Lex();
 4235   if (Lex.getKind() == lltok::kw_null) {
 4238     Lex.Lex();
 4255   if (Lex.getKind() == lltok::APSInt) {
 4277   if (Lex.getKind() != lltok::APSInt)
 4280   if (Lex.getAPSIntVal().isSigned()) {
 4297   LocTy ValueLoc = Lex.getLoc();
 4323       DIFile::getChecksumKind(Lex.getStrVal());
 4325   if (Lex.getKind() != lltok::ChecksumKind || !CSKind)
 4327         "invalid checksum kind" + Twine(" '") + Lex.getStrVal() + "'");
 4330   Lex.Lex();
 4339     if (Lex.getKind() != lltok::LabelStr)
 4351   assert(Lex.getKind() == lltok::MetadataVar && "Expected metadata type name");
 4352   Lex.Lex();
 4356   if (Lex.getKind() != lltok::rparen)
 4360   ClosingLoc = Lex.getLoc();
 4369   LocTy Loc = Lex.getLoc();
 4370   Lex.Lex();
 4375   assert(Lex.getKind() == lltok::MetadataVar && "Expected metadata type name");
 4616     return Lex.Error("'checksumkind' and 'checksum' must be provided together");
 4634     return Lex.Error("missing 'distinct', required for !DICompileUnit");
 4676   auto Loc = Lex.getLoc();
 4709     return Lex.Error(
 4940   assert(Lex.getKind() == lltok::MetadataVar && "Expected metadata type name");
 4941   Lex.Lex();
 4947   if (Lex.getKind() != lltok::rparen)
 4949       if (Lex.getKind() == lltok::DwarfOp) {
 4950         if (unsigned Op = dwarf::getOperationEncoding(Lex.getStrVal())) {
 4951           Lex.Lex();
 4955         return TokError(Twine("invalid DWARF op '") + Lex.getStrVal() + "'");
 4958       if (Lex.getKind() == lltok::DwarfAttEncoding) {
 4959         if (unsigned Op = dwarf::getAttributeEncoding(Lex.getStrVal())) {
 4960           Lex.Lex();
 4964         return TokError(Twine("invalid DWARF attribute encoding '") + Lex.getStrVal() + "'");
 4967       if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 4967       if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 4970       auto &U = Lex.getAPSIntVal();
 4974       Lex.Lex();
 5092   if (Lex.getKind() == lltok::MetadataVar) {
 5102   if (Lex.getKind() != lltok::exclaim)
 5106   assert(Lex.getKind() == lltok::exclaim && "Expected '!' here");
 5107   Lex.Lex();
 5111   if (Lex.getKind() == lltok::StringConstant) {
 5250   auto Loc = Lex.getLoc();
 5291   Loc = Lex.getLoc();
 5306   LocTy LinkageLoc = Lex.getLoc();
 5315   LocTy RetTypeLoc = Lex.getLoc();
 5352   LocTy NameLoc = Lex.getLoc();
 5355   if (Lex.getKind() == lltok::GlobalVar) {
 5356     FunctionName = Lex.getStrVal();
 5357   } else if (Lex.getKind() == lltok::GlobalID) {     // @42 is ok.
 5358     unsigned NameID = Lex.getUIntVal();
 5367   Lex.Lex();
 5369   if (Lex.getKind() != lltok::lparen)
 5578   if (Lex.getKind() != lltok::lbrace)
 5580   Lex.Lex();  // eat the {.
 5594   if (Lex.getKind() == lltok::rbrace || Lex.getKind() == lltok::kw_uselistorder)
 5594   if (Lex.getKind() == lltok::rbrace || Lex.getKind() == lltok::kw_uselistorder)
 5597   while (Lex.getKind() != lltok::rbrace &&
 5598          Lex.getKind() != lltok::kw_uselistorder)
 5601   while (Lex.getKind() != lltok::rbrace)
 5606   Lex.Lex();
 5618   LocTy NameLoc = Lex.getLoc();
 5619   if (Lex.getKind() == lltok::LabelStr) {
 5620     Name = Lex.getStrVal();
 5621     Lex.Lex();
 5622   } else if (Lex.getKind() == lltok::LabelID) {
 5623     NameID = Lex.getUIntVal();
 5624     Lex.Lex();
 5638     LocTy NameLoc = Lex.getLoc();
 5642     if (Lex.getKind() == lltok::LocalVarID) {
 5643       NameID = Lex.getUIntVal();
 5644       Lex.Lex();
 5647     } else if (Lex.getKind() == lltok::LocalVar) {
 5648       NameStr = Lex.getStrVal();
 5649       Lex.Lex();
 5691   lltok::Kind Token = Lex.getKind();
 5694   LocTy Loc = Lex.getLoc();
 5695   unsigned KeywordVal = Lex.getUIntVal();
 5696   Lex.Lex();  // Eat the keyword.
 5848     switch (Lex.getKind()) {
 5868     switch (Lex.getKind()) {
 5882   Lex.Lex();
 5895   SMLoc TypeLoc = Lex.getLoc();
 5969   while (Lex.getKind() != lltok::rsquare) {
 5986   Lex.Lex();  // Eat the ']'.
 6012   if (Lex.getKind() != lltok::rsquare) {
 6039   LocTy CallLoc = Lex.getLoc();
 6149   while (Lex.getKind() != lltok::rsquare) {
 6172   Lex.Lex();  // Lex the ']'.
 6191   if (Lex.getKind() == lltok::kw_to) {
 6192     Lex.Lex();
 6233   if (Lex.getKind() != lltok::kw_none && Lex.getKind() != lltok::LocalVar &&
 6233   if (Lex.getKind() != lltok::kw_none && Lex.getKind() != lltok::LocalVar &&
 6234       Lex.getKind() != lltok::LocalVarID)
 6283   if (Lex.getKind() != lltok::LocalVar && Lex.getKind() != lltok::LocalVarID)
 6283   if (Lex.getKind() != lltok::LocalVar && Lex.getKind() != lltok::LocalVarID)
 6305   if (Lex.getKind() != lltok::kw_none && Lex.getKind() != lltok::LocalVar &&
 6305   if (Lex.getKind() != lltok::kw_none && Lex.getKind() != lltok::LocalVar &&
 6306       Lex.getKind() != lltok::LocalVarID)
 6350   LocTy CallLoc = Lex.getLoc();
 6376   if (Lex.getKind() != lltok::rsquare) {
 6678     if (Lex.getKind() == lltok::MetadataVar) {
 6716   while (Lex.getKind() == lltok::kw_catch || Lex.getKind() == lltok::kw_filter){
 6716   while (Lex.getKind() == lltok::kw_catch || Lex.getKind() == lltok::kw_filter){
 6771   LocTy CallLoc = Lex.getLoc();
 6888     if (Lex.getKind() == lltok::kw_align) {
 6893     } else if (Lex.getKind() == lltok::kw_addrspace) {
 6894       ASLoc = Lex.getLoc();
 6897     } else if (Lex.getKind() == lltok::MetadataVar) {
 6903         if (Lex.getKind() == lltok::kw_align) {
 6908         } else if (Lex.getKind() == lltok::kw_addrspace) {
 6909           ASLoc = Lex.getLoc();
 6912         } else if (Lex.getKind() == lltok::MetadataVar) {
 6941   if (Lex.getKind() == lltok::kw_atomic) {
 6943     Lex.Lex();
 6947   if (Lex.getKind() == lltok::kw_volatile) {
 6949     Lex.Lex();
 6953   LocTy ExplicitTypeLoc = Lex.getLoc();
 6990   if (Lex.getKind() == lltok::kw_atomic) {
 6992     Lex.Lex();
 6996   if (Lex.getKind() == lltok::kw_volatile) {
 6998     Lex.Lex();
 7092   switch (Lex.getKind()) {
 7114   Lex.Lex();  // Eat the operation.
 7189   LocTy ExplicitTypeLoc = Lex.getLoc();
 7212     if (Lex.getKind() == lltok::MetadataVar) {
 7349   SMLoc Loc = Lex.getLoc();
 7352   if (Lex.getKind() == lltok::rbrace)
 7353     return Lex.Error("expected non-empty list of uselistorder indexes");
 7391   SMLoc Loc = Lex.getLoc();
 7408   assert(Lex.getKind() == lltok::kw_uselistorder_bb);
 7409   SMLoc Loc = Lex.getLoc();
 7410   Lex.Lex();
 7455   assert(Lex.getKind() == lltok::kw_module);
 7456   Lex.Lex();
 7491   assert(Lex.getKind() == lltok::kw_typeid);
 7492   Lex.Lex();
 7551   assert(Lex.getKind() == lltok::kw_typeidCompatibleVTable);
 7552   Lex.Lex();
 7580     LocTy Loc = Lex.getLoc();
 7643   switch (Lex.getKind()) {
 7660     return Error(Lex.getLoc(), "unexpected TypeTestResolution kind");
 7662   Lex.Lex();
 7672     switch (Lex.getKind()) {
 7674       Lex.Lex();
 7680       Lex.Lex();
 7686       Lex.Lex();
 7694       Lex.Lex();
 7700       return Error(Lex.getLoc(), "expected optional TypeTestResolution field");
 7754   switch (Lex.getKind()) {
 7765     return Error(Lex.getLoc(), "unexpected WholeProgramDevirtResolution kind");
 7767   Lex.Lex();
 7771     switch (Lex.getKind()) {
 7773       Lex.Lex();
 7783       return Error(Lex.getLoc(),
 7820     switch (Lex.getKind()) {
 7834       return Error(Lex.getLoc(),
 7837     Lex.Lex();
 7841       switch (Lex.getKind()) {
 7843         Lex.Lex();
 7849         Lex.Lex();
 7855         Lex.Lex();
 7861         return Error(Lex.getLoc(),
 7981   assert(Lex.getKind() == lltok::kw_gv);
 7982   Lex.Lex();
 7990   switch (Lex.getKind()) {
 7992     Lex.Lex();
 7999     Lex.Lex();
 8004     return Error(Lex.getLoc(), "expected name or guid tag");
 8030     switch (Lex.getKind()) {
 8044       return Error(Lex.getLoc(), "expected summary type");
 8062   assert(Lex.getKind() == lltok::kw_function);
 8063   Lex.Lex();
 8086     switch (Lex.getKind()) {
 8104       return Error(Lex.getLoc(), "expected optional function summary field");
 8132   assert(Lex.getKind() == lltok::kw_variable);
 8133   Lex.Lex();
 8153     switch (Lex.getKind()) {
 8163       return Error(Lex.getLoc(), "expected optional variable summary field");
 8187   assert(Lex.getKind() == lltok::kw_alias);
 8188   LocTy Loc = Lex.getLoc();
 8189   Lex.Lex();
 8236   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 8236   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 8238   Val = (unsigned)Lex.getAPSIntVal().getBoolValue();
 8239   Lex.Lex();
 8249   assert(Lex.getKind() == lltok::kw_funcFlags);
 8250   Lex.Lex();
 8258     switch (Lex.getKind()) {
 8260       Lex.Lex();
 8266       Lex.Lex();
 8272       Lex.Lex();
 8278       Lex.Lex();
 8284       Lex.Lex();
 8290       return Error(Lex.getLoc(), "expected function flag type");
 8305   assert(Lex.getKind() == lltok::kw_calls);
 8306   Lex.Lex();
 8321     LocTy Loc = Lex.getLoc();
 8372   switch (Lex.getKind()) {
 8389     return Error(Lex.getLoc(), "invalid call edge hotness");
 8391   Lex.Lex();
 8399   assert(Lex.getKind() == lltok::kw_vTableFuncs);
 8400   Lex.Lex();
 8415     LocTy Loc = Lex.getLoc();
 8459   assert(Lex.getKind() == lltok::kw_refs);
 8460   Lex.Lex();
 8475     VC.Loc = Lex.getLoc();
 8522   assert(Lex.getKind() == lltok::kw_typeIdInfo);
 8523   Lex.Lex();
 8530     switch (Lex.getKind()) {
 8556       return Error(Lex.getLoc(), "invalid typeIdInfo list type");
 8570   assert(Lex.getKind() == lltok::kw_typeTests);
 8571   Lex.Lex();
 8580     if (Lex.getKind() == lltok::SummaryID) {
 8581       unsigned ID = Lex.getUIntVal();
 8582       LocTy Loc = Lex.getLoc();
 8587       Lex.Lex();
 8616   assert(Lex.getKind() == Kind);
 8617   Lex.Lex();
 8655   assert(Lex.getKind() == Kind);
 8656   Lex.Lex();
 8712   assert(Lex.getKind() == lltok::kw_vFuncId);
 8713   Lex.Lex();
 8719   if (Lex.getKind() == lltok::SummaryID) {
 8721     unsigned ID = Lex.getUIntVal();
 8722     LocTy Loc = Lex.getLoc();
 8727     Lex.Lex();
 8748   assert(Lex.getKind() == lltok::kw_flags);
 8749   Lex.Lex();
 8757     switch (Lex.getKind()) {
 8759       Lex.Lex();
 8763       GVFlags.Linkage = parseOptionalLinkageAux(Lex.getKind(), HasLinkage);
 8765       Lex.Lex();
 8768       Lex.Lex();
 8774       Lex.Lex();
 8780       Lex.Lex();
 8786       Lex.Lex();
 8792       return Error(Lex.getLoc(), "expected gv flag type");
 8806   assert(Lex.getKind() == lltok::kw_varFlags);
 8807   Lex.Lex();
 8814     Lex.Lex();
 8822     switch (Lex.getKind()) {
 8834       return Error(Lex.getLoc(), "expected gvar flag type");
 8849   unsigned ModuleID = Lex.getUIntVal();
 8866   GVId = Lex.getUIntVal();
lib/AsmParser/LLParser.h
  191       return Lex.Error(L, Msg);
  194       return Error(Lex.getLoc(), Msg);
  215       if (Lex.getKind() != T) return false;
  216       Lex.Lex();
  223         switch (Lex.getKind()) {
  224         case lltok::kw_fast: FMF.setFast();            Lex.Lex(); continue;
  225         case lltok::kw_nnan: FMF.setNoNaNs();          Lex.Lex(); continue;
  226         case lltok::kw_ninf: FMF.setNoInfs();          Lex.Lex(); continue;
  227         case lltok::kw_nsz:  FMF.setNoSignedZeros();   Lex.Lex(); continue;
  228         case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue;
  231           Lex.Lex();
  233         case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue;
  234         case lltok::kw_afn:     FMF.setApproxFunc();   Lex.Lex(); continue;
  242       if (Lex.getKind() != T) {
  246           *Loc = Lex.getLoc();
  247         Lex.Lex();
  255       Loc = Lex.getLoc();
  260       Loc = Lex.getLoc();
  396       Loc = Lex.getLoc();
  400       Loc = Lex.getLoc();
  470       Loc = Lex.getLoc();
  479       Loc = Lex.getLoc();