Lines Matching refs:UserOffset
304 int findInRangeCPEntry(CPUser& U, unsigned UserOffset);
305 bool findAvailableWater(CPUser&U, unsigned UserOffset,
307 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
312 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
315 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water,
339 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
341 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset, in isOffsetInRange() argument
343 return isOffsetInRange(UserOffset, TrialOffset, in isOffsetInRange()
362 unsigned UserOffset = getUserOffset(U); in verify() local
365 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, U.getMaxDisp()+2, U.NegOk, in verify()
1053 unsigned UserOffset = getOffsetOf(U.MI); in getUserOffset() local
1058 UserOffset += (isThumb ? 4 : 8); in getUserOffset()
1068 UserOffset &= ~3u; in getUserOffset()
1070 return UserOffset; in getUserOffset()
1079 bool ARMConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
1082 if (UserOffset <= TrialOffset) { in isOffsetInRange()
1084 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
1088 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
1099 bool ARMConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
1128 if (CPEOffset < UserOffset) in isWaterInRange()
1129 UserOffset += Growth + UnknownPadding(MF->getAlignment(), CPELogAlign); in isWaterInRange()
1134 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
1139 bool ARMConstantIslands::isCPEntryInRange(MachineInstr *MI, unsigned UserOffset, in isCPEntryInRange() argument
1150 << format(" insn address=%#x", UserOffset) in isCPEntryInRange()
1154 int(CPEOffset-UserOffset)); in isCPEntryInRange()
1158 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
1232 int ARMConstantIslands::findInRangeCPEntry(CPUser& U, unsigned UserOffset) in findInRangeCPEntry() argument
1238 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1254 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1299 bool ARMConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
1335 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
1366 unsigned UserOffset, in createNewWater() argument
1385 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1428 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp() - UPad; in createNewWater()
1452 UserOffset + TII->GetInstSizeInBytes(*UserMI) + 1); in createNewWater()
1462 for (unsigned Offset = UserOffset + TII->GetInstSizeInBytes(*UserMI); in createNewWater()
1515 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1519 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1531 if (findAvailableWater(U, UserOffset, IP, CloserWater)) { in handleConstantPoolUser()
1546 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()
1870 unsigned UserOffset = getUserOffset(U); in optimizeThumb2Instructions() local
1878 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, MaxOffs, false, true)) { in optimizeThumb2Instructions()