Lines Matching refs:TokError
535 TokError("expected name for ClassID"); in ParseClassID()
541 TokError("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID()
554 TokError("expected name for MultiClassID"); in ParseMultiClassID()
560 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID()
593 TokError("subclass reference requires a non-empty list of template values"); in ParseSubClassReference()
605 TokError("expected '>' in template value list"); in ParseSubClassReference()
638 TokError("subclass reference requires a non-empty list of template values"); in ParseSubMultiClassReference()
650 TokError("expected '>' in template value list"); in ParseSubMultiClassReference()
666 TokError("expected integer or bitrange"); in ParseRangePiece()
673 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
681 TokError("expected integer value as end of range"); in ParseRangePiece()
691 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
740 TokError("expected '>' at end of range list"); in ParseOptionalRangeList()
762 TokError("expected '}' at end of bit list"); in ParseOptionalBitList()
782 default: TokError("Unknown token when expecting a type"); return nullptr; in ParseType()
790 TokError("unknown class name"); in ParseType()
794 TokError("expected '<' after bits type"); in ParseType()
798 TokError("expected integer in bits<n> type"); in ParseType()
803 TokError("expected '>' at end of bits<n> type"); in ParseType()
811 TokError("expected '<' after list type"); in ParseType()
819 TokError("expected '>' at end of list<ty> type"); in ParseType()
885 TokError("unknown operation"); in ParseOperation()
904 TokError("did not get type for unary operator"); in ParseOperation()
929 TokError("expected '(' after unary operator"); in ParseOperation()
944 TokError("expected list or string type argument in unary operator"); in ParseOperation()
951 TokError("expected list or string type argument in unary operator"); in ParseOperation()
959 TokError("expected list type argument in unary operator"); in ParseOperation()
966 TokError("empty list argument in unary operator"); in ParseOperation()
973 TokError("untyped list element in unary operator"); in ParseOperation()
982 TokError("expected list type argument in unary operator"); in ParseOperation()
991 TokError("expected ')' in unary operator"); in ParseOperation()
1007 TokError("expected '(' after type of !isa"); in ParseOperation()
1017 TokError("expected ')' in !isa"); in ParseOperation()
1112 TokError("expected '(' after binary operator"); in ParseOperation()
1168 TokError("expected ')' in operator"); in ParseOperation()
1200 TokError("expected '(' after !foreach"); in ParseOperation()
1205 TokError("first argument of !foreach must be an identifier"); in ParseOperation()
1212 TokError((Twine("iteration variable '") + LHS->getAsString() + in ParseOperation()
1219 TokError("expected ',' in ternary operator"); in ParseOperation()
1229 TokError("expected ',' in ternary operator"); in ParseOperation()
1236 TokError("could not get type of !foreach input"); in ParseOperation()
1266 TokError("!foreach must have list or dag input"); in ParseOperation()
1286 TokError("expected ')' in binary operator"); in ParseOperation()
1297 TokError("could not get type of !foreach result"); in ParseOperation()
1330 TokError("expected '(' after ternary operator"); in ParseOperation()
1339 TokError("expected ',' in ternary operator"); in ParseOperation()
1350 TokError("expected ',' in ternary operator"); in ParseOperation()
1361 TokError("expected ')' in binary operator"); in ParseOperation()
1423 TokError("could not get type for !if"); in ParseOperation()
1429 TokError(Twine("inconsistent types '") + MHSTy->getAsString() + in ParseOperation()
1438 TokError("could not get type for !subst"); in ParseOperation()
1452 TokError("expected '(' after !foldl"); in ParseOperation()
1463 TokError(Twine("could not get type of !foldl start: '") + in ParseOperation()
1469 TokError("expected ',' in !foldl"); in ParseOperation()
1480 TokError(Twine("could not get type of !foldl list: '") + in ParseOperation()
1487 TokError(Twine("!foldl list must be a list, but is of type '") + in ParseOperation()
1493 TokError("expected ',' in !foldl"); in ParseOperation()
1498 TokError("third argument of !foldl must be an identifier"); in ParseOperation()
1504 TokError((Twine("left !foldl variable '") + A->getAsString() + in ParseOperation()
1511 TokError("expected ',' in !foldl"); in ParseOperation()
1516 TokError("fourth argument of !foldl must be an identifier"); in ParseOperation()
1522 TokError((Twine("right !foldl variable '") + B->getAsString() + in ParseOperation()
1529 TokError("expected ',' in !foldl"); in ParseOperation()
1553 TokError("could not get type of !foldl expression"); in ParseOperation()
1558 TokError(Twine("!foldl expression must be of same type as start (") + in ParseOperation()
1565 TokError("expected ')' in fold operator"); in ParseOperation()
1585 TokError("expected type name for operator"); in ParseOperatorType()
1593 TokError("expected type name for operator"); in ParseOperatorType()
1598 TokError("expected type name for operator"); in ParseOperatorType()
1629 default: TokError("Unknown token when parsing a value"); break; in ParseSimpleValue()
1674 TokError("expected non-empty value list"); in ParseSimpleValue()
1692 TokError("expected '>' at end of value list"); in ParseSimpleValue()
1741 TokError("expected '}' at end of bit list value"); in ParseSimpleValue()
1792 TokError(Twine("Type mismatch for list, expected list type, got ") + in ParseSimpleValue()
1805 TokError("expected ']' at end of list value"); in ParseSimpleValue()
1822 TokError("expected '>' at end of list element type"); in ParseSimpleValue()
1836 TokError("Incompatible types in list elements"); in ParseSimpleValue()
1849 TokError("Incompatible types in list elements"); in ParseSimpleValue()
1858 TokError("No type for list"); in ParseSimpleValue()
1866 TokError(Twine("Element type mismatch for list: element type '") + in ParseSimpleValue()
1880 TokError("expected identifier in dag init"); in ParseSimpleValue()
1891 TokError("expected variable name in dag operator"); in ParseSimpleValue()
1905 TokError("expected ')' in dag init"); in ParseSimpleValue()
1982 TokError("expected '}' at end of bit range list"); in ParseValue()
2003 TokError("expected ']' at end of list slice"); in ParseValue()
2011 TokError("expected field identifier after '.'"); in ParseValue()
2016 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
2120 TokError("expected variable name in dag literal"); in ParseDagArgList()
2148 TokError("template argument provided to non-template class"); in ParseValueList()
2173 TokError("too many template arguments"); in ParseValueList()
2210 TokError("Expected identifier in declaration"); in ParseDeclaration()
2216 TokError("'" + Str + "' is a reserved variable name"); in ParseDeclaration()
2264 TokError("Expected identifier in foreach declaration"); in ParseForeachDeclaration()
2273 TokError("Expected '=' in foreach declaration"); in ParseForeachDeclaration()
2292 TokError("expected '}' at end of bit range list"); in ParseForeachDeclaration()
2371 return TokError("expected '>' at end of template argument list"); in ParseTemplateArgList()
2386 return TokError("expected ';' after declaration"); in ParseBodyItem()
2393 return TokError("expected field identifier after let"); in ParseBodyItem()
2405 return TokError("expected '=' in let expression"); in ParseBodyItem()
2410 return TokError("Value '" + FieldName->getValue() + "' unknown!"); in ParseBodyItem()
2418 return TokError("expected ';' after let expression"); in ParseBodyItem()
2439 return TokError("Expected ';' or '{' to start body"); in ParseBody()
2556 return TokError("expected identifier"); in ParseDefset()
2559 return TokError("def or global variable of this name already exists"); in ParseDefset()
2562 return TokError("expected '='"); in ParseDefset()
2564 return TokError("expected '{'"); in ParseDefset()
2575 TokError("expected '}' at end of defset"); in ParseDefset()
2601 return TokError("expected declaration in for"); in ParseForeach()
2604 return TokError("Unknown tok"); in ParseForeach()
2624 TokError("expected '}' at end of foreach command"); in ParseForeach()
2646 return TokError("expected class name after 'class' keyword"); in ParseClass()
2654 return TokError("Class '" + CurRec->getNameInitAsString() + in ParseClass()
2683 TokError("expected identifier in let definition"); in ParseLetList()
2701 TokError("expected '=' in let expression"); in ParseLetList()
2739 return TokError("expected 'in' at end of top-level 'let'"); in ParseTopLevelLet()
2757 TokError("expected '}' at end of top level let command"); in ParseTopLevelLet()
2783 return TokError("expected identifier after multiclass for name"); in ParseMultiClass()
2791 return TokError("multiclass '" + Name + "' already defined"); in ParseMultiClass()
2828 return TokError("expected '{' in multiclass definition"); in ParseMultiClass()
2830 return TokError("expected ';' in multiclass definition"); in ParseMultiClass()
2834 return TokError("multiclass must contain at least one def"); in ParseMultiClass()
2839 return TokError("expected 'let', 'def', 'defm' or 'foreach' in " in ParseMultiClass()
2878 return TokError("expected ':' after defm identifier"); in ParseDefm()
2935 return TokError("expected identifier"); in ParseDefm()
2979 return TokError("expected ';' at end of defm"); in ParseDefm()
2995 return TokError("Expected class, def, defm, defset, multiclass, let or " in ParseObject()
3003 return TokError("defset is not allowed inside multiclass"); in ParseObject()
3007 return TokError("class is not allowed inside multiclass"); in ParseObject()
3009 return TokError("class is not allowed inside foreach loop"); in ParseObject()
3013 return TokError("multiclass is not allowed inside foreach loop"); in ParseObject()
3036 return TokError("Unexpected input at top level"); in ParseFile()