Lines Matching defs:Disp
64 int64_t Disp;
84 : AM(AT), BaseType(Base::RegBase), Disp(0), BaseFrameIndex(0), IndexReg(),
153 dbgs() << "\nDisp: " << Disp;
232 // If Address Mode represents Frame Index store FI in Disp and
236 SDValue &Disp, SDValue &Base) {
238 Disp = getI32Imm(AM.Disp, DL);
251 Sym = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), MVT::i32, AM.Disp,
258 AM.Disp, AM.SymbolFlags);
263 assert(!AM.Disp && "Non-zero displacement is ignored with ES.");
269 assert(!AM.Disp && "Non-zero displacement is ignored with MCSym.");
276 assert(!AM.Disp && "Non-zero displacement is ignored with JT.");
282 Sym = CurDAG->getTargetBlockAddress(AM.BlockAddr, MVT::i32, AM.Disp,
371 // -1 to make sure that resolved FI will fit into Disp field
372 return isIntN(AM.getDispSize() - 1, AM.Disp);
396 int64_t Val = AM.Disp + Offset;
399 AM.Disp = Val;
635 AM.Disp += G->getOffset();
640 AM.Disp += CP->getOffset();
652 AM.Disp += BA->getOffset();
711 bool M68kDAGToDAGISel::SelectARID(SDNode *Parent, SDValue N, SDValue &Disp,
725 if (getFrameIndexAddress(AM, SDLoc(N), Disp, Base)) {
742 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
743 assert(!AM.Disp && "Should not be any displacement");
749 if (AM.Disp == 0) {
754 Disp = getI16Imm(AM.Disp, SDLoc(N));
775 bool M68kDAGToDAGISel::SelectARII(SDNode *Parent, SDValue N, SDValue &Disp,
814 if (AM.Disp == 0 && (!Parent || (Parent->getOpcode() != ISD::LOAD &&
820 Disp = getI8Imm(AM.Disp, SDLoc(N));
855 if (AM.Disp) {
856 Sym = getI32Imm(AM.Disp, SDLoc(N));
861 LLVM_DEBUG(dbgs() << "REJECT: Not Symbol or Disp\n");
866 bool M68kDAGToDAGISel::SelectPCD(SDNode *Parent, SDValue N, SDValue &Disp) {
883 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
888 Disp = getI16Imm(AM.Disp, SDLoc(N));
894 bool M68kDAGToDAGISel::SelectPCI(SDNode *Parent, SDValue N, SDValue &Disp,
914 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
915 assert(!AM.Disp && "Should not be any displacement");
920 Disp = getI8Imm(AM.Disp, SDLoc(N));
941 if (AM.hasIndexReg() || AM.Disp != 0) {
942 LLVM_DEBUG(dbgs() << "REJECT: Cannot match Index or Disp\n");
948 LLVM_DEBUG(dbgs() << "REJECT: Cannot match Symbolic Disp\n");