Home | History | Annotate | Download | only in AsmParser

Lines Matching defs:Error

187   bool Error(SMLoc L, const Twine &Msg,
189 return getParser().Error(L, Msg, Ranges);
3044 // If a recoverable error occurs, return 1. If an irrecoverable error
3045 // occurs, return -1. An irrecoverable error is one where tokens have been
3076 return Error(PrevOp->getStartLoc(), "shift must be of a register");
3095 Error(ImmLoc, "invalid immediate shift value");
3101 Error(ImmLoc, "invalid immediate shift value");
3111 Error(ImmLoc, "immediate shift value out of range");
3123 Error(L, "expected immediate or register in shift operand");
3127 Error(Parser.getTok().getLoc(),
3184 return Error(Parser.getTok().getLoc(), "']' expected");
3340 Error(Loc, "illegal expression");
3345 Error(Loc, "coprocessor option must be an immediate in range [0, 255]");
3418 return Error(RegLoc, "register expected");
3440 return Error(RegLoc, "invalid register in register list");
3456 return Error(AfterMinusLoc, "register expected");
3466 return Error(AfterMinusLoc, "invalid register in register list");
3469 return Error(AfterMinusLoc, "bad range in register list");
3485 return Error(RegLoc, "register expected");
3494 return Error(RegLoc, "invalid register in register list");
3500 return Error(RegLoc, "register list not in ascending order");
3510 return Error(RegLoc, "non-contiguous register range");
3520 return Error(Parser.getTok().getLoc(), "'}' expected");
3559 Error(Loc, "illegal expression");
3564 Error(Loc, "lane index must be empty or an integer");
3568 Error(Parser.getTok().getLoc(), "']' expected");
3577 Error(Parser.getTok().getLoc(), "lane index out of range");
3648 Error(S, "vector register expected");
3660 Error(RegLoc, "register expected");
3686 Error(Parser.getTok().getLoc(),
3694 Error(AfterMinusLoc, "register expected");
3706 Error(AfterMinusLoc, "invalid register in register list");
3711 Error(AfterMinusLoc, "bad range in register list");
3721 Error(AfterMinusLoc, "mismatched lane index in register list");
3735 Error(RegLoc, "register expected");
3748 Error(RegLoc,
3754 Error(RegLoc, "non-contiguous register range");
3767 Error(LaneLoc, "mismatched lane index in register list");
3780 Error(RegLoc, "non-contiguous register range");
3791 Error(EndLoc, "mismatched lane index in register list");
3797 Error(Parser.getTok().getLoc(), "'}' expected");
3888 Error(Loc, "illegal expression");
3894 Error(Loc, "constant expression expected");
3900 Error(Loc, "immediate value out of range");
3938 Error(Loc, "illegal expression");
3944 Error(Loc, "constant expression expected");
3950 Error(Loc, "immediate value out of range");
4194 Error(Parser.getTok().getLoc(), Op + " operand expected.");
4201 Error(Parser.getTok().getLoc(), Op + " operand expected.");
4209 Error(Parser.getTok().getLoc(), "'#' expected");
4218 Error(Loc, "illegal expression");
4223 Error(Loc, "constant expression expected");
4228 Error(Loc, "immediate value out of range");
4243 Error(S, "'be' or 'le' operand expected");
4253 Error(S, "'be' or 'le' operand expected");
4273 Error(S, "shift operator 'asr' or 'lsl' expected");
4283 Error(S, "shift operator 'asr' or 'lsl' expected");
4291 Error(Parser.getTok().getLoc(), "'#' expected");
4300 Error(ExLoc, "malformed shift expression");
4305 Error(ExLoc, "shift amount must be an immediate");
4313 Error(ExLoc, "'asr' shift amount must be in range [1,32]");
4318 Error(ExLoc, "'asr #32' shift amount not allowed in Thumb mode");
4325 Error(ExLoc, "'lsr' shift amount must be in range [0,31]");
4353 Error(Parser.getTok().getLoc(), "'#' expected");
4362 Error(ExLoc, "malformed rotate expression");
4367 Error(ExLoc, "rotate amount must be an immediate");
4376 Error(ExLoc, "'ror' rotate amount must be 8, 16, or 24");
4421 Error(Sx1, "malformed expression");
4458 Error(Sx1, "expected modified immediate operand: #[0, 255], #even[0-30]");
4463 Error(Sx1, "immediate operand must a number in the range [0, 255]");
4481 Error(Sx2, "malformed expression");
4494 Error(Sx2, "immediate operand must an even number in the range [0, 30]");
4497 Error(Sx2, "constant expression expected");
4509 Error(Parser.getTok().getLoc(), "'#' expected");
4517 Error(E, "malformed immediate expression");
4522 Error(E, "'lsb' operand must be an immediate");
4529 Error(E, "'lsb' operand must be in the range [0,31]");
4536 Error(Parser.getTok().getLoc(), "too few operands");
4542 Error(Parser.getTok().getLoc(), "'#' expected");
4550 Error(E, "malformed immediate expression");
4555 Error(E, "'width' operand must be an immediate");
4562 Error(E, "'width' operand must be in the range [1,32-lsb]");
4600 Error(Parser.getTok().getLoc(), "register expected");
4651 Error(S, "constant expression expected");
4682 Error(Tok.getLoc(), "register expected");
4770 /// or an error. The first token must be a '[' when called.
4782 return Error(BaseRegTok.getLoc(), "register expected");
4788 return Error(Tok.getLoc(), "malformed memory operand");
4829 return Error (E, "constant expression expected");
4834 return Error(E,
4845 return Error(Parser.getTok().getLoc(), "']' expected");
4885 return Error (E, "constant expression expected");
4894 return Error(Parser.getTok().getLoc(), "']' expected");
4927 return Error(E, "register expected");
4940 return Error(Parser.getTok().getLoc(), "']' expected");
4982 return Error(Loc, "illegal shift operator");
4993 return Error(HashTok.getLoc(), "'#' expected");
5004 return Error(Loc, "shift amount must be an immediate");
5009 return Error(Loc, "immediate shift value out of range");
5087 Error(Loc, "encoded floating point value out of range");
5099 Error(Loc, "invalid floating point immediate");
5115 // there was a match, but an error occurred, in which case, just return that
5122 Error(Parser.getTok().getLoc(), "unexpected token in operand");
5135 else if (Res == -1) // irrecoverable error
5221 return Error(Parser.getTok().getLoc(), "unexpected token in operand");
5251 Error(Parser.getTok().getLoc(), "expected prefix identifier in operand");
5277 Error(Parser.getTok().getLoc(), "unexpected prefix in operand");
5295 Error(Parser.getTok().getLoc(),
5304 Error(Parser.getTok().getLoc(), "unexpected token after prefix");
5673 // We always return 'error' for this, as we're done with this
5693 return Error(NameLoc, "conditional execution not supported in Thumb1");
5707 return Error(Loc, "too many conditions on IT instruction");
5714 return Error(Loc, "illegal IT block condition mask '" + ITMask + "'");
5732 // appropriate error.
5737 // error.
5740 return Error(NameLoc, "instruction '" + Mnemonic +
5744 // error.
5747 return Error(NameLoc, "instruction '" + Mnemonic +
5772 return Error(NameLoc, "instruction 'cps' requires effect for M-class");
5787 // For for ARM mode generate an error if the .n qualifier is used.
5791 return Error(Loc, "instruction with .n (narrow) qualifier not allowed in "
5826 return Error(Loc, "unexpected token in argument list");
5834 return Error(Op.getStartLoc(),
5837 return Error(Op.getStartLoc(),
5891 Error(Op2.getStartLoc(), isLoad
6034 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6037 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6040 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6056 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6059 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6062 return Error(Operands[ListNo + HasWritebackToken]->getStartLoc(),
6084 return Error(Loc, "instructions in IT block must be predicable");
6094 return Error(CondLoc, "incorrect condition in IT block; got '" +
6104 return Error(Loc, "predicated instructions must be in IT block");
6115 return Error(Operands[3]->getStartLoc(),
6121 return Error(Operands[3]->getStartLoc(),
6127 return Error(Operands[3]->getStartLoc(),
6135 return Error(Operands[3]->getStartLoc(),
6149 return Error(Operands[3]->getStartLoc(),
6157 return Error(Operands[2]->getStartLoc(),
6166 return Error(Operands[3]->getStartLoc(),
6176 return Error(Operands[3]->getStartLoc(),
6195 return Error(Operands[3]->getStartLoc(),
6218 return Error(Operands[3]->getStartLoc(),
6228 return Error(Operands[5]->getStartLoc(),
6246 return Error(Operands[3 + HasWritebackToken]->getStartLoc(),
6250 return Error(Operands[2]->getStartLoc(),
6255 return Error(Operands[3]->getStartLoc(),
6272 return Error(Operands.back()->getStartLoc(),
6290 return Error(Operands.back()->getStartLoc(),
6307 return Error(Operands[4]->getStartLoc(),
6315 return Error(Operands[2]->getStartLoc(),
6330 return Error(Operands[3]->getStartLoc(),
6342 return Error(Operands[2]->getStartLoc(),
6352 return Error(Operands[2]->getStartLoc(),
6363 return Error(Operands[4]->getStartLoc(),
6369 return Error(Operands[4]->getStartLoc(),
6379 // same, we need thumb2 (for the wide encoding), or we have an error.
6382 return Error(Operands[4]->getStartLoc(),
6390 return Error(Operands[2]->getStartLoc(), "branch target out of range");
6395 return Error(Operands[op]->getStartLoc(), "branch target out of range");
6401 return Error(Operands[2]->getStartLoc(), "branch target out of range");
6406 return Error(Operands[Op]->getStartLoc(), "branch target out of range");
6428 return Error(
8228 // an error in validateInstruction().
8252 // should have generated an error in validateInstruction().
8267 // should have generated an error in validateInstruction().
8629 // Special case the error message for the very common case where only
8640 return Error(IDLoc, Msg);
8646 return Error(IDLoc, "too few operands for instruction");
8652 return Error(ErrorLoc, "invalid operand for instruction");
8655 return Error(IDLoc, "invalid instruction",
8658 return Error(IDLoc, "flag setting instruction only valid outside IT block");
8660 return Error(IDLoc, "instruction only valid inside IT block");
8662 return Error(IDLoc, "instruction variant requires ARMv6 or later");
8664 return Error(IDLoc, "instruction variant requires Thumb2");
8668 return Error(ErrorLoc, "immediate operand must be in the range [0,15]");
8673 return Error(ErrorLoc, "immediate operand must be in the range [0,239]");
8694 return Error(ErrorLoc, "alignment must be omitted");
8697 return Error(ErrorLoc, "alignment must be 16 or omitted");
8700 return Error(ErrorLoc, "alignment must be 32 or omitted");
8703 return Error(ErrorLoc, "alignment must be 64 or omitted");
8706 return Error(ErrorLoc, "alignment must be 64, 128 or omitted");
8708 return Error(ErrorLoc, "alignment must be 64, 128, 256 or omitted");
8820 Error(L, "unexpected token in directive");
8836 Error(L, "unexpected token in directive");
8842 Error(L, "target does not support Thumb mode");
8858 Error(L, "unexpected token in directive");
8864 Error(L, "target does not support ARM mode");
8895 Error(L, "unexpected token in .thumb_func directive");
8908 Error(Parser.getTok().getLoc(), "unexpected token in directive");
8923 Error(L, "unexpected token in .syntax directive");
8931 Error(L, "'.syntax divided' arm asssembly not supported");
8934 Error(L, "unrecognized syntax mode in .syntax directive");
8939 Error(Parser.getTok().getLoc(), "unexpected token in directive");
8955 Error(L, "unexpected token in .code directive");
8960 Error(L, "invalid operand to .code directive");
8966 Error(Parser.getTok().getLoc(), "unexpected token in directive");
8973 Error(L, "target does not support Thumb mode");
8982 Error(L, "target does not support ARM mode");
9003 Error(SRegLoc, "register name expected");
9010 Error(Parser.getTok().getLoc(), "unexpected input in .req directive.");
9017 Error(SRegLoc, "redefinition of '" + Name + "' does not match original.");
9030 Error(L, "unexpected input in .unreq directive.");
9052 Error(L, "Unknown arch name");
9072 Error(TagLoc, "attribute name not recognised: " + Name);
9088 Error(TagLoc, "expected numeric constant");
9097 Error(Parser.getTok().getLoc(), "comma expected");
9131 Error(ValueExprLoc, "expected numeric constant");
9143 Error(Parser.getTok().getLoc(), "comma expected");
9153 Error(Parser.getTok().getLoc(), "bad string constant");
9179 Error(L, "Unknown CPU name");
9257 Error(FPUNameLoc, "Unknown FPU name");
9281 Error(L, ".fnstart starts before the end of previous one");
9300 Error(L, ".fnstart must precede .fnend directive");
9318 Error(L, ".fnstart must precede .cantunwind directive");
9322 Error(L, ".cantunwind can't be used with .handlerdata directive");
9327 Error(L, ".cantunwind can't be used with .personality directive");
9346 Error(L, ".fnstart must precede .personality directive");
9350 Error(L, ".personality can't be used with .cantunwind directive");
9355 Error(L, ".personality must precede .handlerdata directive");
9361 Error(L, "multiple personality directives");
9369 Error(L, "unexpected input in .personality directive.");
9387 Error(L, ".fnstart must precede .personality directive");
9391 Error(L, ".handlerdata can't be used with .cantunwind directive");
9406 Error(L, ".fnstart must precede .setfp directive");
9410 Error(L, ".setfp must precede .handlerdata directive");
9418 Error(FPRegLoc, "frame pointer register expected");
9424 Error(Parser.getTok().getLoc(), "comma expected");
9433 Error(SPRegLoc, "stack pointer register expected");
9438 Error(SPRegLoc, "register should be either $sp or the latest fp register");
9452 Error(Parser.getTok().getLoc(), "'#' expected");
9461 Error(ExLoc, "malformed setfp offset");
9466 Error(ExLoc, "setfp offset must be an immediate");
9484 Error(L, ".fnstart must precede .pad directive");
9488 Error(L, ".pad must precede .handlerdata directive");
9495 Error(Parser.getTok().getLoc(), "'#' expected");
9504 Error(ExLoc, "malformed pad offset");
9509 Error(ExLoc, "pad offset must be an immediate");
9523 Error(L, ".fnstart must precede .save or .vsave directives");
9527 Error(L, ".save or .vsave must precede .handlerdata directive");
9539 Error(L, ".save expects GPR registers");
9543 Error(L, ".vsave expects DPR registers");
9569 Error(Loc, "cannot determine Thumb instruction size, "
9576 Error(Loc, "width suffixes are invalid in ARM mode");
9584 Error(Loc, "expected expression following directive");
9592 Error(Loc, "expected expression");
9598 Error(Loc, "expected constant expression");
9605 Error(Loc, "inst.n operand is too big, use inst.w instead");
9611 Error(Loc,
9626 Error(Loc, "unexpected token in directive");
9676 Error(L, ".fnstart must precede .personalityindex directive");
9681 Error(L, ".personalityindex cannot be used with .cantunwind");
9687 Error(L, ".personalityindex must precede .handlerdata directive");
9693 Error(L, "multiple personality directives");
9708 Error(IndexLoc, "index must be a constant number");
9714 Error(IndexLoc, "personality routine index should be in range [0-3]");
9728 Error(L, ".fnstart must precede .unwind_raw directives");
9738 Error(OffsetLoc, "expected expression");
9745 Error(OffsetLoc, "offset must be a constant");
9753 Error(getLexer().getLoc(), "expected comma");
9765 Error(OpcodeLoc, "expected opcode expression");
9772 Error(OpcodeLoc, "opcode value must be a constant");
9779 Error(OpcodeLoc, "invalid opcode");
9790 Error(getLexer().getLoc(), "unexpected token in directive");
9821 Error(Parser.getTok().getLoc(), "unexpected token");
9836 Error(L, ".fnstart must precede .movsp directives");
9841 Error(L, "unexpected .movsp directive");
9849 Error(SPRegLoc, "register expected");
9855 Error(SPRegLoc, "sp and pc are not permitted in .movsp directive");
9864 Error(Parser.getTok().getLoc(), "expected #constant");
9874 Error(OffsetLoc, "malformed offset expression");
9881 Error(OffsetLoc, "offset must be an immediate constant");
9899 Error(getLexer().getLoc(), "unexpected token");
9919 Error(ArchLoc, "unknown architecture '" + Arch + "'");
9927 Error(getLexer().getLoc(), "unexpected token");
10037 Error(getLexer().getLoc(), "unexpected token");
10060 Error(ExtLoc, "architectural extension '" + Name + "' is not "
10074 Error(ExtLoc, "unknown architectural extension: " + Name);