Lines Matching refs:UserOffset
238 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset, unsigned Disp,
240 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
248 int findInRangeCPEntry(CPUser &U, unsigned UserOffset);
249 bool findAvailableWater(CPUser &U, unsigned UserOffset,
251 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
256 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
259 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water, CPUser &U,
270 bool CSKYConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
273 return isOffsetInRange(UserOffset, TrialOffset, U.getMaxDisp(), U.NegOk); in isOffsetInRange()
636 unsigned UserOffset = getOffsetOf(U.MI); in getUserOffset() local
638 UserOffset &= ~3u; in getUserOffset()
640 return UserOffset; in getUserOffset()
715 bool CSKYConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
718 if (UserOffset <= TrialOffset) { in isOffsetInRange()
720 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
723 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
733 bool CSKYConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
762 if (CPEOffset < UserOffset) in isWaterInRange()
763 UserOffset += Growth; in isWaterInRange()
768 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
774 unsigned UserOffset, in isCPEntryInRange() argument
786 << format(" insn address=%#x", UserOffset) << " in " in isCPEntryInRange()
790 int(CPEOffset - UserOffset)); in isCPEntryInRange()
794 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
846 int CSKYConstantIslands::findInRangeCPEntry(CPUser &U, unsigned UserOffset) { in findInRangeCPEntry() argument
851 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
867 if (isCPEntryInRange(UserMI, UserOffset, CPEs[I].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
919 bool CSKYConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
937 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
965 unsigned UserOffset, in createNewWater() argument
981 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1011 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp(); in createNewWater()
1037 for (unsigned Offset = UserOffset + TII->getInstSizeInBytes(*UserMI); in createNewWater()
1071 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1075 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1085 if (findAvailableWater(U, UserOffset, IP)) { in handleConstantPoolUser()
1099 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()