Lines Matching refs:CPEMI
186 MachineInstr *CPEMI; member
196 : MI(mi), CPEMI(cpemi), MaxDisp(maxdisp), NegOk(neg), IsSoImm(soimm), in CPUser()
198 HighWaterMark = CPEMI->getParent(); in CPUser()
216 MachineInstr *CPEMI; member
220 : CPEMI(cpemi), CPI(cpi), RefCount(rc) {} in CPEntry()
279 CPEntry *findConstPoolEntry(unsigned CPI, const MachineInstr *CPEMI);
280 unsigned getCPELogAlign(const MachineInstr *CPEMI);
286 bool decrementCPEReferenceCount(unsigned CPI, MachineInstr* CPEMI);
293 void removeDeadCPEMI(MachineInstr *CPEMI);
296 MachineInstr *CPEMI, unsigned Disp, bool NegOk,
345 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, U.getMaxDisp()+2, U.NegOk, in verify()
546 MachineInstr *CPEMI = in doInitialPlacement() local
549 CPEMIs.push_back(CPEMI); in doInitialPlacement()
555 InsPoint[a] = CPEMI; in doInitialPlacement()
558 CPEntries.emplace_back(1, CPEntry(CPEMI, i)); in doInitialPlacement()
591 const MachineInstr *CPEMI) { in findConstPoolEntry() argument
596 if (CPEs[i].CPEMI == CPEMI) in findConstPoolEntry()
604 unsigned ARMConstantIslands::getCPELogAlign(const MachineInstr *CPEMI) { in getCPELogAlign() argument
605 assert(CPEMI && CPEMI->getOpcode() == ARM::CONSTPOOL_ENTRY); in getCPELogAlign()
611 unsigned CPI = CPEMI->getOperand(1).getIndex(); in getCPELogAlign()
782 MachineInstr *CPEMI = CPEMIs[CPI]; in initializeFunctionInfo() local
784 CPUsers.push_back(CPUser(I, CPEMI, MaxOffs, NegOk, IsSoImm)); in initializeFunctionInfo()
787 CPEntry *CPE = findConstPoolEntry(CPI, CPEMI); in initializeFunctionInfo()
998 unsigned CPELogAlign = getCPELogAlign(U.CPEMI); in isWaterInRange()
1009 unsigned Size = U.CPEMI->getOperand(2).getImm(); in isWaterInRange()
1036 MachineInstr *CPEMI, unsigned MaxDisp, in isCPEntryInRange() argument
1038 unsigned CPEOffset = getOffsetOf(CPEMI); in isCPEntryInRange()
1044 dbgs() << "User of CPE#" << CPEMI->getOperand(0).getImm() in isCPEntryInRange()
1102 MachineInstr *CPEMI) { in decrementCPEReferenceCount() argument
1104 CPEntry *CPE = findConstPoolEntry(CPI, CPEMI); in decrementCPEReferenceCount()
1107 removeDeadCPEMI(CPEMI); in decrementCPEReferenceCount()
1108 CPE->CPEMI = nullptr; in decrementCPEReferenceCount()
1124 MachineInstr *CPEMI = U.CPEMI; in findInRangeCPEntry() local
1127 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1134 unsigned CPI = CPEMI->getOperand(1).getIndex(); in findInRangeCPEntry()
1138 if (CPEs[i].CPEMI == CPEMI) in findInRangeCPEntry()
1141 if (CPEs[i].CPEMI == nullptr) in findInRangeCPEntry()
1143 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1148 U.CPEMI = CPEs[i].CPEMI; in findInRangeCPEntry()
1159 return decrementCPEReferenceCount(CPI, CPEMI) ? 2 : 1; in findInRangeCPEntry()
1238 MachineInstr *CPEMI = U.CPEMI; in createNewWater() local
1239 unsigned CPELogAlign = getCPELogAlign(CPEMI); in createNewWater()
1324 CPEMI->getOperand(2).getImm(); in createNewWater()
1345 EndInsertOffset += U.CPEMI->getOperand(2).getImm(); in createNewWater()
1378 MachineInstr *CPEMI = U.CPEMI; in handleConstantPoolUser() local
1379 unsigned CPI = CPEMI->getOperand(1).getIndex(); in handleConstantPoolUser()
1380 unsigned Size = CPEMI->getOperand(2).getImm(); in handleConstantPoolUser()
1444 decrementCPEReferenceCount(CPI, CPEMI); in handleConstantPoolUser()
1449 U.CPEMI = BuildMI(NewIsland, DebugLoc(), TII->get(ARM::CONSTPOOL_ENTRY)) in handleConstantPoolUser()
1451 CPEntries[CPI].push_back(CPEntry(U.CPEMI, ID, 1)); in handleConstantPoolUser()
1455 NewIsland->setAlignment(getCPELogAlign(U.CPEMI)); in handleConstantPoolUser()
1476 void ARMConstantIslands::removeDeadCPEMI(MachineInstr *CPEMI) { in removeDeadCPEMI() argument
1477 MachineBasicBlock *CPEBB = CPEMI->getParent(); in removeDeadCPEMI()
1478 unsigned Size = CPEMI->getOperand(2).getImm(); in removeDeadCPEMI()
1479 CPEMI->eraseFromParent(); in removeDeadCPEMI()
1506 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) { in removeUnusedCPEntries()
1507 removeDeadCPEMI(CPEs[j].CPEMI); in removeUnusedCPEntries()
1508 CPEs[j].CPEMI = nullptr; in removeUnusedCPEntries()
1746 if (isCPEntryInRange(U.MI, UserOffset, U.CPEMI, MaxOffs, false, true)) { in optimizeThumb2Instructions()