Lines Matching refs:MFI
83 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument
88 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
90 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset()
101 MFI->setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset()
104 MFI->setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
105 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
118 MachineFrameInfo *MFI = Fn.getFrameInfo(); in calculateFrameObjectOffsets() local
135 for (int i = MFI->getObjectIndexBegin(); i != 0; ++i) { in calculateFrameObjectOffsets()
141 FixedOff = -MFI->getObjectOffset(i); in calculateFrameObjectOffsets()
145 FixedOff = MFI->getObjectOffset(i) + MFI->getObjectSize(i); in calculateFrameObjectOffsets()
152 unsigned MaxAlign = MFI->getMaxAlignment(); in calculateFrameObjectOffsets()
160 if (MFI->getUseLocalStackAllocationBlock()) { in calculateFrameObjectOffsets()
161 unsigned Align = MFI->getLocalFrameMaxAlign(); in calculateFrameObjectOffsets()
169 for (unsigned i = 0, e = MFI->getLocalFrameObjectCount(); i != e; ++i) { in calculateFrameObjectOffsets()
170 std::pair<int, int64_t> Entry = MFI->getLocalFrameObjectMap(i); in calculateFrameObjectOffsets()
174 MFI->setObjectOffset(Entry.first, FIOffset); in calculateFrameObjectOffsets()
177 Offset += MFI->getLocalFrameSize(); in calculateFrameObjectOffsets()
186 for (unsigned i = 0, e = MFI->getObjectIndexEnd(); i != e; ++i) { in calculateFrameObjectOffsets()
187 if (MFI->isObjectPreAllocated(i) && in calculateFrameObjectOffsets()
188 MFI->getUseLocalStackAllocationBlock()) in calculateFrameObjectOffsets()
190 if (MFI->isDeadObjectIndex(i)) in calculateFrameObjectOffsets()
193 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
202 if (MFI->adjustsStack() && TFI.hasReservedCallFrame(Fn)) in calculateFrameObjectOffsets()
203 Offset += MFI->getMaxCallFrameSize(); in calculateFrameObjectOffsets()
211 if (MFI->adjustsStack() || MFI->hasVarSizedObjects() || in calculateFrameObjectOffsets()
212 (RegInfo->needsStackRealignment(Fn) && MFI->getObjectIndexEnd() != 0)) in calculateFrameObjectOffsets()
226 MFI->setStackSize(StackSize); in calculateFrameObjectOffsets()