Home | History | Annotate | Download | only in AsmParser

Lines Matching defs:Error

187   bool Error(SMLoc L, const Twine &Msg,
189 return Parser.Error(L, Msg, Ranges);
2933 // If a recoverable error occurs, return 1. If an irrecoverable error
2934 // occurs, return -1. An irrecoverable error is one where tokens have been
2964 return Error(PrevOp->getStartLoc(), "shift must be of a register");
2983 Error(ImmLoc, "invalid immediate shift value");
2989 Error(ImmLoc, "invalid immediate shift value");
2999 Error(ImmLoc, "immediate shift value out of range");
3011 Error(L, "expected immediate or register in shift operand");
3015 Error(Parser.getTok().getLoc(),
3071 return Error(Parser.getTok().getLoc(), "']' expected");
3219 Error(Loc, "illegal expression");
3224 Error(Loc, "coprocessor option must be an immediate in range [0, 255]");
3296 return Error(RegLoc, "register expected");
3318 return Error(RegLoc, "invalid register in register list");
3334 return Error(AfterMinusLoc, "register expected");
3344 return Error(AfterMinusLoc, "invalid register in register list");
3347 return Error(AfterMinusLoc, "bad range in register list");
3363 return Error(RegLoc, "register expected");
3372 return Error(RegLoc, "invalid register in register list");
3378 return Error(RegLoc, "register list not in ascending order");
3388 return Error(RegLoc, "non-contiguous register range");
3398 return Error(Parser.getTok().getLoc(), "'}' expected");
3436 Error(Loc, "illegal expression");
3441 Error(Loc, "lane index must be empty or an integer");
3445 Error(Parser.getTok().getLoc(), "']' expected");
3454 Error(Parser.getTok().getLoc(), "lane index out of range");
3524 Error(S, "vector register expected");
3536 Error(RegLoc, "register expected");
3562 Error(Parser.getTok().getLoc(),
3570 Error(AfterMinusLoc, "register expected");
3582 Error(AfterMinusLoc, "invalid register in register list");
3587 Error(AfterMinusLoc, "bad range in register list");
3597 Error(AfterMinusLoc, "mismatched lane index in register list");
3611 Error(RegLoc, "register expected");
3624 Error(RegLoc,
3630 Error(RegLoc, "non-contiguous register range");
3643 Error(LaneLoc, "mismatched lane index in register list");
3656 Error(RegLoc, "non-contiguous register range");
3667 Error(EndLoc, "mismatched lane index in register list");
3673 Error(Parser.getTok().getLoc(), "'}' expected");
3763 Error(Loc, "illegal expression");
3769 Error(Loc, "constant expression expected");
3775 Error(Loc, "immediate value out of range");
3812 Error(Loc, "illegal expression");
3818 Error(Loc, "constant expression expected");
3824 Error(Loc, "immediate value out of range");
4006 Error(Parser.getTok().getLoc(), Op + " operand expected.");
4013 Error(Parser.getTok().getLoc(), Op + " operand expected.");
4021 Error(Parser.getTok().getLoc(), "'#' expected");
4030 Error(Loc, "illegal expression");
4035 Error(Loc, "constant expression expected");
4040 Error(Loc, "immediate value out of range");
4054 Error(S, "'be' or 'le' operand expected");
4064 Error(S, "'be' or 'le' operand expected");
4083 Error(S, "shift operator 'asr' or 'lsl' expected");
4093 Error(S, "shift operator 'asr' or 'lsl' expected");
4101 Error(Parser.getTok().getLoc(), "'#' expected");
4110 Error(ExLoc, "malformed shift expression");
4115 Error(ExLoc, "shift amount must be an immediate");
4123 Error(ExLoc, "'asr' shift amount must be in range [1,32]");
4128 Error(ExLoc, "'asr #32' shift amount not allowed in Thumb mode");
4135 Error(ExLoc, "'lsr' shift amount must be in range [0,31]");
4162 Error(Parser.getTok().getLoc(), "'#' expected");
4171 Error(ExLoc, "malformed rotate expression");
4176 Error(ExLoc, "rotate amount must be an immediate");
4185 Error(ExLoc, "'ror' rotate amount must be 8, 16, or 24");
4200 Error(Parser.getTok().getLoc(), "'#' expected");
4208 Error(E, "malformed immediate expression");
4213 Error(E, "'lsb' operand must be an immediate");
4220 Error(E, "'lsb' operand must be in the range [0,31]");
4227 Error(Parser.getTok().getLoc(), "too few operands");
4233 Error(Parser.getTok().getLoc(), "'#' expected");
4241 Error(E, "malformed immediate expression");
4246 Error(E, "'width' operand must be an immediate");
4253 Error(E, "'width' operand must be in the range [1,32-lsb]");
4290 Error(Parser.getTok().getLoc(), "register expected");
4340 Error(S, "constant expression expected");
4371 Error(Tok.getLoc(), "register expected");
4459 /// or an error. The first token must be a '[' when called.
4470 return Error(BaseRegTok.getLoc(), "register expected");
4476 return Error(Tok.getLoc(), "malformed memory operand");
4517 return Error (E, "constant expression expected");
4522 return Error(E,
4533 return Error(Parser.getTok().getLoc(), "']' expected");
4573 return Error (E, "constant expression expected");
4582 return Error(Parser.getTok().getLoc(), "']' expected");
4615 return Error(E, "register expected");
4628 return Error(Parser.getTok().getLoc(), "']' expected");
4669 return Error(Loc, "illegal shift operator");
4680 return Error(HashTok.getLoc(), "'#' expected");
4691 return Error(Loc, "shift amount must be an immediate");
4696 return Error(Loc, "immediate shift value out of range");
4773 Error(Loc, "encoded floating point value out of range");
4785 Error(Loc, "invalid floating point immediate");
4800 // there was a match, but an error occurred, in which case, just return that
4807 Error(Parser.getTok().getLoc(), "unexpected token in operand");
4820 else if (Res == -1) // irrecoverable error
4906 return Error(Parser.getTok().getLoc(), "unexpected token in operand");
4935 Error(Parser.getTok().getLoc(), "expected prefix identifier in operand");
4945 Error(Parser.getTok().getLoc(), "unexpected prefix in operand");
4951 Error(Parser.getTok().getLoc(), "unexpected token after prefix");
5320 // We always return 'error' for this, as we're done with this
5340 return Error(NameLoc, "conditional execution not supported in Thumb1");
5354 return Error(Loc, "too many conditions on IT instruction");
5361 return Error(Loc, "illegal IT block condition mask '" + ITMask + "'");
5379 // appropriate error.
5384 // error.
5387 return Error(NameLoc, "instruction '" + Mnemonic +
5391 // error.
5394 return Error(NameLoc, "instruction '" + Mnemonic +
5432 // For for ARM mode generate an error if the .n qualifier is used.
5436 return Error(Loc, "instruction with .n (narrow) qualifier not allowed in "
5471 return Error(Loc, "unexpected token in argument list");
5479 return Error(Op.getStartLoc(),
5482 return Error(Op.getStartLoc(),
5536 Error(Op2.getStartLoc(), isLoad
5643 return Error(Loc, "instructions in IT block must be predicable");
5653 return Error(CondLoc, "incorrect condition in IT block; got '" +
5663 return Error(Loc, "predicated instructions must be in IT block");
5674 return Error(Operands[3]->getStartLoc(),
5680 return Error(Operands[3]->getStartLoc(),
5686 return Error(Operands[3]->getStartLoc(),
5694 return Error(Operands[3]->getStartLoc(),
5708 return Error(Operands[3]->getStartLoc(),
5717 return Error(Operands[3]->getStartLoc(),
5727 return Error(Operands[3]->getStartLoc(),
5737 return Error(Operands[5]->getStartLoc(),
5755 return Error(Operands[3 + HasWritebackToken]->getStartLoc(),
5759 return Error(Operands[2]->getStartLoc(),
5764 return Error(Operands[3]->getStartLoc(),
5784 return Error(Operands.back()->getStartLoc(),
5793 return Error(Operands[4]->getStartLoc(),
5801 return Error(Operands[2]->getStartLoc(),
5816 return Error(Operands[3]->getStartLoc(),
5828 return Error(Operands[2]->getStartLoc(),
5836 return Error(Operands[2]->getStartLoc(),
5845 return Error(Operands[4]->getStartLoc(),
5851 return Error(Operands[4]->getStartLoc(),
5858 // same, we need thumb2 (for the wide encoding), or we have an error.
5861 return Error(Operands[4]->getStartLoc(),
5869 return Error(Operands[2]->getStartLoc(), "branch target out of range");
5874 return Error(Operands[op]->getStartLoc(), "branch target out of range");
5880 return Error(Operands[2]->getStartLoc(), "branch target out of range");
5885 return Error(Operands[Op]->getStartLoc(), "branch target out of range");
5907 return Error(
7683 // an error in validateInstruction().
7707 // should have generated an error in validateInstruction().
7722 // should have generated an error in validateInstruction().
8085 // Special case the error message for the very common case where only
8096 return Error(IDLoc, Msg);
8102 return Error(IDLoc, "too few operands for instruction");
8108 return Error(ErrorLoc, "invalid operand for instruction");
8111 return Error(IDLoc, "invalid instruction",
8114 return Error(IDLoc, "flag setting instruction only valid outside IT block");
8116 return Error(IDLoc, "instruction only valid inside IT block");
8118 return Error(IDLoc, "instruction variant requires ARMv6 or later");
8120 return Error(IDLoc, "instruction variant requires Thumb2");
8124 return Error(ErrorLoc, "immediate operand must be in the range [0,15]");
8129 return Error(ErrorLoc, "immediate operand must be in the range [0,239]");
8150 return Error(ErrorLoc, "alignment must be omitted");
8153 return Error(ErrorLoc, "alignment must be 16 or omitted");
8156 return Error(ErrorLoc, "alignment must be 32 or omitted");
8159 return Error(ErrorLoc, "alignment must be 64 or omitted");
8162 return Error(ErrorLoc, "alignment must be 64, 128 or omitted");
8164 return Error(ErrorLoc, "alignment must be 64, 128, 256 or omitted");
8274 Error(L, "unexpected token in directive");
8289 Error(L, "unexpected token in directive");
8295 Error(L, "target does not support Thumb mode");
8310 Error(L, "unexpected token in directive");
8316 Error(L, "target does not support ARM mode");
8346 Error(L, "unexpected token in .thumb_func directive");
8359 Error(L, "unexpected token in directive");
8372 Error(L, "unexpected token in .syntax directive");
8380 Error(L, "'.syntax divided' arm asssembly not supported");
8383 Error(L, "unrecognized syntax mode in .syntax directive");
8388 Error(Parser.getTok().getLoc(), "unexpected token in directive");
8403 Error(L, "unexpected token in .code directive");
8408 Error(L, "invalid operand to .code directive");
8414 Error(Parser.getTok().getLoc(), "unexpected token in directive");
8421 Error(L, "target does not support Thumb mode");
8430 Error(L, "target does not support ARM mode");
8450 Error(SRegLoc, "register name expected");
8457 Error(Parser.getTok().getLoc(), "unexpected input in .req directive.");
8464 Error(SRegLoc, "redefinition of '" + Name + "' does not match original.");
8476 Error(L, "unexpected input in .unreq directive.");
8498 Error(L, "Unknown arch name");
8517 Error(TagLoc, "attribute name not recognised: " + Name);
8533 Error(TagLoc, "expected numeric constant");
8542 Error(Parser.getTok().getLoc(), "comma expected");
8576 Error(ValueExprLoc, "expected numeric constant");
8593 Error(Parser.getTok().getLoc(), "bad string constant");
8631 Error(L, "Unknown FPU name");
8643 Error(L, ".fnstart starts before the end of previous one");
8662 Error(L, ".fnstart must precede .fnend directive");
8680 Error(L, ".fnstart must precede .cantunwind directive");
8684 Error(L, ".cantunwind can't be used with .handlerdata directive");
8689 Error(L, ".cantunwind can't be used with .personality directive");
8707 Error(L, ".fnstart must precede .personality directive");
8711 Error(L, ".personality can't be used with .cantunwind directive");
8716 Error(L, ".personality must precede .handlerdata directive");
8722 Error(L, "multiple personality directives");
8730 Error(L, "unexpected input in .personality directive.");
8748 Error(L, ".fnstart must precede .personality directive");
8752 Error(L, ".handlerdata can't be used with .cantunwind directive");
8766 Error(L, ".fnstart must precede .setfp directive");
8770 Error(L, ".setfp must precede .handlerdata directive");
8778 Error(FPRegLoc, "frame pointer register expected");
8784 Error(Parser.getTok().getLoc(), "comma expected");
8793 Error(SPRegLoc, "stack pointer register expected");
8798 Error(SPRegLoc, "register should be either $sp or the latest fp register");
8812 Error(Parser.getTok().getLoc(), "'#' expected");
8821 Error(ExLoc, "malformed setfp offset");
8826 Error(ExLoc, "setfp offset must be an immediate");
8843 Error(L, ".fnstart must precede .pad directive");
8847 Error(L, ".pad must precede .handlerdata directive");
8854 Error(Parser.getTok().getLoc(), "'#' expected");
8863 Error(ExLoc, "malformed pad offset");
8868 Error(ExLoc, "pad offset must be an immediate");
8882 Error(L, ".fnstart must precede .save or .vsave directives");
8886 Error(L, ".save or .vsave must precede .handlerdata directive");
8898 Error(L, ".save expects GPR registers");
8902 Error(L, ".vsave expects DPR registers");
8927 Error(Loc, "cannot determine Thumb instruction size, "
8934 Error(Loc, "width suffixes are invalid in ARM mode");
8942 Error(Loc, "expected expression following directive");
8950 Error(Loc, "expected expression");
8956 Error(Loc, "expected constant expression");
8963 Error(Loc, "inst.n operand is too big, use inst.w instead");
8969 Error(Loc,
8984 Error(Loc, "unexpected token in directive");
9033 Error(L, ".fnstart must precede .personalityindex directive");
9038 Error(L, ".personalityindex cannot be used with .cantunwind");
9044 Error(L, ".personalityindex must precede .handlerdata directive");
9050 Error(L, "multiple personality directives");
9065 Error(IndexLoc, "index must be a constant number");
9071 Error(IndexLoc, "personality routine index should be in range [0-3]");
9084 Error(L, ".fnstart must precede .unwind_raw directives");
9094 Error(OffsetLoc, "expected expression");
9101 Error(OffsetLoc, "offset must be a constant");
9109 Error(getLexer().getLoc(), "expected comma");
9121 Error(OpcodeLoc, "expected opcode expression");
9128 Error(OpcodeLoc, "opcode value must be a constant");
9135 Error(OpcodeLoc, "invalid opcode");
9146 Error(getLexer().getLoc(), "unexpected token in directive");
9175 Error(Parser.getTok().getLoc(), "unexpected token");
9189 Error(L, ".fnstart must precede .movsp directives");
9194 Error(L, "unexpected .movsp directive");
9202 Error(SPRegLoc, "register expected");
9208 Error(SPRegLoc, "sp and pc are not permitted in .movsp directive");
9217 Error(Parser.getTok().getLoc(), "expected #constant");
9227 Error(OffsetLoc, "malformed offset expression");
9234 Error(OffsetLoc, "offset must be an immediate constant");
9251 Error(getLexer().getLoc(), "unexpected token");
9271 Error(ArchLoc, "unknown architecture '" + Arch + "'");
9279 Error(getLexer().getLoc(), "unexpected token");
9385 Error(getLexer().getLoc(), "unexpected token");
9406 Error(ExtLoc, "architectural extension '" + Extension + "' is not "
9423 Error(ExtLoc, "unknown architectural extension: " + Extension);