Lines Matching refs:CPEMI

268       MachineInstr *CPEMI;  member
280 : MI(mi), CPEMI(cpemi), MaxDisp(maxdisp), in CPUser()
283 HighWaterMark = CPEMI->getParent(); in CPUser()
310 MachineInstr *CPEMI; member
314 : CPEMI(cpemi), CPI(cpi), RefCount(rc) {} in CPEntry()
379 CPEntry *findConstPoolEntry(unsigned CPI, const MachineInstr *CPEMI);
380 unsigned getCPELogAlign(const MachineInstr *CPEMI);
395 bool decrementCPEReferenceCount(unsigned CPI, MachineInstr* CPEMI);
403 void removeDeadCPEMI(MachineInstr *CPEMI);
406 MachineInstr *CPEMI, unsigned Disp, bool NegOk,
577 MachineInstr *CPEMI = in doInitialPlacement() local
581 CPEMIs.push_back(CPEMI); in doInitialPlacement()
587 InsPoint[a] = CPEMI; in doInitialPlacement()
589 CPEntries.emplace_back(1, CPEntry(CPEMI, i)); in doInitialPlacement()
619 const MachineInstr *CPEMI) { in findConstPoolEntry() argument
624 if (CPEs[i].CPEMI == CPEMI) in findConstPoolEntry()
632 unsigned MipsConstantIslands::getCPELogAlign(const MachineInstr *CPEMI) { in getCPELogAlign() argument
633 assert(CPEMI && CPEMI->getOpcode() == Mips::CONSTPOOL_ENTRY); in getCPELogAlign()
639 unsigned CPI = CPEMI->getOperand(1).getIndex(); in getCPELogAlign()
788 MachineInstr *CPEMI = CPEMIs[CPI]; in initializeFunctionInfo() local
791 CPUsers.push_back(CPUser(I, CPEMI, MaxOffs, NegOk, in initializeFunctionInfo()
795 CPEntry *CPE = findConstPoolEntry(CPI, CPEMI); in initializeFunctionInfo()
967 unsigned CPELogAlign = getCPELogAlign(U.CPEMI); in isWaterInRange()
978 unsigned Size = U.CPEMI->getOperand(2).getImm(); in isWaterInRange()
1006 MachineInstr *CPEMI, unsigned MaxDisp, in isCPEntryInRange() argument
1008 unsigned CPEOffset = getOffsetOf(CPEMI); in isCPEntryInRange()
1014 dbgs() << "User of CPE#" << CPEMI->getOperand(0).getImm() in isCPEntryInRange()
1058 MachineInstr *CPEMI) { in decrementCPEReferenceCount() argument
1060 CPEntry *CPE = findConstPoolEntry(CPI, CPEMI); in decrementCPEReferenceCount()
1063 removeDeadCPEMI(CPEMI); in decrementCPEReferenceCount()
1064 CPE->CPEMI = nullptr; in decrementCPEReferenceCount()
1080 MachineInstr *CPEMI = U.CPEMI; in findInRangeCPEntry() local
1083 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, U.getMaxDisp(), U.NegOk, in findInRangeCPEntry()
1090 unsigned CPI = CPEMI->getOperand(1).getIndex(); in findInRangeCPEntry()
1094 if (CPEs[i].CPEMI == CPEMI) in findInRangeCPEntry()
1097 if (CPEs[i].CPEMI == nullptr) in findInRangeCPEntry()
1099 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(), in findInRangeCPEntry()
1104 U.CPEMI = CPEs[i].CPEMI; in findInRangeCPEntry()
1115 return decrementCPEReferenceCount(CPI, CPEMI) ? 2 : 1; in findInRangeCPEntry()
1133 MachineInstr *CPEMI = U.CPEMI; in findLongFormInRangeCPEntry() local
1136 if (isCPEntryInRange(UserMI, UserOffset, CPEMI, in findLongFormInRangeCPEntry()
1146 unsigned CPI = CPEMI->getOperand(1).getIndex(); in findLongFormInRangeCPEntry()
1150 if (CPEs[i].CPEMI == CPEMI) in findLongFormInRangeCPEntry()
1153 if (CPEs[i].CPEMI == nullptr) in findLongFormInRangeCPEntry()
1155 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, in findLongFormInRangeCPEntry()
1160 U.CPEMI = CPEs[i].CPEMI; in findLongFormInRangeCPEntry()
1171 return decrementCPEReferenceCount(CPI, CPEMI) ? 2 : 1; in findLongFormInRangeCPEntry()
1248 MachineInstr *CPEMI = U.CPEMI; in createNewWater() local
1249 unsigned CPELogAlign = getCPELogAlign(CPEMI); in createNewWater()
1309 CPEMI->getOperand(2).getImm(); in createNewWater()
1330 EndInsertOffset += U.CPEMI->getOperand(2).getImm(); in createNewWater()
1346 MachineInstr *CPEMI = U.CPEMI; in handleConstantPoolUser() local
1347 unsigned CPI = CPEMI->getOperand(1).getIndex(); in handleConstantPoolUser()
1348 unsigned Size = CPEMI->getOperand(2).getImm(); in handleConstantPoolUser()
1414 decrementCPEReferenceCount(CPI, CPEMI); in handleConstantPoolUser()
1423 U.CPEMI = BuildMI(NewIsland, DebugLoc(), TII->get(Mips::CONSTPOOL_ENTRY)) in handleConstantPoolUser()
1425 CPEntries[CPI].push_back(CPEntry(U.CPEMI, ID, 1)); in handleConstantPoolUser()
1429 NewIsland->setAlignment(getCPELogAlign(U.CPEMI)); in handleConstantPoolUser()
1450 void MipsConstantIslands::removeDeadCPEMI(MachineInstr *CPEMI) { in removeDeadCPEMI() argument
1451 MachineBasicBlock *CPEBB = CPEMI->getParent(); in removeDeadCPEMI()
1452 unsigned Size = CPEMI->getOperand(2).getImm(); in removeDeadCPEMI()
1453 CPEMI->eraseFromParent(); in removeDeadCPEMI()
1480 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) { in removeUnusedCPEntries()
1481 removeDeadCPEMI(CPEs[j].CPEMI); in removeUnusedCPEntries()
1482 CPEs[j].CPEMI = nullptr; in removeUnusedCPEntries()