Lines Matching refs:SegReg
500 X86Operand *ParseIntelSegmentOverride(unsigned SegReg, SMLoc Start, unsigned Size);
504 X86Operand *ParseIntelBracExpression(unsigned SegReg, SMLoc Start,
510 X86Operand *ParseMemOperand(unsigned SegReg, SMLoc StartLoc);
512 X86Operand *CreateMemForInlineAsm(unsigned SegReg, const MCExpr *Disp,
640 unsigned SegReg;
699 return Mem.SegReg;
987 Res->Mem.SegReg = 0;
1000 static X86Operand *CreateMem(unsigned SegReg, const MCExpr *Disp,
1008 assert((SegReg || BaseReg || IndexReg) && "Invalid memory operand!");
1014 Res->Mem.SegReg = SegReg;
1033 (Op.Mem.SegReg == 0 || Op.Mem.SegReg == X86::DS) &&
1043 (Op.Mem.SegReg == 0 || Op.Mem.SegReg == X86::ES) &&
1179 X86AsmParser::CreateMemForInlineAsm(unsigned SegReg, const MCExpr *Disp,
1213 return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale, Start,
1364 X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg, SMLoc Start,
1418 if (!SegReg)
1421 return X86Operand::CreateMem(SegReg, Disp, 0, 0, 1, Start, End, Size);
1423 return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale, Start,
1428 return CreateMemForInlineAsm(SegReg, Disp, BaseReg, IndexReg, Scale, Start,
1465 X86Operand *X86AsmParser::ParseIntelSegmentOverride(unsigned SegReg,
1468 assert(SegReg != 0 && "Tried to parse a segment override without a segment!");
1488 return X86Operand::CreateMem(SegReg, Disp, /*BaseReg=*/0, /*IndexReg=*/0,
1495 return ParseIntelBracExpression(SegReg, Start, ImmDisp, Size);
1511 return CreateMemForInlineAsm(/*SegReg=*/0, Val, /*BaseReg=*/0,/*IndexReg=*/0,
1523 return ParseIntelBracExpression(/*SegReg=*/0, Start, ImmDisp, Size);
1538 return CreateMemForInlineAsm(/*SegReg=*/0, Val, /*BaseReg=*/0, /*IndexReg=*/0,
1725 return ParseIntelSegmentOverride(/*SegReg=*/RegNo, Start, Size);
1770 X86Operand *X86AsmParser::ParseMemOperand(unsigned SegReg, SMLoc MemStart) {
1785 if (SegReg == 0)
1787 return X86Operand::CreateMem(SegReg, Disp, 0, 0, 1, MemStart, ExprEnd);
1812 if (SegReg == 0)
1814 return X86Operand::CreateMem(SegReg, Disp, 0, 0, 1, MemStart, ExprEnd);
1921 return X86Operand::CreateMem(SegReg, Disp, BaseReg, IndexReg, Scale,
2103 if (Op.isMem() && Op.Mem.SegReg == 0 &&
2116 if (Op.isMem() && Op.Mem.SegReg == 0 &&