Lines Matching refs:TokError

576     TokError("expected name for ClassID");  in ParseClassID()
584 TokError(Msg + ". Use 'defm' if you meant to use multiclass '" + in ParseClassID()
587 TokError(Msg); in ParseClassID()
601 TokError("expected name for MultiClassID"); in ParseMultiClassID()
607 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID()
699 return TokError("expected integer or bitrange"); in ParseRangePiece()
705 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
719 TokError("expected integer value as end of range"); in ParseRangePiece()
733 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
776 TokError("expected '>' at end of range list"); in ParseOptionalRangeList()
795 TokError("expected '}' at end of bit list"); in ParseOptionalBitList()
814 default: TokError("Unknown token when expecting a type"); return nullptr; in ParseType()
822 TokError("unknown class name"); in ParseType()
826 TokError("expected '<' after bits type"); in ParseType()
830 TokError("expected integer in bits<n> type"); in ParseType()
835 TokError("expected '>' at end of bits<n> type"); in ParseType()
843 TokError("expected '<' after list type"); in ParseType()
851 TokError("expected '>' at end of list<ty> type"); in ParseType()
921 TokError("unknown bang operator"); in ParseOperation()
942 TokError("did not get type for unary operator"); in ParseOperation()
979 TokError("did not get type for unary operator"); in ParseOperation()
984 TokError("type for !getdagop must be a record type"); in ParseOperation()
994 TokError("expected '(' after unary operator"); in ParseOperation()
1007 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1015 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1025 TokError("expected list type argument in unary operator"); in ParseOperation()
1031 TokError("expected list type argument in unary operator"); in ParseOperation()
1037 TokError("empty list argument in unary operator"); in ParseOperation()
1044 TokError("untyped list element in unary operator"); in ParseOperation()
1057 TokError("expected ')' in unary operator"); in ParseOperation()
1072 TokError("expected '(' after type of !isa"); in ParseOperation()
1081 TokError("expected ')' in !isa"); in ParseOperation()
1194 TokError("expected '(' after binary operator"); in ParseOperation()
1337 TokError("expected ')' in operator"); in ParseOperation()
1397 TokError("expected '(' after ternary operator"); in ParseOperation()
1405 TokError("expected ',' in ternary operator"); in ParseOperation()
1415 TokError("expected ',' in ternary operator"); in ParseOperation()
1425 TokError("expected ')' in binary operator"); in ParseOperation()
1486 TokError("could not get type for !if"); in ParseOperation()
1492 TokError(Twine("inconsistent types '") + MHSTy->getAsString() + in ParseOperation()
1501 TokError("could not get type for !subst"); in ParseOperation()
1524 TokError("expected '(' after !foldl"); in ParseOperation()
1534 TokError(Twine("could not get type of !foldl start: '") + in ParseOperation()
1540 TokError("expected ',' in !foldl"); in ParseOperation()
1550 TokError(Twine("could not get type of !foldl list: '") + in ParseOperation()
1557 TokError(Twine("!foldl list must be a list, but is of type '") + in ParseOperation()
1563 TokError("expected ',' in !foldl"); in ParseOperation()
1568 TokError("third argument of !foldl must be an identifier"); in ParseOperation()
1574 TokError((Twine("left !foldl variable '") + A->getAsString() + in ParseOperation()
1581 TokError("expected ',' in !foldl"); in ParseOperation()
1586 TokError("fourth argument of !foldl must be an identifier"); in ParseOperation()
1592 TokError((Twine("right !foldl variable '") + B->getAsString() + in ParseOperation()
1599 TokError("expected ',' in !foldl"); in ParseOperation()
1624 TokError("could not get type of !foldl expression"); in ParseOperation()
1629 TokError(Twine("!foldl expression must be of same type as start (") + in ParseOperation()
1636 TokError("expected ')' in fold operator"); in ParseOperation()
1655 TokError("expected type name for operator"); in ParseOperatorType()
1660 TokError("the 'code' type is not allowed in bang operators; use 'string'"); in ParseOperatorType()
1665 TokError("expected type name for operator"); in ParseOperatorType()
1670 TokError("expected type name for operator"); in ParseOperatorType()
1687 TokError("expected '(' after !substr operator"); in ParseOperationSubstr()
1696 TokError("expected ',' in !substr operator"); in ParseOperationSubstr()
1717 TokError("expected ')' in !substr operator"); in ParseOperationSubstr()
1729 TokError("could not determine type of the string in !substr"); in ParseOperationSubstr()
1733 TokError(Twine("expected string, got type '") + in ParseOperationSubstr()
1740 TokError("could not determine type of the start position in !substr"); in ParseOperationSubstr()
1752 TokError("could not determine type of the length in !substr"); in ParseOperationSubstr()
1756 TokError(Twine("expected int, got type '") + in ParseOperationSubstr()
1775 TokError("expected '(' after !find operator"); in ParseOperationFind()
1784 TokError("expected ',' in !find operator"); in ParseOperationFind()
1805 TokError("expected ')' in !find operator"); in ParseOperationFind()
1817 TokError("could not determine type of the source string in !find"); in ParseOperationFind()
1821 TokError(Twine("expected string, got type '") + in ParseOperationFind()
1828 TokError("could not determine type of the target string in !find"); in ParseOperationFind()
1840 TokError("could not determine type of the start position in !find"); in ParseOperationFind()
1844 TokError(Twine("expected int, got type '") + in ParseOperationFind()
1862 TokError("expected '(' after !foreach/!filter"); in ParseOperationForEachFilter()
1867 TokError("first argument of !foreach/!filter must be an identifier"); in ParseOperationForEachFilter()
1875 TokError((Twine("iteration variable '") + LHS->getAsString() + in ParseOperationForEachFilter()
1882 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
1891 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
1897 TokError("could not get type of !foreach/!filter list or dag"); in ParseOperationForEachFilter()
1922 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
1935 TokError("!foreach must have a list or dag argument"); in ParseOperationForEachFilter()
1937 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
1958 TokError("expected ')' in !foreach/!filter"); in ParseOperationForEachFilter()
1966 TokError("could not get type of !foreach result expression"); in ParseOperationForEachFilter()
1984 TokError("expected '(' after !cond operator"); in ParseOperationCond()
2001 TokError("expected ':' following a condition in !cond operator"); in ParseOperationCond()
2014 TokError("expected ',' or ')' following a value in !cond operator"); in ParseOperationCond()
2020 TokError("there should be at least 1 'condition : value' in the !cond operator"); in ParseOperationCond()
2042 TokError(Twine("inconsistent types '") + Type->getAsString() + in ParseOperationCond()
2052 TokError("could not determine type for !cond from its arguments"); in ParseOperationCond()
2084 default: TokError("Unknown or reserved token when parsing a value"); break; in ParseSimpleValue()
2176 TokError("expected '}' at end of bit list value"); in ParseSimpleValue()
2226 TokError(Twine("Encountered a list when expecting a ") + in ParseSimpleValue()
2239 TokError("expected ']' at end of list value"); in ParseSimpleValue()
2253 TokError("expected '>' at end of list element type"); in ParseSimpleValue()
2266 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2279 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2288 TokError("No type for list"); in ParseSimpleValue()
2296 TokError(Twine("Element type mismatch for list: element type '") + in ParseSimpleValue()
2311 TokError("expected identifier in dag init"); in ParseSimpleValue()
2322 TokError("expected variable name in dag operator"); in ParseSimpleValue()
2336 TokError("expected ')' in dag init"); in ParseSimpleValue()
2424 TokError("expected '}' at end of bit range list"); in ParseValue()
2444 TokError("expected ']' at end of list slice"); in ParseValue()
2451 TokError("expected field identifier after '.'"); in ParseValue()
2456 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
2584 TokError("expected variable name in dag literal"); in ParseDagArgList()
2645 TokError("Too many template arguments: " + utostr(ArgIndex + 1)); in ParseTemplateArgValueList()
2660 return TokError("Expected comma before next argument"); in ParseTemplateArgValueList()
2684 TokError("Expected identifier in declaration"); in ParseDeclaration()
2690 TokError("'" + Str + "' is a reserved variable name"); in ParseDeclaration()
2744 TokError("Expected identifier in foreach declaration"); in ParseForeachDeclaration()
2753 TokError("Expected '=' in foreach declaration"); in ParseForeachDeclaration()
2765 TokError("expected '}' at end of bit range list"); in ParseForeachDeclaration()
2850 return TokError("expected '>' at end of template argument list"); in ParseTemplateArgList()
2873 return TokError("expected ';' after declaration"); in ParseBodyItem()
2879 return TokError("expected field identifier after let"); in ParseBodyItem()
2891 return TokError("expected '=' in let expression"); in ParseBodyItem()
2895 return TokError("Value '" + FieldName->getValue() + "' unknown!"); in ParseBodyItem()
2908 return TokError("expected ';' after let expression"); in ParseBodyItem()
2926 return TokError("Expected '{' to start body or ';' for declaration only"); in ParseBody()
3058 return TokError("expected identifier"); in ParseDefset()
3061 return TokError("def or global variable of this name already exists"); in ParseDefset()
3064 return TokError("expected '='"); in ParseDefset()
3066 return TokError("expected '{'"); in ParseDefset()
3077 TokError("expected '}' at end of defset"); in ParseDefset()
3095 return TokError("expected identifier"); in ParseDefvar()
3099 return TokError("local variable of this name already exists"); in ParseDefvar()
3102 return TokError("def or global variable of this name already exists"); in ParseDefvar()
3107 return TokError("expected '='"); in ParseDefvar()
3114 return TokError("expected ';'"); in ParseDefvar()
3140 return TokError("expected declaration in for"); in ParseForeach()
3143 return TokError("Unknown tok"); in ParseForeach()
3165 TokError("expected '}' at end of foreach command"); in ParseForeach()
3196 return TokError("Unknown tok"); in ParseIf()
3274 TokError("expected '}' at end of '" + Kind + "' clause"); in ParseIfBody()
3296 TokError("expected ',' in assert statement"); in ParseAssert()
3305 return TokError("expected ';'"); in ParseAssert()
3324 return TokError("expected class name after 'class' keyword"); in ParseClass()
3332 return TokError("Class '" + CurRec->getNameInitAsString() + in ParseClass()
3361 TokError("expected identifier in let definition"); in ParseLetList()
3379 TokError("expected '=' in let expression"); in ParseLetList()
3412 return TokError("expected 'in' at end of top-level 'let'"); in ParseTopLevelLet()
3431 TokError("expected '}' at end of top level let command"); in ParseTopLevelLet()
3461 return TokError("expected identifier after multiclass for name"); in ParseMultiClass()
3469 return TokError("multiclass '" + Name + "' already defined"); in ParseMultiClass()
3504 return TokError("expected '{' in multiclass definition"); in ParseMultiClass()
3506 return TokError("expected ';' in multiclass definition"); in ParseMultiClass()
3509 return TokError("multiclass must contain at least one def"); in ParseMultiClass()
3517 return TokError("expected 'assert', 'def', 'defm', 'defvar', " in ParseMultiClass()
3569 return TokError("expected ':' after defm identifier"); in ParseDefm()
3622 return TokError("expected identifier"); in ParseDefm()
3666 return TokError("expected ';' at end of defm"); in ParseDefm()
3684 return TokError( in ParseObject()
3695 return TokError("defset is not allowed inside multiclass"); in ParseObject()
3699 return TokError("class is not allowed inside multiclass"); in ParseObject()
3701 return TokError("class is not allowed inside foreach loop"); in ParseObject()
3705 return TokError("multiclass is not allowed inside foreach loop"); in ParseObject()
3728 return TokError("Unexpected token at top level"); in ParseFile()