Lines Matching refs:TokError
577 TokError("expected name for ClassID"); in ParseClassID()
585 TokError(Msg + ". Use 'defm' if you meant to use multiclass '" + in ParseClassID()
588 TokError(Msg); in ParseClassID()
602 TokError("expected name for MultiClassID"); in ParseMultiClassID()
608 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID()
700 return TokError("expected integer or bitrange"); in ParseRangePiece()
706 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
720 TokError("expected integer value as end of range"); in ParseRangePiece()
734 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
777 TokError("expected '>' at end of range list"); in ParseOptionalRangeList()
796 TokError("expected '}' at end of bit list"); in ParseOptionalBitList()
815 default: TokError("Unknown token when expecting a type"); return nullptr; in ParseType()
832 TokError("unknown class name"); in ParseType()
836 TokError("expected '<' after bits type"); in ParseType()
840 TokError("expected integer in bits<n> type"); in ParseType()
845 TokError("expected '>' at end of bits<n> type"); in ParseType()
853 TokError("expected '<' after list type"); in ParseType()
861 TokError("expected '>' at end of list<ty> type"); in ParseType()
932 TokError("unknown bang operator"); in ParseOperation()
953 TokError("did not get type for unary operator"); in ParseOperation()
990 TokError("did not get type for unary operator"); in ParseOperation()
995 TokError("type for !getdagop must be a record type"); in ParseOperation()
1005 TokError("expected '(' after unary operator"); in ParseOperation()
1018 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1026 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1036 TokError("expected list type argument in unary operator"); in ParseOperation()
1042 TokError("expected list type argument in unary operator"); in ParseOperation()
1048 TokError("empty list argument in unary operator"); in ParseOperation()
1055 TokError("untyped list element in unary operator"); in ParseOperation()
1068 TokError("expected ')' in unary operator"); in ParseOperation()
1083 TokError("expected '(' after type of !isa"); in ParseOperation()
1092 TokError("expected ')' in !isa"); in ParseOperation()
1108 TokError("expected '(' after type of !exists"); in ParseOperation()
1138 TokError("expected ')' in !exists"); in ParseOperation()
1251 TokError("expected '(' after binary operator"); in ParseOperation()
1395 TokError("expected ')' in operator"); in ParseOperation()
1455 TokError("expected '(' after ternary operator"); in ParseOperation()
1463 TokError("expected ',' in ternary operator"); in ParseOperation()
1473 TokError("expected ',' in ternary operator"); in ParseOperation()
1483 TokError("expected ')' in binary operator"); in ParseOperation()
1544 TokError("could not get type for !if"); in ParseOperation()
1550 TokError(Twine("inconsistent types '") + MHSTy->getAsString() + in ParseOperation()
1559 TokError("could not get type for !subst"); in ParseOperation()
1582 TokError("expected '(' after !foldl"); in ParseOperation()
1592 TokError(Twine("could not get type of !foldl start: '") + in ParseOperation()
1598 TokError("expected ',' in !foldl"); in ParseOperation()
1608 TokError(Twine("could not get type of !foldl list: '") + in ParseOperation()
1615 TokError(Twine("!foldl list must be a list, but is of type '") + in ParseOperation()
1621 TokError("expected ',' in !foldl"); in ParseOperation()
1626 TokError("third argument of !foldl must be an identifier"); in ParseOperation()
1632 TokError((Twine("left !foldl variable '") + A->getAsString() + in ParseOperation()
1639 TokError("expected ',' in !foldl"); in ParseOperation()
1644 TokError("fourth argument of !foldl must be an identifier"); in ParseOperation()
1650 TokError((Twine("right !foldl variable '") + B->getAsString() + in ParseOperation()
1657 TokError("expected ',' in !foldl"); in ParseOperation()
1682 TokError("could not get type of !foldl expression"); in ParseOperation()
1687 TokError(Twine("!foldl expression must be of same type as start (") + in ParseOperation()
1694 TokError("expected ')' in fold operator"); in ParseOperation()
1713 TokError("expected type name for operator"); in ParseOperatorType()
1718 TokError("the 'code' type is not allowed in bang operators; use 'string'"); in ParseOperatorType()
1723 TokError("expected type name for operator"); in ParseOperatorType()
1728 TokError("expected type name for operator"); in ParseOperatorType()
1745 TokError("expected '(' after !substr operator"); in ParseOperationSubstr()
1754 TokError("expected ',' in !substr operator"); in ParseOperationSubstr()
1775 TokError("expected ')' in !substr operator"); in ParseOperationSubstr()
1787 TokError("could not determine type of the string in !substr"); in ParseOperationSubstr()
1791 TokError(Twine("expected string, got type '") + in ParseOperationSubstr()
1798 TokError("could not determine type of the start position in !substr"); in ParseOperationSubstr()
1810 TokError("could not determine type of the length in !substr"); in ParseOperationSubstr()
1814 TokError(Twine("expected int, got type '") + in ParseOperationSubstr()
1833 TokError("expected '(' after !find operator"); in ParseOperationFind()
1842 TokError("expected ',' in !find operator"); in ParseOperationFind()
1863 TokError("expected ')' in !find operator"); in ParseOperationFind()
1875 TokError("could not determine type of the source string in !find"); in ParseOperationFind()
1879 TokError(Twine("expected string, got type '") + in ParseOperationFind()
1886 TokError("could not determine type of the target string in !find"); in ParseOperationFind()
1898 TokError("could not determine type of the start position in !find"); in ParseOperationFind()
1902 TokError(Twine("expected int, got type '") + in ParseOperationFind()
1920 TokError("expected '(' after !foreach/!filter"); in ParseOperationForEachFilter()
1925 TokError("first argument of !foreach/!filter must be an identifier"); in ParseOperationForEachFilter()
1933 TokError((Twine("iteration variable '") + LHS->getAsString() + in ParseOperationForEachFilter()
1940 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
1949 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
1955 TokError("could not get type of !foreach/!filter list or dag"); in ParseOperationForEachFilter()
1980 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
1993 TokError("!foreach must have a list or dag argument"); in ParseOperationForEachFilter()
1995 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
2016 TokError("expected ')' in !foreach/!filter"); in ParseOperationForEachFilter()
2024 TokError("could not get type of !foreach result expression"); in ParseOperationForEachFilter()
2042 TokError("expected '(' after !cond operator"); in ParseOperationCond()
2059 TokError("expected ':' following a condition in !cond operator"); in ParseOperationCond()
2072 TokError("expected ',' or ')' following a value in !cond operator"); in ParseOperationCond()
2078 TokError("there should be at least 1 'condition : value' in the !cond operator"); in ParseOperationCond()
2100 TokError(Twine("inconsistent types '") + Type->getAsString() + in ParseOperationCond()
2110 TokError("could not determine type for !cond from its arguments"); in ParseOperationCond()
2142 default: TokError("Unknown or reserved token when parsing a value"); break; in ParseSimpleValue()
2234 TokError("expected '}' at end of bit list value"); in ParseSimpleValue()
2284 TokError(Twine("Encountered a list when expecting a ") + in ParseSimpleValue()
2297 TokError("expected ']' at end of list value"); in ParseSimpleValue()
2311 TokError("expected '>' at end of list element type"); in ParseSimpleValue()
2324 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2337 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2346 TokError("No type for list"); in ParseSimpleValue()
2354 TokError(Twine("Element type mismatch for list: element type '") + in ParseSimpleValue()
2369 TokError("expected identifier in dag init"); in ParseSimpleValue()
2380 TokError("expected variable name in dag operator"); in ParseSimpleValue()
2394 TokError("expected ')' in dag init"); in ParseSimpleValue()
2483 TokError("expected '}' at end of bit range list"); in ParseValue()
2503 TokError("expected ']' at end of list slice"); in ParseValue()
2510 TokError("expected field identifier after '.'"); in ParseValue()
2515 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
2643 TokError("expected variable name in dag literal"); in ParseDagArgList()
2704 TokError("Too many template arguments: " + utostr(ArgIndex + 1)); in ParseTemplateArgValueList()
2719 return TokError("Expected comma before next argument"); in ParseTemplateArgValueList()
2743 TokError("Expected identifier in declaration"); in ParseDeclaration()
2749 TokError("'" + Str + "' is a reserved variable name"); in ParseDeclaration()
2803 TokError("Expected identifier in foreach declaration"); in ParseForeachDeclaration()
2812 TokError("Expected '=' in foreach declaration"); in ParseForeachDeclaration()
2824 TokError("expected '}' at end of bit range list"); in ParseForeachDeclaration()
2909 return TokError("expected '>' at end of template argument list"); in ParseTemplateArgList()
2932 return TokError("expected ';' after declaration"); in ParseBodyItem()
2938 return TokError("expected field identifier after let"); in ParseBodyItem()
2950 return TokError("expected '=' in let expression"); in ParseBodyItem()
2954 return TokError("Value '" + FieldName->getValue() + "' unknown!"); in ParseBodyItem()
2967 return TokError("expected ';' after let expression"); in ParseBodyItem()
2985 return TokError("Expected '{' to start body or ';' for declaration only"); in ParseBody()
3117 return TokError("expected identifier"); in ParseDefset()
3120 return TokError("def or global variable of this name already exists"); in ParseDefset()
3123 return TokError("expected '='"); in ParseDefset()
3125 return TokError("expected '{'"); in ParseDefset()
3136 TokError("expected '}' at end of defset"); in ParseDefset()
3154 return TokError("expected identifier"); in ParseDefvar()
3158 return TokError("local variable of this name already exists"); in ParseDefvar()
3161 return TokError("def or global variable of this name already exists"); in ParseDefvar()
3166 return TokError("expected '='"); in ParseDefvar()
3173 return TokError("expected ';'"); in ParseDefvar()
3199 return TokError("expected declaration in for"); in ParseForeach()
3202 return TokError("Unknown tok"); in ParseForeach()
3224 TokError("expected '}' at end of foreach command"); in ParseForeach()
3255 return TokError("Unknown tok"); in ParseIf()
3334 TokError("expected '}' at end of '" + Kind + "' clause"); in ParseIfBody()
3356 TokError("expected ',' in assert statement"); in ParseAssert()
3365 return TokError("expected ';'"); in ParseAssert()
3384 return TokError("expected class name after 'class' keyword"); in ParseClass()
3392 return TokError("Class '" + CurRec->getNameInitAsString() + in ParseClass()
3428 TokError("expected identifier in let definition"); in ParseLetList()
3446 TokError("expected '=' in let expression"); in ParseLetList()
3479 return TokError("expected 'in' at end of top-level 'let'"); in ParseTopLevelLet()
3498 TokError("expected '}' at end of top level let command"); in ParseTopLevelLet()
3528 return TokError("expected identifier after multiclass for name"); in ParseMultiClass()
3536 return TokError("multiclass '" + Name + "' already defined"); in ParseMultiClass()
3571 return TokError("expected '{' in multiclass definition"); in ParseMultiClass()
3573 return TokError("expected ';' in multiclass definition"); in ParseMultiClass()
3576 return TokError("multiclass must contain at least one def"); in ParseMultiClass()
3584 return TokError("expected 'assert', 'def', 'defm', 'defvar', " in ParseMultiClass()
3639 return TokError("expected ':' after defm identifier"); in ParseDefm()
3692 return TokError("expected identifier"); in ParseDefm()
3736 return TokError("expected ';' at end of defm"); in ParseDefm()
3754 return TokError( in ParseObject()
3765 return TokError("defset is not allowed inside multiclass"); in ParseObject()
3769 return TokError("class is not allowed inside multiclass"); in ParseObject()
3771 return TokError("class is not allowed inside foreach loop"); in ParseObject()
3775 return TokError("multiclass is not allowed inside foreach loop"); in ParseObject()
3798 return TokError("Unexpected token at top level"); in ParseFile()