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();
725 bool M68kDAGToDAGISel::SelectARID(SDNode *Parent, SDValue N, SDValue &Disp,
739 if (getFrameIndexAddress(AM, SDLoc(N), Disp, Base)) {
756 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
757 assert((!AM.Disp || allowARIDWithDisp(Parent)) &&
764 if (AM.Disp == 0) {
769 Disp = getI16Imm(AM.Disp, SDLoc(N));
805 bool M68kDAGToDAGISel::SelectARII(SDNode *Parent, SDValue N, SDValue &Disp,
844 if (AM.Disp == 0 && !AllowARIIWithZeroDisp(Parent)) {
849 Disp = getI8Imm(AM.Disp, SDLoc(N));
884 if (AM.Disp) {
885 Sym = getI32Imm(AM.Disp, SDLoc(N));
890 LLVM_DEBUG(dbgs() << "REJECT: Not Symbol or Disp\n");
895 bool M68kDAGToDAGISel::SelectPCD(SDNode *Parent, SDValue N, SDValue &Disp) {
912 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
917 Disp = getI16Imm(AM.Disp, SDLoc(N));
923 bool M68kDAGToDAGISel::SelectPCI(SDNode *Parent, SDValue N, SDValue &Disp,
943 if (getSymbolicDisplacement(AM, SDLoc(N), Disp)) {
944 assert(!AM.Disp && "Should not be any displacement");
949 Disp = getI8Imm(AM.Disp, SDLoc(N));
970 if (AM.hasIndexReg() || AM.Disp != 0) {
971 LLVM_DEBUG(dbgs() << "REJECT: Cannot match Index or Disp\n");
977 LLVM_DEBUG(dbgs() << "REJECT: Cannot match Symbolic Disp\n");