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()
1109 TokError("unknown class name"); in ParseType()
1113 TokError("expected '<' after bits type"); in ParseType()
1117 TokError("expected integer in bits<n> type"); in ParseType()
1122 TokError("expected '>' at end of bits<n> type"); in ParseType()
1130 TokError("expected '<' after list type"); in ParseType()
1138 TokError("expected '>' at end of list<ty> type"); in ParseType()
1182 TokError("unknown bang operator"); in ParseOperation()
1207 TokError("did not get type for unary operator"); in ParseOperation()
1264 TokError("did not get type for unary operator"); in ParseOperation()
1269 TokError("type for !getdagop must be a record type"); in ParseOperation()
1279 TokError("expected '(' after unary operator"); in ParseOperation()
1292 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1300 TokError("expected string, list, or dag type argument in unary operator"); in ParseOperation()
1310 TokError("expected list type argument in unary operator"); in ParseOperation()
1316 TokError("expected list type argument in unary operator"); in ParseOperation()
1322 TokError("empty list argument in unary operator"); in ParseOperation()
1329 TokError("untyped list element in unary operator"); in ParseOperation()
1342 TokError("expected ')' in unary operator"); in ParseOperation()
1357 TokError("expected '(' after type of !isa"); in ParseOperation()
1366 TokError("expected ')' in !isa"); in ParseOperation()
1382 TokError("expected '(' after type of !exists"); in ParseOperation()
1412 TokError("expected ')' in !exists"); in ParseOperation()
1497 TokError("did not get type for !getdagarg operator"); in ParseOperation()
1556 TokError("expected '(' after binary operator"); in ParseOperation()
1718 TokError("expected ')' in operator"); in ParseOperation()
1763 TokError("expected '(' after !range operator"); in ParseOperation()
1771 TokError("expected at most three values of integer"); in ParseOperation()
1814 TokError("expected ')' in operator"); in ParseOperation()
1892 TokError("expected '(' after ternary operator"); in ParseOperation()
1900 TokError("expected ',' in ternary operator"); in ParseOperation()
1910 TokError("expected ',' in ternary operator"); in ParseOperation()
1920 TokError("expected ')' in binary operator"); in ParseOperation()
1981 TokError("could not get type for !if"); in ParseOperation()
1987 TokError(Twine("inconsistent types '") + MHSTy->getAsString() + in ParseOperation()
1996 TokError("could not get type for !subst"); in ParseOperation()
2048 TokError("expected '(' after !foldl"); in ParseOperation()
2058 TokError(Twine("could not get type of !foldl start: '") + in ParseOperation()
2064 TokError("expected ',' in !foldl"); in ParseOperation()
2074 TokError(Twine("could not get type of !foldl list: '") + in ParseOperation()
2081 TokError(Twine("!foldl list must be a list, but is of type '") + in ParseOperation()
2087 TokError("expected ',' in !foldl"); in ParseOperation()
2092 TokError("third argument of !foldl must be an identifier"); in ParseOperation()
2098 TokError((Twine("left !foldl variable '") + A->getAsString() + in ParseOperation()
2105 TokError("expected ',' in !foldl"); in ParseOperation()
2110 TokError("fourth argument of !foldl must be an identifier"); in ParseOperation()
2116 TokError((Twine("right !foldl variable '") + B->getAsString() + in ParseOperation()
2123 TokError("expected ',' in !foldl"); in ParseOperation()
2150 TokError("could not get type of !foldl expression"); in ParseOperation()
2155 TokError(Twine("!foldl expression must be of same type as start (") + in ParseOperation()
2162 TokError("expected ')' in fold operator"); in ParseOperation()
2181 TokError("expected type name for operator"); in ParseOperatorType()
2186 TokError("the 'code' type is not allowed in bang operators; use 'string'"); in ParseOperatorType()
2191 TokError("expected type name for operator"); in ParseOperatorType()
2196 TokError("expected type name for operator"); in ParseOperatorType()
2213 TokError("expected '(' after !substr operator"); in ParseOperationSubstr()
2222 TokError("expected ',' in !substr operator"); in ParseOperationSubstr()
2243 TokError("expected ')' in !substr operator"); in ParseOperationSubstr()
2255 TokError("could not determine type of the string in !substr"); in ParseOperationSubstr()
2259 TokError(Twine("expected string, got type '") + in ParseOperationSubstr()
2266 TokError("could not determine type of the start position in !substr"); in ParseOperationSubstr()
2278 TokError("could not determine type of the length in !substr"); in ParseOperationSubstr()
2282 TokError(Twine("expected int, got type '") + in ParseOperationSubstr()
2301 TokError("expected '(' after !find operator"); in ParseOperationFind()
2310 TokError("expected ',' in !find operator"); in ParseOperationFind()
2331 TokError("expected ')' in !find operator"); in ParseOperationFind()
2343 TokError("could not determine type of the source string in !find"); in ParseOperationFind()
2347 TokError(Twine("expected string, got type '") + in ParseOperationFind()
2354 TokError("could not determine type of the target string in !find"); in ParseOperationFind()
2366 TokError("could not determine type of the start position in !find"); in ParseOperationFind()
2370 TokError(Twine("expected int, got type '") + in ParseOperationFind()
2388 TokError("expected '(' after !foreach/!filter"); in ParseOperationForEachFilter()
2393 TokError("first argument of !foreach/!filter must be an identifier"); in ParseOperationForEachFilter()
2401 TokError((Twine("iteration variable '") + LHS->getAsString() + in ParseOperationForEachFilter()
2408 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
2417 TokError("expected ',' in !foreach/!filter"); in ParseOperationForEachFilter()
2423 TokError("could not get type of !foreach/!filter list or dag"); in ParseOperationForEachFilter()
2448 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
2461 TokError("!foreach must have a list or dag argument"); in ParseOperationForEachFilter()
2463 TokError("!filter must have a list argument"); in ParseOperationForEachFilter()
2485 TokError("expected ')' in !foreach/!filter"); in ParseOperationForEachFilter()
2493 TokError("could not get type of !foreach result expression"); in ParseOperationForEachFilter()
2511 TokError("expected '(' after !cond operator"); in ParseOperationCond()
2528 TokError("expected ':' following a condition in !cond operator"); in ParseOperationCond()
2541 TokError("expected ',' or ')' following a value in !cond operator"); in ParseOperationCond()
2547 TokError("there should be at least 1 'condition : value' in the !cond operator"); in ParseOperationCond()
2569 TokError(Twine("inconsistent types '") + Type->getAsString() + in ParseOperationCond()
2579 TokError("could not determine type for !cond from its arguments"); in ParseOperationCond()
2622 default: TokError("Unknown or reserved token when parsing a value"); break; in ParseSimpleValue()
2710 TokError("expected '}' at end of bit list value"); in ParseSimpleValue()
2760 TokError(Twine("Encountered a list when expecting a ") + in ParseSimpleValue()
2773 TokError("expected ']' at end of list value"); in ParseSimpleValue()
2787 TokError("expected '>' at end of list element type"); in ParseSimpleValue()
2800 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2813 TokError("Incompatible types in list elements"); in ParseSimpleValue()
2822 TokError("No type for list"); in ParseSimpleValue()
2830 TokError(Twine("Element type mismatch for list: element type '") + in ParseSimpleValue()
2845 TokError("expected identifier in dag init"); in ParseSimpleValue()
2856 TokError("expected variable name in dag operator"); in ParseSimpleValue()
2870 TokError("expected ')' in dag init"); in ParseSimpleValue()
2918 TokError("expected '}' at end of bit range list"); in ParseValue()
2955 TokError("expected ']' at end of list slice"); in ParseValue()
2962 TokError("expected field identifier after '.'"); in ParseValue()
2968 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
3110 TokError("expected variable name in dag literal"); in ParseDagArgList()
3172 TokError("Too many template arguments: " + utostr(ArgIndex + 1)); in ParseTemplateArgValueList()
3222 return TokError("Expected comma before next argument"); in ParseTemplateArgValueList()
3246 TokError("Expected identifier in declaration"); in ParseDeclaration()
3252 TokError("'" + Str + "' is a reserved variable name"); in ParseDeclaration()
3257 TokError("local variable of this name already exists"); in ParseDeclaration()
3313 TokError("Expected identifier in foreach declaration"); in ParseForeachDeclaration()
3322 TokError("Expected '=' in foreach declaration"); in ParseForeachDeclaration()
3334 TokError("expected '}' at end of bit range list"); in ParseForeachDeclaration()
3419 return TokError("expected '>' at end of template argument list"); in ParseTemplateArgList()
3446 return TokError("expected ';' after declaration"); in ParseBodyItem()
3452 return TokError("expected field identifier after let"); in ParseBodyItem()
3464 return TokError("expected '=' in let expression"); in ParseBodyItem()
3468 return TokError("Value '" + FieldName->getValue() + "' unknown!"); in ParseBodyItem()
3481 return TokError("expected ';' after let expression"); in ParseBodyItem()
3499 return TokError("Expected '{' to start body or ';' for declaration only"); in ParseBody()
3640 return TokError("expected identifier"); in ParseDefset()
3643 return TokError("def or global variable of this name already exists"); in ParseDefset()
3646 return TokError("expected '='"); in ParseDefset()
3648 return TokError("expected '{'"); in ParseDefset()
3659 TokError("expected '}' at end of defset"); in ParseDefset()
3677 return TokError("expected identifier"); in ParseDefvar()
3680 return TokError("local variable of this name already exists"); in ParseDefvar()
3686 return TokError("field of this name already exists"); in ParseDefvar()
3692 return TokError("def or global variable of this name already exists"); in ParseDefvar()
3696 return TokError("expected '='"); in ParseDefvar()
3703 return TokError("expected ';'"); in ParseDefvar()
3729 return TokError("expected declaration in for"); in ParseForeach()
3732 return TokError("Unknown tok"); in ParseForeach()
3754 TokError("expected '}' at end of foreach command"); in ParseForeach()
3785 return TokError("Unknown tok"); in ParseIf()
3865 TokError("expected '}' at end of '" + Kind + "' clause"); in ParseIfBody()
3887 TokError("expected ',' in assert statement"); in ParseAssert()
3896 return TokError("expected ';'"); in ParseAssert()
3915 return TokError("expected class name after 'class' keyword"); in ParseClass()
3923 return TokError("Class '" + CurRec->getNameInitAsString() + in ParseClass()
3962 TokError("expected identifier in let definition"); in ParseLetList()
3980 TokError("expected '=' in let expression"); in ParseLetList()
4013 return TokError("expected 'in' at end of top-level 'let'"); in ParseTopLevelLet()
4033 TokError("expected '}' at end of top level let command"); in ParseTopLevelLet()
4063 return TokError("expected identifier after multiclass for name"); in ParseMultiClass()
4071 return TokError("multiclass '" + Name + "' already defined"); in ParseMultiClass()
4109 return TokError("expected '{' in multiclass definition"); in ParseMultiClass()
4111 return TokError("expected ';' in multiclass definition"); in ParseMultiClass()
4114 return TokError("multiclass must contain at least one def"); in ParseMultiClass()
4119 return TokError("expected 'assert', 'def', 'defm', 'defvar', 'dump', " in ParseMultiClass()
4174 return TokError("expected ':' after defm identifier"); in ParseDefm()
4211 return TokError("expected identifier"); in ParseDefm()
4255 return TokError("expected ';' at end of defm"); in ParseDefm()
4274 return TokError( in ParseObject()
4287 return TokError("defset is not allowed inside multiclass"); in ParseObject()
4291 return TokError("class is not allowed inside multiclass"); in ParseObject()
4293 return TokError("class is not allowed inside foreach loop"); in ParseObject()
4297 return TokError("multiclass is not allowed inside foreach loop"); in ParseObject()
4323 return TokError("Unexpected token at top level"); in ParseFile()
4410 return TokError("expected ';'"); in ParseDump()