Lines Matching defs:RegNo
749 bool OmitRegisterFromClobberLists(unsigned RegNo) override;
815 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
817 void SetFrameRegister(unsigned RegNo) override;
892 bool X86AsmParser::ParseRegister(unsigned &RegNo,
895 RegNo = 0;
913 RegNo = MatchRegisterName(Tok.getString());
916 if (RegNo == 0)
917 RegNo = MatchRegisterName(Tok.getString().lower());
921 if (isParsingInlineAsm() && isParsingIntelSyntax() && RegNo == X86::EFLAGS)
922 RegNo = 0;
930 if (RegNo == X86::RIZ ||
931 X86MCRegisterClasses[X86::GR64RegClassID].contains(RegNo) ||
932 X86II::isX86_64NonExtLowByteReg(RegNo) ||
933 X86II::isX86_64ExtendedReg(RegNo))
940 if (RegNo == 0 && (Tok.getString() == "st" || Tok.getString() == "ST")) {
941 RegNo = X86::ST0;
954 case 0: RegNo = X86::ST0; break;
955 case 1: RegNo = X86::ST1; break;
956 case 2: RegNo = X86::ST2; break;
957 case 3: RegNo = X86::ST3; break;
958 case 4: RegNo = X86::ST4; break;
959 case 5: RegNo = X86::ST5; break;
960 case 6: RegNo = X86::ST6; break;
961 case 7: RegNo = X86::ST7; break;
977 if (RegNo == 0 && Tok.getString().size() == 3 &&
980 case '0': RegNo = X86::DR0; break;
981 case '1': RegNo = X86::DR1; break;
982 case '2': RegNo = X86::DR2; break;
983 case '3': RegNo = X86::DR3; break;
984 case '4': RegNo = X86::DR4; break;
985 case '5': RegNo = X86::DR5; break;
986 case '6': RegNo = X86::DR6; break;
987 case '7': RegNo = X86::DR7; break;
990 if (RegNo != 0) {
997 if (RegNo == 0) {
1007 void X86AsmParser::SetFrameRegister(unsigned RegNo) {
1008 Instrumentation->SetInitialFrameRegister(RegNo);
1629 unsigned RegNo =
1631 return X86Operand::CreateReg(RegNo, Start, End, /*GetAddress=*/true,
1758 unsigned RegNo = 0;
1759 if (!ParseRegister(RegNo, Start, End)) {
1769 return X86Operand::CreateReg(RegNo, Start, End);
1772 return ParseIntelSegmentOverride(/*SegReg=*/RegNo, Start, Size);
1787 unsigned RegNo;
1789 if (ParseRegister(RegNo, Start, End)) return nullptr;
1790 if (RegNo == X86::EIZ || RegNo == X86::RIZ) {
1799 return X86Operand::CreateReg(RegNo, Start, End);
1801 if (!X86MCRegisterClasses[X86::SEGMENT_REGRegClassID].contains(RegNo))
1805 return ParseMemOperand(RegNo, Start);
2816 bool X86AsmParser::OmitRegisterFromClobberLists(unsigned RegNo) {
2817 return X86MCRegisterClasses[X86::SEGMENT_REGRegClassID].contains(RegNo);