Lines Matching refs:Context

103                        MachineBasicBlock::iterator I, CallContext &Context);
105 void adjustCallSequence(MachineFunction &MF, const CallContext &Context);
260 CallContext Context; in runOnMachineFunction() local
261 collectCallInfo(MF, MBB, MI, Context); in runOnMachineFunction()
262 CallSeqVector.push_back(Context); in runOnMachineFunction()
356 CallContext &Context) { in collectCallInfo() argument
365 Context.FrameSetup = FrameSetup; in collectCallInfo()
373 Context.NoStackParams = true; in collectCallInfo()
397 Context.SPCopy = &*J++; in collectCallInfo()
398 StackPtr = Context.SPCopy->getOperand(0).getReg(); in collectCallInfo()
407 Context.ArgStoreVector.resize(MaxAdjust, nullptr); in collectCallInfo()
445 assert((size_t)StackDisp < Context.ArgStoreVector.size() && in collectCallInfo()
449 if (Context.ArgStoreVector[StackDisp] != nullptr) in collectCallInfo()
451 Context.ArgStoreVector[StackDisp] = &*I; in collectCallInfo()
469 Context.Call = &*I; in collectCallInfo()
475 auto MMI = Context.ArgStoreVector.begin(), MME = Context.ArgStoreVector.end(); in collectCallInfo()
476 for (; MMI != MME; ++MMI, Context.ExpectedDist += SlotSize) in collectCallInfo()
481 if (MMI == Context.ArgStoreVector.begin()) in collectCallInfo()
490 Context.UsePush = true; in collectCallInfo()
494 const CallContext &Context) { in adjustCallSequence() argument
498 MachineBasicBlock::iterator FrameSetup = Context.FrameSetup; in adjustCallSequence()
500 TII->setFrameAdjustment(*FrameSetup, Context.ExpectedDist); in adjustCallSequence()
507 for (int Idx = (Context.ExpectedDist >> Log2SlotSize) - 1; Idx >= 0; --Idx) { in adjustCallSequence()
508 MachineBasicBlock::iterator Store = *Context.ArgStoreVector[Idx]; in adjustCallSequence()
524 Push = BuildMI(MBB, Context.Call, DL, TII->get(PushOpcode)).add(PushOp); in adjustCallSequence()
536 BuildMI(MBB, Context.Call, DL, TII->get(X86::IMPLICIT_DEF), UndefReg); in adjustCallSequence()
537 BuildMI(MBB, Context.Call, DL, TII->get(X86::INSERT_SUBREG), Reg) in adjustCallSequence()
552 Push = BuildMI(MBB, Context.Call, DL, TII->get(PushOpcode)); in adjustCallSequence()
561 Push = BuildMI(MBB, Context.Call, DL, TII->get(PushOpcode)) in adjustCallSequence()
583 if (Context.SPCopy && MRI->use_empty(Context.SPCopy->getOperand(0).getReg())) in adjustCallSequence()
584 Context.SPCopy->eraseFromParent(); in adjustCallSequence()