Lines Matching refs:UserOffset

299     int findInRangeCPEntry(CPUser& U, unsigned UserOffset);
300 bool findAvailableWater(CPUser&U, unsigned UserOffset,
302 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
307 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
310 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water,
334 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
336 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset, in isOffsetInRange() argument
338 return isOffsetInRange(UserOffset, TrialOffset, in isOffsetInRange()
357 unsigned UserOffset = getUserOffset(U); in verify() local
360 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, U.getMaxDisp()+2, U.NegOk, in verify()
1049 unsigned UserOffset = getOffsetOf(U.MI); in getUserOffset() local
1054 UserOffset += (isThumb ? 4 : 8); in getUserOffset()
1064 UserOffset &= ~3u; in getUserOffset()
1066 return UserOffset; in getUserOffset()
1075 bool ARMConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
1078 if (UserOffset <= TrialOffset) { in isOffsetInRange()
1080 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
1084 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
1095 bool ARMConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
1124 if (CPEOffset < UserOffset) in isWaterInRange()
1125 UserOffset += Growth + UnknownPadding(MF->getAlignment(), CPELogAlign); in isWaterInRange()
1130 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
1135 bool ARMConstantIslands::isCPEntryInRange(MachineInstr *MI, unsigned UserOffset, in isCPEntryInRange() argument
1146 << format(" insn address=%#x", UserOffset) in isCPEntryInRange()
1150 int(CPEOffset-UserOffset)); in isCPEntryInRange()
1154 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
1228 int ARMConstantIslands::findInRangeCPEntry(CPUser& U, unsigned UserOffset) in findInRangeCPEntry() argument
1234 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1250 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1295 bool ARMConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
1331 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
1362 unsigned UserOffset, in createNewWater() argument
1381 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1424 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp() - UPad; in createNewWater()
1448 UserOffset + TII->GetInstSizeInBytes(UserMI) + 1); in createNewWater()
1458 for (unsigned Offset = UserOffset+TII->GetInstSizeInBytes(UserMI); in createNewWater()
1511 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1515 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1527 if (findAvailableWater(U, UserOffset, IP, CloserWater)) { in handleConstantPoolUser()
1542 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()
1866 unsigned UserOffset = getUserOffset(U); in optimizeThumb2Instructions() local
1874 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, MaxOffs, false, true)) { in optimizeThumb2Instructions()