Lines Matching refs:FuncInfo

135                              const SIMachineFunctionInfo &FuncInfo,  in buildPrologSpill()  argument
159 const SIMachineFunctionInfo &FuncInfo, in buildEpilogRestore() argument
203 const SIMachineFunctionInfo *FuncInfo, in initLiveUnits() argument
230 SIMachineFunctionInfo *FuncInfo; member in llvm::PrologEpilogSGPRSpillBuilder
246 initLiveUnits(LiveUnits, TRI, FuncInfo, MF, MBB, MI, /*IsProlog*/ true); in saveToMemory()
260 buildPrologSpill(ST, TRI, *FuncInfo, LiveUnits, MF, MBB, MI, DL, TmpVGPR, in saveToMemory()
271 FuncInfo->getSGPRSpillToPhysicalVGPRLanes(FI); in saveToVGPRLane()
295 initLiveUnits(LiveUnits, TRI, FuncInfo, MF, MBB, MI, /*IsProlog*/ false); in restoreFromMemory()
306 buildEpilogRestore(ST, TRI, *FuncInfo, LiveUnits, MF, MBB, MI, DL, in restoreFromMemory()
317 FuncInfo->getSGPRSpillToPhysicalVGPRLanes(FI); in restoreFromVGPRLane()
346 FuncInfo(MF.getInfo<SIMachineFunctionInfo>()), TII(TII), TRI(TRI), in PrologEpilogSGPRSpillBuilder()
892 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in buildScratchExecCopy() local
894 initLiveUnits(LiveUnits, TRI, FuncInfo, MF, MBB, MBBI, IsProlog); in buildScratchExecCopy()
919 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in emitCSRSpillStores() local
929 FuncInfo->splitWWMSpillRegisters(MF, WWMCalleeSavedRegs, WWMScratchRegs); in emitCSRSpillStores()
940 buildPrologSpill(ST, TRI, *FuncInfo, LiveUnits, MF, MBB, MBBI, DL, in emitCSRSpillStores()
966 Register FramePtrReg = FuncInfo->getFrameOffsetReg(); in emitCSRSpillStores()
968 for (const auto &Spill : FuncInfo->getPrologEpilogSGPRSpills()) { in emitCSRSpillStores()
986 FuncInfo->getAllScratchSGPRCopyDstRegs(ScratchSGPRs); in emitCSRSpillStores()
1005 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in emitCSRSpillRestores() local
1009 Register FramePtrReg = FuncInfo->getFrameOffsetReg(); in emitCSRSpillRestores()
1011 for (const auto &Spill : FuncInfo->getPrologEpilogSGPRSpills()) { in emitCSRSpillRestores()
1032 FuncInfo->splitWWMSpillRegisters(MF, WWMCalleeSavedRegs, WWMScratchRegs); in emitCSRSpillRestores()
1043 buildEpilogRestore(ST, TRI, *FuncInfo, LiveUnits, MF, MBB, MBBI, DL, in emitCSRSpillRestores()
1071 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in emitPrologue() local
1072 if (FuncInfo->isEntryFunction()) { in emitPrologue()
1083 Register StackPtrReg = FuncInfo->getStackPtrOffsetReg(); in emitPrologue()
1084 Register FramePtrReg = FuncInfo->getFrameOffsetReg(); in emitPrologue()
1094 if (FuncInfo->isChainFunction()) { in emitPrologue()
1118 FuncInfo->isChainFunction() ? Register() : StackPtrReg, in emitPrologue()
1123 FuncInfo->getScratchSGPRCopyDstReg(FramePtrReg); in emitPrologue()
1125 initLiveUnits(LiveUnits, TRI, FuncInfo, MF, MBB, MBBI, /*IsProlog*/ true); in emitPrologue()
1132 FuncInfo->getPrologEpilogSGPRSaveRestoreInfo(FramePtrReg), MBB, MBBI, in emitPrologue()
1170 FuncInfo->setIsStackRealigned(true); in emitPrologue()
1203 bool FPSaved = FuncInfo->hasPrologEpilogSGPRSpillEntry(FramePtrReg); in emitPrologue()
1213 bool BPSaved = FuncInfo->hasPrologEpilogSGPRSpillEntry(BasePtrReg); in emitPrologue()
1223 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in emitEpilogue() local
1224 if (FuncInfo->isEntryFunction()) in emitEpilogue()
1246 uint32_t RoundedSize = FuncInfo->isStackRealigned() in emitEpilogue()
1249 const Register StackPtrReg = FuncInfo->getStackPtrOffsetReg(); in emitEpilogue()
1250 Register FramePtrReg = FuncInfo->getFrameOffsetReg(); in emitEpilogue()
1251 bool FPSaved = FuncInfo->hasPrologEpilogSGPRSpillEntry(FramePtrReg); in emitEpilogue()
1255 FuncInfo->getScratchSGPRCopyDstReg(FramePtrReg); in emitEpilogue()
1261 initLiveUnits(LiveUnits, TRI, FuncInfo, MF, MBB, MBBI, /*IsProlog*/ false); in emitEpilogue()
1304 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in allSGPRSpillsAreDead() local
1309 !FuncInfo->checkIndexInPrologEpilogSGPRSpills(I)) { in allSGPRSpillsAreDead()
1336 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in processFunctionBeforeFrameFinalized() local
1342 FuncInfo->isChainFunction() && !MF.getFrameInfo().hasTailCall(); in processFunctionBeforeFrameFinalized()
1343 if (!FuncInfo->isEntryFunction() && !IsChainWithoutCalls) { in processFunctionBeforeFrameFinalized()
1344 for (Register Reg : FuncInfo->getWWMReservedRegs()) { in processFunctionBeforeFrameFinalized()
1346 FuncInfo->allocateWWMSpill(MF, Reg, TRI->getSpillSize(*RC), in processFunctionBeforeFrameFinalized()
1351 const bool SpillVGPRToAGPR = ST.hasMAIInsts() && FuncInfo->hasSpilledVGPRs() in processFunctionBeforeFrameFinalized()
1375 if (FuncInfo->allocateVGPRSpillToAGPR(MF, FI, in processFunctionBeforeFrameFinalized()
1395 FuncInfo->setVGPRToAGPRSpillDead(FI); in processFunctionBeforeFrameFinalized()
1398 for (MCPhysReg Reg : FuncInfo->getVGPRSpillAGPRs()) in processFunctionBeforeFrameFinalized()
1401 for (MCPhysReg Reg : FuncInfo->getAGPRSpillVGPRs()) in processFunctionBeforeFrameFinalized()
1425 FuncInfo->removeDeadFrameIndices(MFI, /*ResetSGPRSpillStackIDs*/ true); in processFunctionBeforeFrameFinalized()
1436 RS->addScavengingFrameIndex(FuncInfo->getScavengeFI(MFI, *TRI)); in processFunctionBeforeFrameFinalized()
1452 SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in processFunctionBeforeFrameIndicesReplaced() local
1459 Register VGPRForAGPRCopy = FuncInfo->getVGPRForAGPRCopy(); in processFunctionBeforeFrameIndicesReplaced()
1468 FuncInfo->setVGPRForAGPRCopy(UnusedLowVGPR); in processFunctionBeforeFrameIndicesReplaced()
1474 Register LongBranchReservedReg = FuncInfo->getLongBranchReservedReg(); in processFunctionBeforeFrameIndicesReplaced()
1482 FuncInfo->setLongBranchReservedReg(UnusedLowSGPR); in processFunctionBeforeFrameIndicesReplaced()
1690 const SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); in assignCalleeSavedSpillSlots() local
1693 Register FramePtrReg = FuncInfo->getFrameOffsetReg(); in assignCalleeSavedSpillSlots()
1696 FuncInfo->getScratchSGPRCopyDstReg(FramePtrReg); in assignCalleeSavedSpillSlots()
1698 FuncInfo->getScratchSGPRCopyDstReg(BasePtrReg); in assignCalleeSavedSpillSlots()