Lines Matching refs:UserOffset
287 int findInRangeCPEntry(CPUser& U, unsigned UserOffset);
288 bool findAvailableWater(CPUser&U, unsigned UserOffset,
290 void createNewWater(unsigned CPUserIndex, unsigned UserOffset,
295 bool isCPEntryInRange(MachineInstr *MI, unsigned UserOffset,
298 bool isWaterInRange(unsigned UserOffset, MachineBasicBlock *Water,
319 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset,
321 bool isOffsetInRange(unsigned UserOffset, unsigned TrialOffset, in isOffsetInRange() argument
323 return isOffsetInRange(UserOffset, TrialOffset, in isOffsetInRange()
342 unsigned UserOffset = getUserOffset(U); in verify() local
345 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, U.getMaxDisp()+2, U.NegOk, in verify()
949 unsigned UserOffset = getOffsetOf(U.MI); in getUserOffset() local
954 UserOffset += (isThumb ? 4 : 8); in getUserOffset()
964 UserOffset &= ~3u; in getUserOffset()
966 return UserOffset; in getUserOffset()
975 bool ARMConstantIslands::isOffsetInRange(unsigned UserOffset, in isOffsetInRange() argument
978 if (UserOffset <= TrialOffset) { in isOffsetInRange()
980 if (TrialOffset - UserOffset <= MaxDisp) in isOffsetInRange()
984 if (UserOffset - TrialOffset <= MaxDisp) in isOffsetInRange()
995 bool ARMConstantIslands::isWaterInRange(unsigned UserOffset, in isWaterInRange() argument
1024 if (CPEOffset < UserOffset) in isWaterInRange()
1025 UserOffset += Growth + UnknownPadding(MF->getAlignment(), CPELogAlign); in isWaterInRange()
1030 return isOffsetInRange(UserOffset, CPEOffset, U); in isWaterInRange()
1035 bool ARMConstantIslands::isCPEntryInRange(MachineInstr *MI, unsigned UserOffset, in isCPEntryInRange() argument
1046 << format(" insn address=%#x", UserOffset) in isCPEntryInRange()
1050 int(CPEOffset-UserOffset)); in isCPEntryInRange()
1054 return isOffsetInRange(UserOffset, CPEOffset, MaxDisp, NegOk); in isCPEntryInRange()
1121 int ARMConstantIslands::findInRangeCPEntry(CPUser& U, unsigned UserOffset) in findInRangeCPEntry() argument
1127 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1143 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1188 bool ARMConstantIslands::findAvailableWater(CPUser &U, unsigned UserOffset, in findAvailableWater() argument
1206 if (isWaterInRange(UserOffset, WaterBB, U, Growth) && in findAvailableWater()
1234 unsigned UserOffset, in createNewWater() argument
1253 if (isOffsetInRange(UserOffset, CPEOffset, U)) { in createNewWater()
1296 unsigned BaseInsertOffset = UserOffset + U.getMaxDisp() - UPad; in createNewWater()
1320 UserOffset + TII->GetInstSizeInBytes(UserMI) + 1); in createNewWater()
1330 for (unsigned Offset = UserOffset+TII->GetInstSizeInBytes(UserMI); in createNewWater()
1382 unsigned UserOffset = getUserOffset(U); in handleConstantPoolUser() local
1386 int result = findInRangeCPEntry(U, UserOffset); in handleConstantPoolUser()
1398 if (findAvailableWater(U, UserOffset, IP)) { in handleConstantPoolUser()
1414 createNewWater(CPUserIndex, UserOffset, NewMBB); in handleConstantPoolUser()
1738 unsigned UserOffset = getUserOffset(U); in optimizeThumb2Instructions() local
1746 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, MaxOffs, false, true)) { in optimizeThumb2Instructions()