Lines Matching refs:IDLoc
106 bool finishBundle(SMLoc IDLoc, MCStreamer &Out);
108 bool matchOneInstruction(MCInst &MCB, SMLoc IDLoc,
112 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
117 void OutOfRange(SMLoc IDLoc, long long Val, long long Max);
119 SMLoc IDLoc);
620 bool HexagonAsmParser::finishBundle(SMLoc IDLoc, MCStreamer &Out) { in finishBundle() argument
640 Error(IDLoc, in finishBundle()
645 Error(IDLoc, "register `" + R + in finishBundle()
650 Error(IDLoc, "register `" + R + "' modified more than once"); in finishBundle()
653 Error(IDLoc, "cannot write to read-only register `" + R + "'"); in finishBundle()
656 Error(IDLoc, "loop-setup and some branch instructions " in finishBundle()
661 Error(IDLoc, "packet marked with `:endloop" + N + "' " + in finishBundle()
667 Error(IDLoc, in finishBundle()
671 Error(IDLoc, "too many slots used in packet"); in finishBundle()
677 Error(IDLoc, "invalid instruction packet"); in finishBundle()
679 Error(IDLoc, "invalid instruction packet: too many stores"); in finishBundle()
681 Error(IDLoc, "invalid instruction packet: too many loads"); in finishBundle()
683 Error(IDLoc, "too many branches in packet"); in finishBundle()
685 Error(IDLoc, "invalid instruction packet: out of slots"); in finishBundle()
687 Error(IDLoc, "invalid instruction packet: slot error"); in finishBundle()
689 Error(IDLoc, "v60 packet violation"); in finishBundle()
691 Error(IDLoc, "slot 0 instruction does not allow slot 1 store"); in finishBundle()
693 Error(IDLoc, "unknown error in instruction packet"); in finishBundle()
700 Warning(IDLoc, "register `" + R + "' used with `.cur' " in finishBundle()
703 Warning(IDLoc, "register `" + R + "' used with `.tmp' " in finishBundle()
709 MCB.setLoc(IDLoc); in finishBundle()
721 Error(IDLoc, "invalid instruction packet: out of slots"); in finishBundle()
771 bool HexagonAsmParser::matchOneInstruction(MCInst &MCI, SMLoc IDLoc, in matchOneInstruction() argument
779 MCI.setLoc(IDLoc); in matchOneInstruction()
781 result = processInstruction(MCI, InstOperands, IDLoc); in matchOneInstruction()
787 MCI.setLoc(IDLoc); in matchOneInstruction()
800 return Error(IDLoc, "invalid instruction"); in matchOneInstruction()
802 return Error(IDLoc, "unrecognized instruction"); in matchOneInstruction()
804 SMLoc ErrorLoc = IDLoc; in matchOneInstruction()
807 return Error(IDLoc, "too few operands for instruction"); in matchOneInstruction()
812 ErrorLoc = IDLoc; in matchOneInstruction()
819 bool HexagonAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction() argument
832 getParser().Error(IDLoc, "Already in a packet"); in MatchAndEmitInstruction()
841 getParser().Error(IDLoc, "Not in a packet"); in MatchAndEmitInstruction()
847 return finishBundle(IDLoc, Out); in MatchAndEmitInstruction()
850 if (matchOneInstruction(*SubInst, IDLoc, Operands, ErrorInfo, in MatchAndEmitInstruction()
857 return finishBundle(IDLoc, Out); in MatchAndEmitInstruction()
1513 void HexagonAsmParser::OutOfRange(SMLoc IDLoc, long long Val, long long Max) { in OutOfRange() argument
1521 Error(IDLoc, ES.str().c_str()); in OutOfRange()
1526 SMLoc IDLoc) { in processInstruction() argument
1789 OutOfRange(IDLoc, s8, -128); in processInstruction()
1814 OutOfRange(IDLoc, s8, -128); in processInstruction()
1828 OutOfRange(IDLoc, s8, -128); in processInstruction()