Lines Matching refs:UserOffset
386 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
388 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
396 int findInRangeCPEntry(CPUser& U, unsigned UserOffset);
397 int findLongFormInRangeCPEntry(CPUser& U, unsigned UserOffset);
398 bool findAvailableWater(CPUser&U, unsigned UserOffset,
400 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
405 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
408 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water,
425 (unsigned UserOffset, unsigned TrialOffset, in isOffsetInRange() argument
427 return isOffsetInRange(UserOffset, TrialOffset, in isOffsetInRange()
946 bool MipsConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
949 if (UserOffset <= TrialOffset) { in isOffsetInRange()
951 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
954 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
964 bool MipsConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
993 if (CPEOffset < UserOffset) in isWaterInRange()
994 UserOffset += Growth; in isWaterInRange()
999 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
1005 (MachineInstr *MI, unsigned UserOffset, in isCPEntryInRange() argument
1016 << format(" insn address=%#x", UserOffset) in isCPEntryInRange()
1020 int(CPEOffset-UserOffset)); in isCPEntryInRange()
1024 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
1077 int MipsConstantIslands::findInRangeCPEntry(CPUser& U, unsigned UserOffset) in findInRangeCPEntry() argument
1083 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1099 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1130 (CPUser& U, unsigned UserOffset) in findLongFormInRangeCPEntry() argument
1136 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, in findLongFormInRangeCPEntry()
1155 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, in findLongFormInRangeCPEntry()
1199 bool MipsConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
1217 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
1244 unsigned UserOffset, in createNewWater() argument
1261 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1288 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp(); in createNewWater()
1315 for (unsigned Offset = UserOffset+TII->GetInstSizeInBytes(UserMI); in createNewWater()
1350 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1354 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1363 if (findAvailableWater(U, UserOffset, IP)) { in handleConstantPoolUser()
1381 result = findLongFormInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1385 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()