Lines Matching defs:Disp

1148   bool ParseMemOperand(unsigned SegReg, const MCExpr *Disp, SMLoc StartLoc,
1154 bool CreateMemForMSInlineAsm(unsigned SegReg, const MCExpr *Disp,
1612 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1613 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,
1621 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1622 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,
1756 bool X86AsmParser::CreateMemForMSInlineAsm(unsigned SegReg, const MCExpr *Disp,
1768 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start,
1789 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start,
1798 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End,
2627 const MCExpr *Disp = SM.getSym();
2629 if (Disp && Imm)
2630 Disp = MCBinaryExpr::createAdd(Disp, ImmDisp, getContext());
2631 if (!Disp)
2632 Disp = ImmDisp;
2640 // Disp includes the address of a variable; make sure this is recorded
2642 Operands.push_back(X86Operand::CreateImm(Disp, Start, End,
2649 Operands.push_back(X86Operand::CreateImm(Disp, Start, End));
2699 return CreateMemForMSInlineAsm(RegNo, Disp, BaseReg, IndexReg, Scale,
2719 } else if (!BaseReg && !IndexReg && Disp &&
2720 Disp->getKind() == MCExpr::SymbolRef) {
2743 getPointerWidth(), RegNo, Disp, BaseReg, IndexReg, Scale, Start, End,
2748 getPointerWidth(), Disp, Start, End, Size, /*SymName=*/StringRef(),
2957 bool X86AsmParser::ParseMemOperand(unsigned SegReg, const MCExpr *Disp,
3017 if (!Disp) {
3020 if (Parser.parseTokenLoc(Loc) || Parser.parseExpression(Disp, EndLoc))
3022 assert(!isa<X86MCExpr>(Disp) && "Expected non-register here.");
3024 // Disp is implicitly zero if we haven't parsed it yet.
3025 Disp = MCConstantExpr::create(0, Parser.getContext());
3035 X86Operand::CreateMem(getPointerWidth(), Disp, StartLoc, EndLoc));
3037 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));
3957 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
3958 auto ShlMemOp = X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp,