Lines Matching refs:MFI

100 static inline void AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx,  in AdjustStackOffset()  argument
105 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
107 Align Alignment = MFI.getObjectAlign(FrameIdx); in AdjustStackOffset()
119 MFI.setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset()
123 MFI.setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
124 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
137 MachineFrameInfo &MFI = Fn.getFrameInfo(); in calculateFrameObjectOffsets() local
154 for (int i = MFI.getObjectIndexBegin(); i != 0; ++i) { in calculateFrameObjectOffsets()
160 FixedOff = -MFI.getObjectOffset(i); in calculateFrameObjectOffsets()
164 FixedOff = MFI.getObjectOffset(i) + MFI.getObjectSize(i); in calculateFrameObjectOffsets()
171 Align MaxAlign = MFI.getMaxAlign(); in calculateFrameObjectOffsets()
179 if (MFI.getUseLocalStackAllocationBlock()) { in calculateFrameObjectOffsets()
180 Align Alignment = MFI.getLocalFrameMaxAlign(); in calculateFrameObjectOffsets()
188 for (unsigned i = 0, e = MFI.getLocalFrameObjectCount(); i != e; ++i) { in calculateFrameObjectOffsets()
189 std::pair<int, int64_t> Entry = MFI.getLocalFrameObjectMap(i); in calculateFrameObjectOffsets()
193 MFI.setObjectOffset(Entry.first, FIOffset); in calculateFrameObjectOffsets()
196 Offset += MFI.getLocalFrameSize(); in calculateFrameObjectOffsets()
205 for (unsigned i = 0, e = MFI.getObjectIndexEnd(); i != e; ++i) { in calculateFrameObjectOffsets()
206 if (MFI.isObjectPreAllocated(i) && in calculateFrameObjectOffsets()
207 MFI.getUseLocalStackAllocationBlock()) in calculateFrameObjectOffsets()
209 if (MFI.isDeadObjectIndex(i)) in calculateFrameObjectOffsets()
212 AdjustStackOffset(MFI, i, StackGrowsDown, Offset, MaxAlign); in calculateFrameObjectOffsets()
221 if (MFI.adjustsStack() && TFI.hasReservedCallFrame(Fn)) in calculateFrameObjectOffsets()
222 Offset += MFI.getMaxCallFrameSize(); in calculateFrameObjectOffsets()
230 if (MFI.adjustsStack() || MFI.hasVarSizedObjects() || in calculateFrameObjectOffsets()
231 (RegInfo->needsStackRealignment(Fn) && MFI.getObjectIndexEnd() != 0)) in calculateFrameObjectOffsets()
243 MFI.setStackSize(StackSize); in calculateFrameObjectOffsets()