• Home
  • Raw
  • Download

Lines Matching refs:AFI

136   ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();  in emitPrologue()  local
141 assert(!AFI->isThumb1OnlyFunction() && in emitPrologue()
143 bool isARM = !AFI->isThumbFunction(); in emitPrologue()
144 unsigned VARegSaveSize = AFI->getVarArgsRegSaveSize(); in emitPrologue()
166 if (!AFI->hasStackFrame()) { in emitPrologue()
184 AFI->addGPRCalleeSavedArea1Frame(FI); in emitPrologue()
194 AFI->addGPRCalleeSavedArea2Frame(FI); in emitPrologue()
197 AFI->addGPRCalleeSavedArea1Frame(FI); in emitPrologue()
205 if (Reg < ARM::D8 || Reg >= ARM::D8 + AFI->getNumAlignedDPRCS2Regs()) { in emitPrologue()
206 AFI->addDPRCalleeSavedAreaFrame(FI); in emitPrologue()
222 unsigned ADDriOpc = !AFI->isThumbFunction() ? ARM::ADDri : ARM::t2ADDri; in emitPrologue()
238 AFI->setFramePtrSpillOffset(MFI->getObjectOffset(FramePtrSpillFI) + in emitPrologue()
240 AFI->setGPRCalleeSavedArea1Offset(GPRCS1Offset); in emitPrologue()
241 AFI->setGPRCalleeSavedArea2Offset(GPRCS2Offset); in emitPrologue()
242 AFI->setDPRCalleeSavedAreaOffset(DPRCSOffset); in emitPrologue()
254 if (AFI->getNumAlignedDPRCS2Regs() > 0) { in emitPrologue()
255 MBBI = skipAlignedDPRCS2Spills(MBBI, AFI->getNumAlignedDPRCS2Regs()); in emitPrologue()
277 AFI->setShouldRestoreSPFromFP(true); in emitPrologue()
282 AFI->getFramePtrSpillOffset()); in emitPrologue()
284 AFI->setGPRCalleeSavedArea1Size(GPRCS1Size); in emitPrologue()
285 AFI->setGPRCalleeSavedArea2Size(GPRCS2Size); in emitPrologue()
286 AFI->setDPRCalleeSavedAreaSize(DPRCSSize); in emitPrologue()
292 if (!AFI->getNumAlignedDPRCS2Regs() && RegInfo->needsStackRealignment(MF)) { in emitPrologue()
294 assert (!AFI->isThumb1OnlyFunction()); in emitPrologue()
295 if (!AFI->isThumbFunction()) { in emitPrologue()
318 AFI->setShouldRestoreSPFromFP(true); in emitPrologue()
342 AFI->setShouldRestoreSPFromFP(true); in emitPrologue()
352 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in emitEpilogue() local
356 assert(!AFI->isThumb1OnlyFunction() && in emitEpilogue()
358 bool isARM = !AFI->isThumbFunction(); in emitEpilogue()
360 unsigned VARegSaveSize = AFI->getVarArgsRegSaveSize(); in emitEpilogue()
369 if (!AFI->hasStackFrame()) { in emitEpilogue()
384 NumBytes -= (AFI->getGPRCalleeSavedArea1Size() + in emitEpilogue()
385 AFI->getGPRCalleeSavedArea2Size() + in emitEpilogue()
386 AFI->getDPRCalleeSavedAreaSize()); in emitEpilogue()
390 if (AFI->shouldRestoreSPFromFP()) { in emitEpilogue()
391 NumBytes = AFI->getFramePtrSpillOffset() - NumBytes; in emitEpilogue()
426 if (AFI->getDPRCalleeSavedAreaSize()) { in emitEpilogue()
433 if (AFI->getGPRCalleeSavedArea2Size()) MBBI++; in emitEpilogue()
434 if (AFI->getGPRCalleeSavedArea1Size()) MBBI++; in emitEpilogue()
495 const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in ResolveFrameIndexReference() local
497 int FPOffset = Offset - AFI->getFramePtrSpillOffset(); in ResolveFrameIndexReference()
502 if (AFI->isGPRCalleeSavedArea1Frame(FI)) in ResolveFrameIndexReference()
503 return Offset - AFI->getGPRCalleeSavedArea1Offset(); in ResolveFrameIndexReference()
504 else if (AFI->isGPRCalleeSavedArea2Frame(FI)) in ResolveFrameIndexReference()
505 return Offset - AFI->getGPRCalleeSavedArea2Offset(); in ResolveFrameIndexReference()
506 else if (AFI->isDPRCalleeSavedAreaFrame(FI)) in ResolveFrameIndexReference()
507 return Offset - AFI->getDPRCalleeSavedAreaOffset(); in ResolveFrameIndexReference()
529 if (hasFP(MF) && AFI->hasStackFrame()) { in ResolveFrameIndexReference()
537 if (AFI->isThumb2Function()) { in ResolveFrameIndexReference()
546 } else if (AFI->isThumb2Function()) { in ResolveFrameIndexReference()
654 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in emitPopInst() local
675 LdmOpc = AFI->isThumbFunction() ? ARM::t2LDMIA_RET : ARM::LDMIA_RET; in emitPopInst()
734 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in emitAlignedDPRCS2Spills() local
768 bool isThumb = AFI->isThumbFunction(); in emitAlignedDPRCS2Spills()
769 assert(!AFI->isThumb1OnlyFunction() && "Can't realign stack for thumb1"); in emitAlignedDPRCS2Spills()
770 AFI->setShouldRestoreSPFromFP(true); in emitAlignedDPRCS2Spills()
893 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in emitAlignedDPRCS2Restores() local
910 bool isThumb = AFI->isThumbFunction(); in emitAlignedDPRCS2Restores()
911 assert(!AFI->isThumb1OnlyFunction() && "Can't realign stack for thumb1"); in emitAlignedDPRCS2Restores()
974 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in spillCalleeSavedRegisters() local
976 unsigned PushOpc = AFI->isThumbFunction() ? ARM::t2STMDB_UPD : ARM::STMDB_UPD; in spillCalleeSavedRegisters()
977 unsigned PushOneOpc = AFI->isThumbFunction() ? in spillCalleeSavedRegisters()
980 unsigned NumAlignedDPRCS2Regs = AFI->getNumAlignedDPRCS2Regs(); in spillCalleeSavedRegisters()
1005 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in restoreCalleeSavedRegisters() local
1006 bool isVarArg = AFI->getVarArgsRegSaveSize() > 0; in restoreCalleeSavedRegisters()
1007 unsigned NumAlignedDPRCS2Regs = AFI->getNumAlignedDPRCS2Regs(); in restoreCalleeSavedRegisters()
1014 unsigned PopOpc = AFI->isThumbFunction() ? ARM::t2LDMIA_UPD : ARM::LDMIA_UPD; in restoreCalleeSavedRegisters()
1015 unsigned LdrOpc = AFI->isThumbFunction() ? ARM::t2LDR_POST :ARM::LDR_POST_IMM; in restoreCalleeSavedRegisters()
1047 const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in estimateRSStackSizeLimit() local
1075 if (TFI->hasFP(MF) && AFI->hasStackFrame()) in estimateRSStackSizeLimit()
1161 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in processFunctionBeforeCalleeSavedScan() local
1171 if (AFI->isThumb2Function() && in processFunctionBeforeCalleeSavedScan()
1175 if (AFI->isThumb1OnlyFunction()) { in processFunctionBeforeCalleeSavedScan()
1177 if (AFI->getVarArgsRegSaveSize() > 0) in processFunctionBeforeCalleeSavedScan()
1254 if (!LRSpilled && AFI->isThumb1OnlyFunction()) { in processFunctionBeforeCalleeSavedScan()
1282 ((hasFP(MF) && AFI->hasStackFrame()) ? 4:0) >= in processFunctionBeforeCalleeSavedScan()
1289 AFI->setHasStackFrame(true); in processFunctionBeforeCalleeSavedScan()
1316 if (!AFI->isThumb1OnlyFunction() || in processFunctionBeforeCalleeSavedScan()
1324 } else if (!UnspilledCS2GPRs.empty() && !AFI->isThumb1OnlyFunction()) { in processFunctionBeforeCalleeSavedScan()
1346 (!AFI->isThumb1OnlyFunction() || isARMLowRegister(Reg) || in processFunctionBeforeCalleeSavedScan()
1353 if (!AFI->isThumb1OnlyFunction()) { in processFunctionBeforeCalleeSavedScan()
1367 } else if (!AFI->isThumb1OnlyFunction()) { in processFunctionBeforeCalleeSavedScan()
1380 AFI->setLRIsSpilledForFarJump(true); in processFunctionBeforeCalleeSavedScan()
1404 ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); in eliminateCallFramePseudoInstr() local
1405 assert(!AFI->isThumb1OnlyFunction() && in eliminateCallFramePseudoInstr()
1407 bool isARM = !AFI->isThumbFunction(); in eliminateCallFramePseudoInstr()