Lines Matching refs:UserOffset
378 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
380 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
388 int findInRangeCPEntry(CPUser& U, unsigned UserOffset);
389 int findLongFormInRangeCPEntry(CPUser& U, unsigned UserOffset);
390 bool findAvailableWater(CPUser&U, unsigned UserOffset,
392 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
397 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
400 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water,
417 (unsigned UserOffset, unsigned TrialOffset, in isOffsetInRange() argument
419 return isOffsetInRange(UserOffset, TrialOffset, in isOffsetInRange()
931 bool MipsConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
934 if (UserOffset <= TrialOffset) { in isOffsetInRange()
936 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
939 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
949 bool MipsConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
978 if (CPEOffset < UserOffset) in isWaterInRange()
979 UserOffset += Growth; in isWaterInRange()
984 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
990 (MachineInstr *MI, unsigned UserOffset, in isCPEntryInRange() argument
1001 << format(" insn address=%#x", UserOffset) in isCPEntryInRange()
1005 int(CPEOffset-UserOffset)); in isCPEntryInRange()
1009 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
1062 int MipsConstantIslands::findInRangeCPEntry(CPUser& U, unsigned UserOffset) in findInRangeCPEntry() argument
1068 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1084 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1115 (CPUser& U, unsigned UserOffset) in findLongFormInRangeCPEntry() argument
1121 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, in findLongFormInRangeCPEntry()
1140 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, in findLongFormInRangeCPEntry()
1184 bool MipsConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
1202 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
1229 unsigned UserOffset, in createNewWater() argument
1246 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1273 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp(); in createNewWater()
1300 for (unsigned Offset = UserOffset + TII->GetInstSizeInBytes(*UserMI); in createNewWater()
1335 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1339 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1348 if (findAvailableWater(U, UserOffset, IP)) { in handleConstantPoolUser()
1365 result = findLongFormInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1369 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()