Lines Matching refs:CSI

214   unsigned getMaxCalleeSavedReg(const std::vector<CalleeSavedInfo> &CSI,  in getMaxCalleeSavedReg()  argument
218 if (CSI.empty()) in getMaxCalleeSavedReg()
221 unsigned Max = getMax32BitSubRegister(CSI[0].getReg(), TRI); in getMaxCalleeSavedReg()
222 for (unsigned I = 1, E = CSI.size(); I < E; ++I) { in getMaxCalleeSavedReg()
223 unsigned Reg = getMax32BitSubRegister(CSI[I].getReg(), TRI); in getMaxCalleeSavedReg()
401 const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo(); in emitPrologue() local
407 insertCSRSpillsInBlock(*PrologB, CSI, HRI); in emitPrologue()
411 insertCSRRestoresInBlock(*EpilogB, CSI, HRI); in emitPrologue()
416 insertCSRRestoresInBlock(B, CSI, HRI); in emitPrologue()
666 const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo(); in insertCFIInstructionsAt() local
673 auto F = std::find_if(CSI.begin(), CSI.end(), IfR); in insertCFIInstructionsAt()
674 if (F == CSI.end()) in insertCFIInstructionsAt()
915 const CSIVect &CSI, const HexagonRegisterInfo &HRI) const { in insertCSRSpillsInBlock() argument
916 if (CSI.empty()) in insertCSRSpillsInBlock()
923 if (useSpillFunction(MF, CSI)) { in insertCSRSpillsInBlock()
924 unsigned MaxReg = getMaxCalleeSavedReg(CSI, HRI); in insertCSRSpillsInBlock()
934 for (unsigned I = 0; I < CSI.size(); ++I) in insertCSRSpillsInBlock()
935 MBB.addLiveIn(CSI[I].getReg()); in insertCSRSpillsInBlock()
939 for (unsigned i = 0, n = CSI.size(); i < n; ++i) { in insertCSRSpillsInBlock()
940 unsigned Reg = CSI[i].getReg(); in insertCSRSpillsInBlock()
945 int FI = CSI[i].getFrameIdx(); in insertCSRSpillsInBlock()
956 const CSIVect &CSI, const HexagonRegisterInfo &HRI) const { in insertCSRRestoresInBlock() argument
957 if (CSI.empty()) in insertCSRRestoresInBlock()
964 if (useRestoreFunction(MF, CSI)) { in insertCSRRestoresInBlock()
966 unsigned MaxR = getMaxCalleeSavedReg(CSI, HRI); in insertCSRRestoresInBlock()
993 for (unsigned i = 0; i < CSI.size(); ++i) { in insertCSRRestoresInBlock()
994 unsigned Reg = CSI[i].getReg(); in insertCSRRestoresInBlock()
996 int FI = CSI[i].getFrameIdx(); in insertCSRRestoresInBlock()
1196 const TargetRegisterInfo *TRI, std::vector<CalleeSavedInfo> &CSI) const { in assignCalleeSavedSpillSlots()
1209 for (unsigned i = 0, n = CSI.size(); i < n; ++i) { in assignCalleeSavedSpillSlots()
1210 unsigned R = CSI[i].getReg(); in assignCalleeSavedSpillSlots()
1269 CSI.clear(); in assignCalleeSavedSpillSlots()
1281 CSI.push_back(CalleeSavedInfo(S->Reg, FI)); in assignCalleeSavedSpillSlots()
1297 CSI.push_back(CalleeSavedInfo(R, FI)); in assignCalleeSavedSpillSlots()
1303 for (unsigned i = 0, n = CSI.size(); i < n; ++i) { in assignCalleeSavedSpillSlots()
1304 int FI = CSI[i].getFrameIdx(); in assignCalleeSavedSpillSlots()
1306 dbgs() << ' ' << PrintReg(CSI[i].getReg(), TRI) << ":fi#" << FI << ":sp"; in assignCalleeSavedSpillSlots()
1427 const CSIVect &CSI) const { in shouldInlineCSR()
1437 for (unsigned i = 0, n = CSI.size(); i < n; ++i) { in shouldInlineCSR()
1438 unsigned R = CSI[i].getReg(); in shouldInlineCSR()
1458 const CSIVect &CSI) const { in useSpillFunction()
1459 if (shouldInlineCSR(MF, CSI)) in useSpillFunction()
1461 unsigned NumCSI = CSI.size(); in useSpillFunction()
1472 const CSIVect &CSI) const { in useRestoreFunction()
1473 if (shouldInlineCSR(MF, CSI)) in useRestoreFunction()
1475 unsigned NumCSI = CSI.size(); in useRestoreFunction()