Lines Matching refs:ParseToken

284   if (ParseToken(lltok::kw_asm, "expected 'module asm'") ||  in ParseModuleAsm()
301 if (ParseToken(lltok::equal, "expected '=' after target triple") || in ParseTargetDefinition()
308 if (ParseToken(lltok::equal, "expected '=' after target datalayout") || in ParseTargetDefinition()
323 if (ParseToken(lltok::equal, "expected '=' after deplibs") || in ParseDepLibs()
324 ParseToken(lltok::lsquare, "expected '=' after deplibs")) in ParseDepLibs()
335 return ParseToken(lltok::rsquare, "expected ']' at end of list"); in ParseDepLibs()
345 if (ParseToken(lltok::equal, "expected '=' after name") || in ParseUnnamedType()
346 ParseToken(lltok::kw_type, "expected 'type' after '='")) in ParseUnnamedType()
372 if (ParseToken(lltok::equal, "expected '=' after name") || in ParseNamedType()
373 ParseToken(lltok::kw_type, "expected 'type' after name")) in ParseNamedType()
449 if (ParseToken(lltok::equal, "expected '=' after name")) in ParseUnnamedGlobal()
485 if (ParseToken(lltok::equal, "expected '=' in global variable") || in ParseNamedGlobal()
507 if (ParseToken(lltok::equal, "expected '=' here")) in parseComdat()
510 if (ParseToken(lltok::kw_comdat, "expected comdat keyword")) in parseComdat()
591 if (ParseToken(lltok::equal, "expected '=' here") || in ParseNamedMetadata()
592 ParseToken(lltok::exclaim, "Expected '!' here") || in ParseNamedMetadata()
593 ParseToken(lltok::lbrace, "Expected '{' here")) in ParseNamedMetadata()
599 if (ParseToken(lltok::exclaim, "Expected '!' here")) in ParseNamedMetadata()
607 return ParseToken(lltok::rbrace, "expected end of metadata node"); in ParseNamedMetadata()
619 ParseToken(lltok::equal, "expected '=' here")) in ParseStandaloneMetadata()
630 } else if (ParseToken(lltok::exclaim, "Expected '!' here") || in ParseStandaloneMetadata()
684 ParseToken(lltok::comma, "expected comma after alias's type")) in ParseAlias()
869 if (ParseToken(lltok::StringConstant, "expected global section string")) in ParseGlobal()
904 if (ParseToken(lltok::equal, "expected '=' here") || in ParseUnnamedAttrGrp()
905 ParseToken(lltok::lbrace, "expected '{' here") || in ParseUnnamedAttrGrp()
908 ParseToken(lltok::rbrace, "expected end of attribute group")) in ParseUnnamedAttrGrp()
969 if (ParseToken(lltok::equal, "expected '=' here") || in ParseFnAttributeValuePairs()
983 if (ParseToken(lltok::equal, "expected '=' here") || in ParseFnAttributeValuePairs()
1171 bool LLParser::ParseToken(lltok::Kind T, const char *ErrMsg) { in ParseToken() function in LLParser
1247 ParseToken(lltok::rparen, "expected ')' after thread local model"); in ParseOptionalThreadLocal()
1259 return ParseToken(lltok::lparen, "expected '(' in address space") || in ParseOptionalAddrSpace()
1261 ParseToken(lltok::rparen, "expected ')' in address space"); in ParseOptionalAddrSpace()
1826 ParseToken(lltok::greater, "expected '>' at end of packed struct")) in ParseType()
1893 ParseToken(lltok::star, "expected '*' in address space")) in ParseType()
1917 if (ParseToken(lltok::lparen, "expected '(' in call")) in ParseParameterList()
1924 ParseToken(lltok::comma, "expected ',' in argument list")) in ParseParameterList()
1935 return ParseToken(lltok::rparen, "expected ')' at end of argument list"); in ParseParameterList()
1985 ParseToken(lltok::comma, "expected ',' in input list")) in ParseOptionalOperandBundles()
1992 if (ParseToken(lltok::lparen, "expected '(' in operand bundle")) in ParseOptionalOperandBundles()
1999 ParseToken(lltok::comma, "expected ',' in input list")) in ParseOptionalOperandBundles()
2097 return ParseToken(lltok::rparen, "expected ')' at end of argument list"); in ParseArgumentList()
2188 (isPacked && ParseToken(lltok::greater, "expected '>' in packed struct"))) in ParseStructDefinition()
2229 return ParseToken(lltok::rbrace, "expected '}' at end of struct"); in ParseStructBody()
2246 if (ParseToken(lltok::kw_x, "expected 'x' after element count")) in ParseArrayVectorType()
2253 if (ParseToken(isVector ? lltok::greater : lltok::rsquare, in ParseArrayVectorType()
2563 ParseToken(lltok::rbrace, "expected end of struct constant")) in ParseValID()
2583 ParseToken(lltok::rbrace, "expected end of packed struct")) || in ParseValID()
2584 ParseToken(lltok::greater, "expected end of constant")) in ParseValID()
2621 ParseToken(lltok::rsquare, "expected end of array constant")) in ParseValID()
2654 if (ParseToken(lltok::StringConstant, "expected string")) return true; in ParseValID()
2667 ParseToken(lltok::comma, "expected comma in inline asm expression") || in ParseValID()
2668 ParseToken(lltok::StringConstant, "expected constraint string")) in ParseValID()
2683 if (ParseToken(lltok::lparen, "expected '(' in block address expression") || in ParseValID()
2685 ParseToken(lltok::comma, "expected comma in block address expression")|| in ParseValID()
2687 ParseToken(lltok::rparen, "expected ')' in block address expression")) in ParseValID()
2771 if (ParseToken(lltok::lparen, "expected '(' after constantexpr cast") || in ParseValID()
2773 ParseToken(lltok::kw_to, "expected 'to' in constantexpr cast") || in ParseValID()
2775 ParseToken(lltok::rparen, "expected ')' at end of constantexpr cast")) in ParseValID()
2790 if (ParseToken(lltok::lparen, "expected '(' in extractvalue constantexpr")|| in ParseValID()
2793 ParseToken(lltok::rparen, "expected ')' in extractvalue constantexpr")) in ParseValID()
2808 if (ParseToken(lltok::lparen, "expected '(' in insertvalue constantexpr")|| in ParseValID()
2810 ParseToken(lltok::comma, "expected comma in insertvalue constantexpr")|| in ParseValID()
2813 ParseToken(lltok::rparen, "expected ')' in insertvalue constantexpr")) in ParseValID()
2836 ParseToken(lltok::lparen, "expected '(' in compare constantexpr") || in ParseValID()
2838 ParseToken(lltok::comma, "expected comma in compare constantexpr") || in ParseValID()
2840 ParseToken(lltok::rparen, "expected ')' in compare constantexpr")) in ParseValID()
2900 if (ParseToken(lltok::lparen, "expected '(' in binary constantexpr") || in ParseValID()
2902 ParseToken(lltok::comma, "expected comma in binary constantexpr") || in ParseValID()
2904 ParseToken(lltok::rparen, "expected ')' in binary constantexpr")) in ParseValID()
2956 if (ParseToken(lltok::lparen, "expected '(' in logical constantexpr") || in ParseValID()
2958 ParseToken(lltok::comma, "expected comma in logical constantexpr") || in ParseValID()
2960 ParseToken(lltok::rparen, "expected ')' in logical constantexpr")) in ParseValID()
2986 if (ParseToken(lltok::lparen, "expected '(' in constantexpr")) in ParseValID()
2992 ParseToken(lltok::comma, "expected comma after getelementptr's type")) in ParseValID()
2997 ParseToken(lltok::rparen, "expected ')' in constantexpr")) in ParseValID()
3106 if (ParseToken(lltok::rparen, "expected ')' after comdat var")) in parseOptionalComdat()
3157 return ParseToken(lltok::exclaim, "expected '!' here") || in ParseMDNode()
3521 if (ParseToken(lltok::lparen, "expected '(' here")) in ParseMDFieldsImpl()
3528 return ParseToken(lltok::rparen, "expected ')' here"); in ParseMDFieldsImpl()
3994 if (ParseToken(lltok::lparen, "expected '(' here")) in ParseDIExpression()
4019 if (ParseToken(lltok::rparen, "expected ')' here")) in ParseDIExpression()
4665 if (ParseToken(lltok::equal, "expected '=' after instruction id")) in ParseBasicBlock()
4670 if (ParseToken(lltok::equal, "expected '=' after instruction name")) in ParseBasicBlock()
4923 if (ParseToken(lltok::comma, "expected ',' after branch condition") || in ParseBr()
4925 ParseToken(lltok::comma, "expected ',' after true destination") || in ParseBr()
4943 ParseToken(lltok::comma, "expected ',' after switch condition") || in ParseSwitch()
4945 ParseToken(lltok::lsquare, "expected '[' with switch table")) in ParseSwitch()
4959 ParseToken(lltok::comma, "expected ',' after case value") || in ParseSwitch()
4987 ParseToken(lltok::comma, "expected ',' after indirectbr address") || in ParseIndirectBr()
4988 ParseToken(lltok::lsquare, "expected '[' with indirectbr")) in ParseIndirectBr()
5010 if (ParseToken(lltok::rsquare, "expected ']' at end of block list")) in ParseIndirectBr()
5043 ParseToken(lltok::kw_to, "expected 'to' in invoke") || in ParseInvoke()
5045 ParseToken(lltok::kw_unwind, "expected 'unwind' in invoke") || in ParseInvoke()
5141 if (ParseToken(lltok::lsquare, "expected '[' in catchpad/cleanuppad")) in ParseExceptionArgs()
5147 ParseToken(lltok::comma, "expected ',' in argument list")) in ParseExceptionArgs()
5176 if (ParseToken(lltok::kw_from, "expected 'from' after cleanupret")) in ParseCleanupRet()
5182 if (ParseToken(lltok::kw_unwind, "expected 'unwind' in cleanupret")) in ParseCleanupRet()
5188 if (ParseToken(lltok::kw_caller, "expected 'caller' in cleanupret")) in ParseCleanupRet()
5205 if (ParseToken(lltok::kw_from, "expected 'from' after catchret")) in ParseCatchRet()
5212 if (ParseToken(lltok::kw_to, "expected 'to' in catchret") || in ParseCatchRet()
5226 if (ParseToken(lltok::kw_within, "expected 'within' after catchswitch")) in ParseCatchSwitch()
5236 if (ParseToken(lltok::lsquare, "expected '[' with catchswitch labels")) in ParseCatchSwitch()
5247 if (ParseToken(lltok::rsquare, "expected ']' after catchswitch labels")) in ParseCatchSwitch()
5250 if (ParseToken(lltok::kw_unwind, in ParseCatchSwitch()
5256 if (ParseToken(lltok::kw_caller, "expected 'caller' in catchswitch")) in ParseCatchSwitch()
5276 if (ParseToken(lltok::kw_within, "expected 'within' after catchpad")) in ParseCatchPad()
5298 if (ParseToken(lltok::kw_within, "expected 'within' after cleanuppad")) in ParseCleanupPad()
5329 ParseToken(lltok::comma, "expected ',' in arithmetic operation") || in ParseArithmetic()
5357 ParseToken(lltok::comma, "expected ',' in logical operation") || in ParseLogical()
5380 ParseToken(lltok::comma, "expected ',' after compare value") || in ParseCompare()
5411 ParseToken(lltok::kw_to, "expected 'to' after cast value") || in ParseCast()
5431 ParseToken(lltok::comma, "expected ',' after select condition") || in ParseSelect()
5433 ParseToken(lltok::comma, "expected ',' after select value") || in ParseSelect()
5451 ParseToken(lltok::comma, "expected ',' after vaarg operand") || in ParseVA_Arg()
5468 ParseToken(lltok::comma, "expected ',' after extract value") || in ParseExtractElement()
5485 ParseToken(lltok::comma, "expected ',' after insertelement value") || in ParseInsertElement()
5487 ParseToken(lltok::comma, "expected ',' after insertelement value") || in ParseInsertElement()
5504 ParseToken(lltok::comma, "expected ',' after shuffle mask") || in ParseShuffleVector()
5506 ParseToken(lltok::comma, "expected ',' after shuffle value") || in ParseShuffleVector()
5524 ParseToken(lltok::lsquare, "expected '[' in phi value list") || in ParsePHI()
5526 ParseToken(lltok::comma, "expected ',' after insertelement value") || in ParsePHI()
5528 ParseToken(lltok::rsquare, "expected ']' in phi value list")) in ParsePHI()
5544 if (ParseToken(lltok::lsquare, "expected '[' in phi value list") || in ParsePHI()
5546 ParseToken(lltok::comma, "expected ',' after insertelement value") || in ParsePHI()
5548 ParseToken(lltok::rsquare, "expected ']' in phi value list")) in ParsePHI()
5634 ParseToken(lltok::kw_call, in ParseCall()
5800 ParseToken(lltok::comma, "expected comma after load's type") || in ParseLoad()
5846 ParseToken(lltok::comma, "expected ',' after store operand") || in ParseStore()
5886 ParseToken(lltok::comma, "expected ',' after cmpxchg address") || in ParseCmpXchg()
5888 ParseToken(lltok::comma, "expected ',' after cmpxchg cmp operand") || in ParseCmpXchg()
5952 ParseToken(lltok::comma, "expected ',' after atomicrmw address") || in ParseAtomicRMW()
6006 ParseToken(lltok::comma, "expected comma after getelementptr's type") || in ParseGetElementPtr()
6083 ParseToken(lltok::comma, "expected comma after insertvalue operand") || in ParseInsertValue()
6111 if (ParseToken(lltok::lbrace, "expected '{' here")) in ParseMDNodeVector()
6131 return ParseToken(lltok::rbrace, "expected end of metadata node"); in ParseMDNodeVector()
6165 if (ParseToken(lltok::lbrace, "expected '{' here")) in ParseUseListOrderIndexes()
6190 if (ParseToken(lltok::rbrace, "expected '}' here")) in ParseUseListOrderIndexes()
6207 if (ParseToken(lltok::kw_uselistorder, "expected uselistorder directive")) in ParseUseListOrder()
6213 ParseToken(lltok::comma, "expected comma in uselistorder directive") || in ParseUseListOrder()
6230 ParseToken(lltok::comma, "expected comma in uselistorder_bb directive") || in ParseUseListOrderBB()
6232 ParseToken(lltok::comma, "expected comma in uselistorder_bb directive") || in ParseUseListOrderBB()