Lines Matching refs:getCode

310   if (Lex.getCode() != tgtok::Id)  in ParseObjectName()
325 if (Lex.getCode() != tgtok::Id) { in ParseClassID()
344 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID()
358 if (Lex.getCode() != tgtok::Id) { in ParseDefmID()
392 if (Lex.getCode() != tgtok::less) in ParseSubClassReference()
396 if (Lex.getCode() == tgtok::greater) { in ParseSubClassReference()
408 if (Lex.getCode() != tgtok::greater) { in ParseSubClassReference()
434 if (Lex.getCode() != tgtok::less) in ParseSubMultiClassReference()
438 if (Lex.getCode() == tgtok::greater) { in ParseSubMultiClassReference()
450 if (Lex.getCode() != tgtok::greater) { in ParseSubMultiClassReference()
465 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece()
515 while (Lex.getCode() == tgtok::comma) { in ParseRangeList()
529 if (Lex.getCode() != tgtok::less) in ParseOptionalRangeList()
539 if (Lex.getCode() != tgtok::greater) { in ParseOptionalRangeList()
551 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList()
561 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList()
582 switch (Lex.getCode()) { in ParseType()
618 if (Lex.getCode() != tgtok::greater) { in ParseType()
637 assert(Lex.getCode() == tgtok::Id && "Expected ID in ParseIDValue"); in ParseIDValue()
684 switch (Lex.getCode()) { in ParseOperation()
696 switch (Lex.getCode()) { in ParseOperation()
724 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
791 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
805 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
825 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
836 while (Lex.getCode() == tgtok::comma) { in ParseOperation()
843 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
874 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
888 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
897 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
906 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
915 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1004 if (Lex.getCode() != tgtok::less) { in ParseOperatorType()
1017 if (Lex.getCode() != tgtok::greater) { in ParseOperatorType()
1046 switch (Lex.getCode()) { in ParseSimpleValue()
1054 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
1094 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1123 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1127 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1165 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1170 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1177 if (Lex.getCode() == tgtok::less) { in ParseSimpleValue()
1187 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1247 if (Lex.getCode() != tgtok::Id && Lex.getCode() != tgtok::XCast) { in ParseSimpleValue()
1257 if (Lex.getCode() == tgtok::colon) { in ParseSimpleValue()
1267 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1272 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1314 switch (Lex.getCode()) { in ParseValue()
1331 if (Lex.getCode() != tgtok::r_brace) { in ParseValue()
1351 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
1389 if (Lex.getCode() == tgtok::colon) { in ParseDagArgList()
1400 if (Lex.getCode() != tgtok::comma) break; in ParseDagArgList()
1433 while (Lex.getCode() == tgtok::comma) { in ParseValueList()
1468 bool HasField = Lex.getCode() == tgtok::Field; in ParseDeclaration()
1474 if (Lex.getCode() != tgtok::Id) { in ParseDeclaration()
1498 if (Lex.getCode() == tgtok::equal) { in ParseDeclaration()
1518 assert(Lex.getCode() == tgtok::less && "Not a template arg list!"); in ParseTemplateArgList()
1530 while (Lex.getCode() == tgtok::comma) { in ParseTemplateArgList()
1540 if (Lex.getCode() != tgtok::greater) in ParseTemplateArgList()
1552 if (Lex.getCode() != tgtok::Let) { in ParseBodyItem()
1556 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1575 if (Lex.getCode() != tgtok::equal) in ParseBodyItem()
1588 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1604 if (Lex.getCode() == tgtok::semi) { in ParseBody()
1609 if (Lex.getCode() != tgtok::l_brace) in ParseBody()
1614 while (Lex.getCode() != tgtok::r_brace) in ParseBody()
1634 if (Lex.getCode() == tgtok::colon) { in ParseObjectBody()
1647 if (Lex.getCode() != tgtok::comma) break; in ParseObjectBody()
1670 assert(Lex.getCode() == tgtok::Def && "Unknown tok"); in ParseDef()
1728 assert(Lex.getCode() == tgtok::Class && "Unexpected token!"); in ParseClass()
1731 if (Lex.getCode() != tgtok::Id) in ParseClass()
1749 if (Lex.getCode() == tgtok::less) in ParseClass()
1767 if (Lex.getCode() != tgtok::Id) { in ParseLetList()
1781 if (Lex.getCode() != tgtok::equal) { in ParseLetList()
1793 if (Lex.getCode() != tgtok::comma) in ParseLetList()
1806 assert(Lex.getCode() == tgtok::Let && "Unexpected token"); in ParseTopLevelLet()
1814 if (Lex.getCode() != tgtok::In) in ParseTopLevelLet()
1819 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet()
1832 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet()
1850 assert(Lex.getCode() == tgtok::MultiClass && "Unexpected token"); in ParseMultiClass()
1853 if (Lex.getCode() != tgtok::Id) in ParseMultiClass()
1865 if (Lex.getCode() == tgtok::less) in ParseMultiClass()
1872 if (Lex.getCode() == tgtok::colon) { in ParseMultiClass()
1888 if (Lex.getCode() != tgtok::comma) break; in ParseMultiClass()
1894 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
1897 else if (Lex.getCode() != tgtok::semi) in ParseMultiClass()
1905 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
1906 switch (Lex.getCode()) { in ParseMultiClass()
2038 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!"); in ParseDefm()
2047 if (Lex.getCode() != tgtok::colon) in ParseDefm()
2095 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2135 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2148 if (Lex.getCode() != tgtok::semi) in ParseDefm()
2163 switch (Lex.getCode()) { in ParseObject()
2177 while (isObjectStart(Lex.getCode())) { in ParseObjectList()
2189 if (Lex.getCode() == tgtok::Eof) in ParseFile()