Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:RegNo

752   bool OmitRegisterFromClobberLists(unsigned RegNo) override;
813 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
815 void SetFrameRegister(unsigned RegNo) override;
869 bool X86AsmParser::ParseRegister(unsigned &RegNo,
872 RegNo = 0;
890 RegNo = MatchRegisterName(Tok.getString());
893 if (RegNo == 0)
894 RegNo = MatchRegisterName(Tok.getString().lower());
898 if (isParsingInlineAsm() && isParsingIntelSyntax() && RegNo == X86::EFLAGS)
899 RegNo = 0;
907 if (RegNo == X86::RIZ ||
908 X86MCRegisterClasses[X86::GR64RegClassID].contains(RegNo) ||
909 X86II::isX86_64NonExtLowByteReg(RegNo) ||
910 X86II::isX86_64ExtendedReg(RegNo) ||
911 X86II::is32ExtendedReg(RegNo))
916 if (X86II::is32ExtendedReg(RegNo))
923 if (RegNo == 0 && (Tok.getString() == "st" || Tok.getString() == "ST")) {
924 RegNo = X86::ST0;
937 case 0: RegNo = X86::ST0; break;
938 case 1: RegNo = X86::ST1; break;
939 case 2: RegNo = X86::ST2; break;
940 case 3: RegNo = X86::ST3; break;
941 case 4: RegNo = X86::ST4; break;
942 case 5: RegNo = X86::ST5; break;
943 case 6: RegNo = X86::ST6; break;
944 case 7: RegNo = X86::ST7; break;
960 if (RegNo == 0 && Tok.getString().size() == 3 &&
963 case '0': RegNo = X86::DR0; break;
964 case '1': RegNo = X86::DR1; break;
965 case '2': RegNo = X86::DR2; break;
966 case '3': RegNo = X86::DR3; break;
967 case '4': RegNo = X86::DR4; break;
968 case '5': RegNo = X86::DR5; break;
969 case '6': RegNo = X86::DR6; break;
970 case '7': RegNo = X86::DR7; break;
973 if (RegNo != 0) {
980 if (RegNo == 0) {
990 void X86AsmParser::SetFrameRegister(unsigned RegNo) {
991 Instrumentation->SetInitialFrameRegister(RegNo);
1728 unsigned RegNo =
1730 return X86Operand::CreateReg(RegNo, Start, End, /*GetAddress=*/true,
1857 unsigned RegNo = 0;
1858 if (!ParseRegister(RegNo, Start, End)) {
1868 return X86Operand::CreateReg(RegNo, Start, End);
1871 return ParseIntelSegmentOverride(/*SegReg=*/RegNo, Start, Size);
1886 unsigned RegNo;
1888 if (ParseRegister(RegNo, Start, End)) return nullptr;
1889 if (RegNo == X86::EIZ || RegNo == X86::RIZ) {
1898 return X86Operand::CreateReg(RegNo, Start, End);
1900 if (!X86MCRegisterClasses[X86::SEGMENT_REGRegClassID].contains(RegNo))
1904 return ParseMemOperand(RegNo, Start);
2907 bool X86AsmParser::OmitRegisterFromClobberLists(unsigned RegNo) {
2908 return X86MCRegisterClasses[X86::SEGMENT_REGRegClassID].contains(RegNo);