Lines Matching refs:TokError

710     TokError("expected name for ClassID");  in ParseClassID()
718 TokError(Msg + ". Use 'defm' if you meant to use multiclass '" + in ParseClassID()
721 TokError(Msg); in ParseClassID()
737 TokError("expected name for MultiClassID"); in ParseMultiClassID()
743 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID()
858 TokError("invalid range, cannot be negative"); in ParseSliceElement()
977 return TokError("expected integer or bitrange"); in ParseRangePiece()
983 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
997 TokError("expected integer value as end of range"); in ParseRangePiece()
1011 return TokError("invalid range, cannot be negative"); in ParseRangePiece()
1054 TokError("expected '>' at end of range list"); in ParseOptionalRangeList()
1073 TokError("expected '}' at end of bit list"); in ParseOptionalBitList()
1092 default: TokError("Unknown token when expecting a type"); return nullptr; in ParseType()
1114 TokError("unknown class name"); in ParseType()
1119 TokError("expected '<' after bits type"); in ParseType()
1123 TokError("expected integer in bits<n> type"); in ParseType()
1128 TokError("expected '>' at end of bits<n> type"); in ParseType()
1136 TokError("expected '<' after list type"); in ParseType()
1144 TokError("expected '>' at end of list<ty> type"); in ParseType()
1188 TokError("unknown bang operator"); in ParseOperation()
1213 TokError("did not get type for unary operator"); in ParseOperation()
1270 TokError("did not get type for unary operator"); in ParseOperation()
1275 TokError("type for !getdagop must be a record type"); in ParseOperation()
1285 TokError("expected '(' after unary operator"); in ParseOperation()
1298 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1306 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1316 TokError("expected list type argument in unary operator"); in ParseOperation()
1322 TokError("expected list type argument in unary operator"); in ParseOperation()
1328 TokError("empty list argument in unary operator"); in ParseOperation()
1335 TokError("untyped list element in unary operator"); in ParseOperation()
1348 TokError("expected ')' in unary operator"); in ParseOperation()
1363 TokError("expected '(' after type of !isa"); in ParseOperation()
1372 TokError("expected ')' in !isa"); in ParseOperation()
1388 TokError("expected '(' after type of !exists"); in ParseOperation()
1418 TokError("expected ')' in !exists"); in ParseOperation()
1503 TokError("did not get type for !getdagarg operator"); in ParseOperation()
1562 TokError("expected '(' after binary operator"); in ParseOperation()
1724 TokError("expected ')' in operator"); in ParseOperation()
1769 TokError("expected '(' after !range operator"); in ParseOperation()
1777 TokError("expected at most three values of integer"); in ParseOperation()
1820 TokError("expected ')' in operator"); in ParseOperation()
1898 TokError("expected '(' after ternary operator"); in ParseOperation()
1906 TokError("expected ',' in ternary operator"); in ParseOperation()
1916 TokError("expected ',' in ternary operator"); in ParseOperation()
1926 TokError("expected ')' in binary operator"); in ParseOperation()
1987 TokError("could not get type for !if"); in ParseOperation()
1993 TokError(Twine("inconsistent types '") + MHSTy->getAsString() + in ParseOperation()
2002 TokError("could not get type for !subst"); in ParseOperation()
2054 TokError("expected '(' after !foldl"); in ParseOperation()
2064 TokError(Twine("could not get type of !foldl start: '") + in ParseOperation()
2070 TokError("expected ',' in !foldl"); in ParseOperation()
2080 TokError(Twine("could not get type of !foldl list: '") + in ParseOperation()
2087 TokError(Twine("!foldl list must be a list, but is of type '") + in ParseOperation()
2093 TokError("expected ',' in !foldl"); in ParseOperation()
2098 TokError("third argument of !foldl must be an identifier"); in ParseOperation()
2104 TokError((Twine("left !foldl variable '") + A->getAsString() + in ParseOperation()
2111 TokError("expected ',' in !foldl"); in ParseOperation()
2116 TokError("fourth argument of !foldl must be an identifier"); in ParseOperation()
2122 TokError((Twine("right !foldl variable '") + B->getAsString() + in ParseOperation()
2129 TokError("expected ',' in !foldl"); in ParseOperation()
2156 TokError("could not get type of !foldl expression"); in ParseOperation()
2161 TokError(Twine("!foldl expression must be of same type as start (") + in ParseOperation()
2168 TokError("expected ')' in fold operator"); in ParseOperation()
2187 TokError("expected type name for operator"); in ParseOperatorType()
2192 TokError("the 'code' type is not allowed in bang operators; use 'string'"); in ParseOperatorType()
2197 TokError("expected type name for operator"); in ParseOperatorType()
2202 TokError("expected type name for operator"); in ParseOperatorType()
2219 TokError("expected '(' after !substr operator"); in ParseOperationSubstr()
2228 TokError("expected ',' in !substr operator"); in ParseOperationSubstr()
2249 TokError("expected ')' in !substr operator"); in ParseOperationSubstr()
2261 TokError("could not determine type of the string in !substr"); in ParseOperationSubstr()
2265 TokError(Twine("expected string, got type '") + in ParseOperationSubstr()
2272 TokError("could not determine type of the start position in !substr"); in ParseOperationSubstr()
2284 TokError("could not determine type of the length in !substr"); in ParseOperationSubstr()
2288 TokError(Twine("expected int, got type '") + in ParseOperationSubstr()
2307 TokError("expected '(' after !find operator"); in ParseOperationFind()
2316 TokError("expected ',' in !find operator"); in ParseOperationFind()
2337 TokError("expected ')' in !find operator"); in ParseOperationFind()
2349 TokError("could not determine type of the source string in !find"); in ParseOperationFind()
2353 TokError(Twine("expected string, got type '") + in ParseOperationFind()
2360 TokError("could not determine type of the target string in !find"); in ParseOperationFind()
2372 TokError("could not determine type of the start position in !find"); in ParseOperationFind()
2376 TokError(Twine("expected int, got type '") + in ParseOperationFind()
2394 TokError("expected '(' after !foreach/!filter"); in ParseOperationForEachFilter()
2399 TokError("first argument of !foreach/!filter must be an identifier"); in ParseOperationForEachFilter()
2407 TokError((Twine("iteration variable '") + LHS->getAsString() + in ParseOperationForEachFilter()
2414 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
2423 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
2429 TokError("could not get type of !foreach/!filter list or dag"); in ParseOperationForEachFilter()
2454 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
2467 TokError("!foreach must have a list or dag argument"); in ParseOperationForEachFilter()
2469 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
2491 TokError("expected ')' in !foreach/!filter"); in ParseOperationForEachFilter()
2499 TokError("could not get type of !foreach result expression"); in ParseOperationForEachFilter()
2517 TokError("expected '(' after !cond operator"); in ParseOperationCond()
2534 TokError("expected ':' following a condition in !cond operator"); in ParseOperationCond()
2547 TokError("expected ',' or ')' following a value in !cond operator"); in ParseOperationCond()
2553 TokError("there should be at least 1 'condition : value' in the !cond operator"); in ParseOperationCond()
2575 TokError(Twine("inconsistent types '") + Type->getAsString() + in ParseOperationCond()
2585 TokError("could not determine type for !cond from its arguments"); in ParseOperationCond()
2628 default: TokError("Unknown or reserved token when parsing a value"); break; in ParseSimpleValue()
2716 TokError("expected '}' at end of bit list value"); in ParseSimpleValue()
2766 TokError(Twine("Encountered a list when expecting a ") + in ParseSimpleValue()
2779 TokError("expected ']' at end of list value"); in ParseSimpleValue()
2793 TokError("expected '>' at end of list element type"); in ParseSimpleValue()
2806 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2819 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2828 TokError("No type for list"); in ParseSimpleValue()
2836 TokError(Twine("Element type mismatch for list: element type '") + in ParseSimpleValue()
2851 TokError("expected identifier in dag init"); in ParseSimpleValue()
2862 TokError("expected variable name in dag operator"); in ParseSimpleValue()
2876 TokError("expected ')' in dag init"); in ParseSimpleValue()
2924 TokError("expected '}' at end of bit range list"); in ParseValue()
2961 TokError("expected ']' at end of list slice"); in ParseValue()
2968 TokError("expected field identifier after '.'"); in ParseValue()
2974 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
3116 TokError("expected variable name in dag literal"); in ParseDagArgList()
3178 TokError("Too many template arguments: " + utostr(ArgIndex + 1)); in ParseTemplateArgValueList()
3228 return TokError("Expected comma before next argument"); in ParseTemplateArgValueList()
3252 TokError("Expected identifier in declaration"); in ParseDeclaration()
3258 TokError("'" + Str + "' is a reserved variable name"); in ParseDeclaration()
3263 TokError("local variable of this name already exists"); in ParseDeclaration()
3319 TokError("Expected identifier in foreach declaration"); in ParseForeachDeclaration()
3328 TokError("Expected '=' in foreach declaration"); in ParseForeachDeclaration()
3340 TokError("expected '}' at end of bit range list"); in ParseForeachDeclaration()
3425 return TokError("expected '>' at end of template argument list"); in ParseTemplateArgList()
3452 return TokError("expected ';' after declaration"); in ParseBodyItem()
3458 return TokError("expected field identifier after let"); in ParseBodyItem()
3470 return TokError("expected '=' in let expression"); in ParseBodyItem()
3474 return TokError("Value '" + FieldName->getValue() + "' unknown!"); in ParseBodyItem()
3487 return TokError("expected ';' after let expression"); in ParseBodyItem()
3505 return TokError("Expected '{' to start body or ';' for declaration only"); in ParseBody()
3646 return TokError("expected identifier"); in ParseDefset()
3649 return TokError("def or global variable of this name already exists"); in ParseDefset()
3652 return TokError("expected '='"); in ParseDefset()
3654 return TokError("expected '{'"); in ParseDefset()
3665 TokError("expected '}' at end of defset"); in ParseDefset()
3683 return TokError("expected identifier"); in ParseDeftype()
3687 return TokError("type of this name '" + TypeName + "' already exists"); in ParseDeftype()
3691 return TokError("expected '='"); in ParseDeftype()
3705 return TokError("expected ';'"); in ParseDeftype()
3719 return TokError("expected identifier"); in ParseDefvar()
3722 return TokError("local variable of this name already exists"); in ParseDefvar()
3728 return TokError("field of this name already exists"); in ParseDefvar()
3734 return TokError("def or global variable of this name already exists"); in ParseDefvar()
3738 return TokError("expected '='"); in ParseDefvar()
3745 return TokError("expected ';'"); in ParseDefvar()
3771 return TokError("expected declaration in for"); in ParseForeach()
3774 return TokError("Unknown tok"); in ParseForeach()
3796 TokError("expected '}' at end of foreach command"); in ParseForeach()
3827 return TokError("Unknown tok"); in ParseIf()
3907 TokError("expected '}' at end of '" + Kind + "' clause"); in ParseIfBody()
3929 TokError("expected ',' in assert statement"); in ParseAssert()
3938 return TokError("expected ';'"); in ParseAssert()
3957 return TokError("expected class name after 'class' keyword"); in ParseClass()
3966 return TokError("Class '" + CurRec->getNameInitAsString() + in ParseClass()
3979 return TokError("there is already a defined type alias '" + Name + "'"); in ParseClass()
4009 TokError("expected identifier in let definition"); in ParseLetList()
4027 TokError("expected '=' in let expression"); in ParseLetList()
4060 return TokError("expected 'in' at end of top-level 'let'"); in ParseTopLevelLet()
4080 TokError("expected '}' at end of top level let command"); in ParseTopLevelLet()
4110 return TokError("expected identifier after multiclass for name"); in ParseMultiClass()
4118 return TokError("multiclass '" + Name + "' already defined"); in ParseMultiClass()
4156 return TokError("expected '{' in multiclass definition"); in ParseMultiClass()
4158 return TokError("expected ';' in multiclass definition"); in ParseMultiClass()
4161 return TokError("multiclass must contain at least one def"); in ParseMultiClass()
4166 return TokError("expected 'assert', 'def', 'defm', 'defvar', 'dump', " in ParseMultiClass()
4221 return TokError("expected ':' after defm identifier"); in ParseDefm()
4258 return TokError("expected identifier"); in ParseDefm()
4302 return TokError("expected ';' at end of defm"); in ParseDefm()
4322 return TokError( in ParseObject()
4337 return TokError("defset is not allowed inside multiclass"); in ParseObject()
4341 return TokError("class is not allowed inside multiclass"); in ParseObject()
4343 return TokError("class is not allowed inside foreach loop"); in ParseObject()
4347 return TokError("multiclass is not allowed inside foreach loop"); in ParseObject()
4373 return TokError("Unexpected token at top level"); in ParseFile()
4459 return TokError("expected ';'"); in ParseDump()