Lines Matching defs:Disp
1148 bool ParseMemOperand(MCRegister SegReg, const MCExpr *Disp, SMLoc StartLoc,
1154 bool CreateMemForMSInlineAsm(MCRegister SegReg, const MCExpr *Disp,
1613 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1614 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,
1623 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1624 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,
1758 MCRegister SegReg, const MCExpr *Disp, MCRegister BaseReg,
1767 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start,
1788 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start,
1797 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End,
2626 const MCExpr *Disp = SM.getSym();
2628 if (Disp && Imm)
2629 Disp = MCBinaryExpr::createAdd(Disp, ImmDisp, getContext());
2630 if (!Disp)
2631 Disp = ImmDisp;
2639 // Disp includes the address of a variable; make sure this is recorded
2641 Operands.push_back(X86Operand::CreateImm(Disp, Start, End,
2648 Operands.push_back(X86Operand::CreateImm(Disp, Start, End));
2698 return CreateMemForMSInlineAsm(RegNo, Disp, BaseReg, IndexReg, Scale,
2718 } else if (!BaseReg && !IndexReg && Disp &&
2719 Disp->getKind() == MCExpr::SymbolRef) {
2742 getPointerWidth(), RegNo, Disp, BaseReg, IndexReg, Scale, Start, End,
2747 getPointerWidth(), Disp, Start, End, Size, /*SymName=*/StringRef(),
2956 bool X86AsmParser::ParseMemOperand(MCRegister SegReg, const MCExpr *Disp,
3016 if (!Disp) {
3019 if (Parser.parseTokenLoc(Loc) || Parser.parseExpression(Disp, EndLoc))
3021 assert(!isa<X86MCExpr>(Disp) && "Expected non-register here.");
3023 // Disp is implicitly zero if we haven't parsed it yet.
3024 Disp = MCConstantExpr::create(0, Parser.getContext());
3034 X86Operand::CreateMem(getPointerWidth(), Disp, StartLoc, EndLoc));
3036 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), SegReg, Disp,
3122 isa<MCConstantExpr>(Disp) &&
3123 cast<MCConstantExpr>(Disp)->getValue() == 0) {
3138 if (auto CE = dyn_cast<MCConstantExpr>(Disp)) {
3162 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), SegReg, Disp,
3167 X86Operand::CreateMem(getPointerWidth(), Disp, StartLoc, EndLoc));
4028 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
4029 auto ShlMemOp = X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,