Lines Matching refs:AFI
195 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in getArgumentPopSize() local
210 ArgumentPopSize = AFI->getArgumentStackToRestore(); in getArgumentPopSize()
258 const AArch64FunctionInfo *AFI, bool IsWin64, in getFixedObjectSize() argument
266 const unsigned VarArgsArea = AFI->getVarArgsGPRSize(); in getFixedObjectSize()
275 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in getSVEStackSize() local
276 return StackOffset::getScalable((int64_t)AFI->getStackSizeSVE()); in getSVEStackSize()
288 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in canUseRedZone() local
289 uint64_t NumBytes = AFI->getLocalStackSize(); in canUseRedZone()
500 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in emitCalleeSavedFrameMoves() local
503 StackOffset::getFixed(AFI->getCalleeSavedStackSize(MFI)); in emitCalleeSavedFrameMoves()
595 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in shouldCombineCSRLocalStackBump() local
600 if (AFI->getLocalStackSize() == 0) in shouldCombineCSRLocalStackBump()
611 if (needsWinCFI(MF) && AFI->getCalleeSavedStackSize() > 0 && in shouldCombineCSRLocalStackBump()
1035 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in emitPrologue() local
1048 AFI->setHasRedZone(false); in emitPrologue()
1080 Optional<int> TBPI = AFI->getTaggedBasePointerIndex(); in emitPrologue()
1082 AFI->setTaggedBasePointerOffset(-MFI.getObjectOffset(*TBPI)); in emitPrologue()
1084 AFI->setTaggedBasePointerOffset(MFI.getStackSize()); in emitPrologue()
1096 if (!AFI->hasStackFrame() && !windowsRequiresStackProbe(MF, NumBytes)) { in emitPrologue()
1101 AFI->setLocalStackSize(NumBytes); in emitPrologue()
1107 AFI->setHasRedZone(true); in emitPrologue()
1136 unsigned FixedObject = getFixedObjectSize(MF, AFI, IsWin64, IsFunclet); in emitPrologue()
1138 auto PrologueSaveSize = AFI->getCalleeSavedStackSize() + FixedObject; in emitPrologue()
1140 AFI->setLocalStackSize(NumBytes - PrologueSaveSize); in emitPrologue()
1162 fixupCalleeSaveRestoreStackOffset(*MBBI, AFI->getLocalStackSize(), in emitPrologue()
1170 int64_t FPOffset = AFI->getCalleeSaveBaseToFrameRecordOffset(); in emitPrologue()
1173 FPOffset += AFI->getLocalStackSize(); in emitPrologue()
1283 if (int64_t CalleeSavedSize = AFI->getSVECalleeSavedStackSize()) { in emitPrologue()
1345 AFI->setStackRealigned(true); in emitPrologue()
1462 AFI->getCalleeSaveBaseToFrameRecordOffset() - in emitPrologue()
1463 AFI->getCalleeSavedStackSize(); in emitPrologue()
1557 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in emitEpilogue() local
1599 unsigned FixedObject = getFixedObjectSize(MF, AFI, IsWin64, IsFunclet); in emitEpilogue()
1602 auto PrologueSaveSize = AFI->getCalleeSavedStackSize() + FixedObject; in emitEpilogue()
1608 AFI->setLocalStackSize(NumBytes - PrologueSaveSize); in emitEpilogue()
1644 fixupCalleeSaveRestoreStackOffset(*LastPopI, AFI->getLocalStackSize(), in emitEpilogue()
1683 if (int64_t CalleeSavedSize = AFI->getSVECalleeSavedStackSize()) { in emitEpilogue()
1700 if (AFI->isStackRealigned()) { in emitEpilogue()
1701 if (int64_t CalleeSavedSize = AFI->getSVECalleeSavedStackSize()) in emitEpilogue()
1709 if (AFI->getSVECalleeSavedStackSize()) { in emitEpilogue()
1765 if (!IsFunclet && (MFI.hasVarSizedObjects() || AFI->isStackRealigned())) { in emitEpilogue()
1768 StackOffset::getFixed(-AFI->getCalleeSaveBaseToFrameRecordOffset()), in emitEpilogue()
1824 const auto *AFI = MF.getInfo<AArch64FunctionInfo>(); in getFPOffset() local
1829 getFixedObjectSize(MF, AFI, IsWin64, /*IsFunclet=*/false); in getFPOffset()
1830 int64_t CalleeSaveSize = AFI->getCalleeSavedStackSize(MF.getFrameInfo()); in getFPOffset()
1832 CalleeSaveSize - AFI->getCalleeSaveBaseToFrameRecordOffset(); in getFPOffset()
1870 const auto *AFI = MF.getInfo<AArch64FunctionInfo>(); in resolveFrameOffsetReference() local
1876 !isFixed && ObjectOffset >= -((int)AFI->getCalleeSavedStackSize(MFI)); in resolveFrameOffsetReference()
1885 if (AFI->hasStackFrame() && !isSVE) { in resolveFrameOffsetReference()
1950 StackOffset::get(-AFI->getCalleeSaveBaseToFrameRecordOffset(), ObjectOffset); in resolveFrameOffsetReference()
1953 StackOffset::get(MFI.getStackSize() - AFI->getCalleeSavedStackSize(), in resolveFrameOffsetReference()
1991 Offset -= AFI->getLocalStackSize(); in resolveFrameOffsetReference()
2101 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in computeCalleeSaveRegisterPairs() local
2112 int ByteOffset = AFI->getCalleeSavedStackSize(); in computeCalleeSaveRegisterPairs()
2125 int ScalableByteOffset = AFI->getSVECalleeSavedStackSize(); in computeCalleeSaveRegisterPairs()
2229 if (AFI->hasCalleeSaveStackFreeSpace() && !NeedsWinCFI && in computeCalleeSaveRegisterPairs()
2259 AFI->setCalleeSaveBaseToFrameRecordOffset(Offset); in computeCalleeSaveRegisterPairs()
2271 if (AFI->hasCalleeSaveStackFreeSpace()) in computeCalleeSaveRegisterPairs()
2552 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in determineCalleeSaves() local
2654 AFI->setHasStackFrame(true); in determineCalleeSaves()
2697 AFI->getCalleeSavedStackSize() == AlignedCSStackSize) && in determineCalleeSaves()
2702 AFI->setCalleeSavedStackSize(AlignedCSStackSize); in determineCalleeSaves()
2703 AFI->setCalleeSaveStackHasFreeSpace(AlignedCSStackSize != CSStackSize); in determineCalleeSaves()
2704 AFI->setSVECalleeSavedStackSize(alignTo(SVECSStackSize, 16)); in determineCalleeSaves()
2724 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in enableStackSlotScavenging() local
2725 return AFI->hasCalleeSaveStackFreeSpace(); in enableStackSlotScavenging()
2845 AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in processFunctionBeforeFrameFinalized() local
2846 AFI->setStackSizeSVE(alignTo(SVEStackSize, 16U)); in processFunctionBeforeFrameFinalized()
2847 AFI->setMinMaxSVECSFrameIndex(MinCSFrameIndex, MaxCSFrameIndex); in processFunctionBeforeFrameFinalized()
2864 getFixedObjectSize(MF, AFI, /*IsWin64*/ true, /*IsFunclet*/ false); in processFunctionBeforeFrameFinalized()
3434 const AArch64FunctionInfo &AFI = *MF.getInfo<AArch64FunctionInfo>(); in orderFrameObjects() local
3435 Optional<int> TBPI = AFI.getTaggedBasePointerIndex(); in orderFrameObjects()