Home | History | Annotate | Download | only in SelectionDAG

Lines Matching full:funcinfo

641                                       FunctionLoweringInfo &FuncInfo,
679 FuncInfo.GetLiveOutRegInfo(Regs[Part+i]);
941 if (!SDB.FuncInfo.SwiftErrorWorklist.count(SDB.FuncInfo.MBB))
946 SDB.FuncInfo.SwiftErrorWorklist[SDB.FuncInfo.MBB];
948 SDB.FuncInfo.SwiftErrorMap[SDB.FuncInfo.MBB];
1037 DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V);
1040 if (It != FuncInfo.ValueMap.end()) {
1045 Result = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
1075 (FuncInfo.ValueMap.find(V) != FuncInfo.ValueMap.end());
1079 /// don't look in FuncInfo.ValueMap for a virtual register.
1223 FuncInfo.StaticAllocaMap.find(AI);
1224 if (SI != FuncInfo.StaticAllocaMap.end())
1231 unsigned InReg = FuncInfo.InitializeRegForValue(Inst);
1235 return RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
1242 auto Pers = classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1245 MachineBasicBlock *CatchPadMBB = FuncInfo.MBB;
1255 MachineBasicBlock *TargetMBB = FuncInfo.MBBMap[I.getSuccessor()];
1256 FuncInfo.MBB->addSuccessor(TargetMBB);
1258 auto Pers = classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1263 if (TargetMBB != NextBlock(FuncInfo.MBB) ||
1277 SuccessorColor = &FuncInfo.Fn->getEntryBlock();
1281 MachineBasicBlock *SuccessorColorMBB = FuncInfo.MBBMap[SuccessorColor];
1294 FuncInfo.MBB->setIsEHFuncletEntry();
1295 FuncInfo.MBB->setIsCleanupFuncletEntry();
1307 FunctionLoweringInfo &FuncInfo, const BasicBlock *EHPadBB,
1312 classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1321 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob);
1326 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob);
1332 UnwindDests.emplace_back(FuncInfo.MBBMap[CatchPadBB], Prob);
1342 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1353 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1356 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest)
1358 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests);
1361 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second);
1363 FuncInfo.MBB->normalizeSuccProbs();
1394 if (!FuncInfo.CanLowerReturn) {
1395 unsigned DemoteReg = FuncInfo.DemoteRegister;
1502 OutVals.push_back(DAG.getRegister(FuncInfo.SwiftErrorMap[FuncInfo.MBB][0],
1528 DenseMap<const Value *, unsigned>::iterator VMI = FuncInfo.ValueMap.find(V);
1529 if (VMI != FuncInfo.ValueMap.end()) {
1543 if (FuncInfo.isExportedInst(V)) return;
1545 unsigned Reg = FuncInfo.InitializeRegForValue(V);
1559 return FuncInfo.isExportedInst(V);
1569 return FuncInfo.isExportedInst(V);
1580 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1596 if (!FuncInfo.BPI)
1785 MachineBasicBlock *BrMBB = FuncInfo.MBB;
1788 MachineBasicBlock *Succ0MBB = FuncInfo.MBBMap[I.getSuccessor(0)];
1807 MachineBasicBlock *Succ1MBB = FuncInfo.MBBMap[I.getSuccessor(1)];
1855 FuncInfo.MF->erase(SwitchCases[i].ThisBB);
1978 FuncInfo.CreateReg(TLI.getPointerTy(DAG.getDataLayout()));
2171 B.Reg = FuncInfo.CreateReg(B.RegVT);
2253 MachineBasicBlock *InvokeMBB = FuncInfo.MBB;
2257 MachineBasicBlock *Return = FuncInfo.MBBMap[I.getSuccessor(0)];
2304 BranchProbabilityInfo *BPI = FuncInfo.BPI;
2308 findUnwindDestinations(FuncInfo, EHPadBB, EHPadBBProb, UnwindDests);
2329 assert(FuncInfo.MBB->isEHPad() &&
2332 MachineBasicBlock *MBB = FuncInfo.MBB;
2339 const Constant *PersonalityFn = FuncInfo.Fn->getPersonalityFn();
2359 if (FuncInfo.ExceptionPointerVirtReg) {
2362 FuncInfo.ExceptionPointerVirtReg,
2370 FuncInfo.ExceptionSelectorVirtReg,
2427 MachineBasicBlock *IndirectBrMBB = FuncInfo.MBB;
2437 MachineBasicBlock *Succ = FuncInfo.MBBMap[BB];
3387 if (FuncInfo.StaticAllocaMap.count(&I))
3437 assert(FuncInfo.MF->getFrameInfo()->hasVarSizedObjects());
3576 unsigned VReg = FuncInfo.MF->getRegInfo().createVirtualRegister(RC);
3582 FuncInfo.setSwiftErrorVReg(FuncInfo.MBB, I.getOperand(1), VReg);
3611 FuncInfo.findSwiftErrorVReg(FuncInfo.MBB, SV),
4689 if (int FI = FuncInfo.getArgumentFrameIndex(Arg))
4706 DenseMap<const Value *, unsigned>::iterator VMI = FuncInfo.ValueMap.find(V);
4707 if (VMI != FuncInfo.ValueMap.end())
4724 FuncInfo.ArgDbgValues.push_back(
4728 FuncInfo.ArgDbgValues.push_back(
4880 // virtual register info from the FuncInfo.ValueMap.
4891 // virtual register info from the FuncInfo.ValueMap.
4899 FuncInfo
4900 if (SI != FuncInfo.StaticAllocaMap.end()) {
4966 FuncInfo.StaticAllocaMap.find(AI);
4967 if (SI == FuncInfo.StaticAllocaMap.end())
5022 int FI = FuncInfo.StaticAllocaMap[FnCtx];
5383 int FI = FuncInfo.StaticAllocaMap[Slot];
5559 auto SI = FuncInfo.StaticAllocaMap.find(LifetimeObject);
5560 if (SI == FuncInfo.StaticAllocaMap.end())
5624 assert(FuncInfo.StaticAllocaMap.count(Slot) &&
5626 int FI = FuncInfo.StaticAllocaMap[Slot];
5630 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, dl,
5673 unsigned VReg = FuncInfo.getCatchPadExceptionPointerVReg(CPI, PtrRC);
5704 LPadToCallSiteMap[FuncInfo.MBBMap[EHPadBB]].push_back(CallSiteIndex);
5750 MMI.addInvoke(FuncInfo.MBBMap[EHPadBB], BeginLabel, EndLabel);
5790 FuncInfo.findSwiftErrorVReg(FuncInfo.MBB, V),
5828 unsigned VReg = FuncInfo.MF->getRegInfo().createVirtualRegister(RC);
5831 FuncInfo.setSwiftErrorVReg(FuncInfo.MBB, SwiftErrorVal, VReg);
6616 OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]);
7037 SDValue Val = RetValRegs.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(),
7077 SDValue OutVal = OutRegs.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(),
7308 FuncInfo.MF->getFrameInfo()->setHasStackMap();
7459 FuncInfo.MF->getFrameInfo()->setHasPatchPoint();
7803 ISD::NodeType ExtendType = (FuncInfo.PreferredExtendType.find(V) ==
7804 FuncInfo.PreferredExtendType.end())
7806 : FuncInfo.PreferredExtendType[V];
7836 if (!FuncInfo->CanLowerReturn) {
7965 if (!FuncInfo->CanLowerReturn) {
7980 FuncInfo->DemoteRegister = SRetReg;
8005 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
8035 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
8046 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
8054 FuncInfo->SwiftErrorMap[FuncInfo->MBB][0] = Reg;
8066 FuncInfo->ValueMap[&*I] = Reg;
8071 FuncInfo->InitializeRegForValue(&*I);
8100 MachineBasicBlock *SuccMBB = FuncInfo.MBBMap[SuccBB];
8127 RegOut = FuncInfo.CreateRegs(C->getType());
8133 FuncInfo.ValueMap.find(PHIOp);
8134 if (I != FuncInfo.ValueMap.end())
8138 FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) &&
8140 Reg = FuncInfo.CreateRegs(PHIOp->getType());
8154 FuncInfo.PHINodesToUpdate.push_back(
8187 if (++I == FuncInfo.MF->end())
8288 MachineFunction *CurMF = FuncInfo.MF;
8472 BitVector Dests(FuncInfo.MF->getNumBlockIDs());
8550 FuncInfo.MF->CreateMachineBasicBlock(SI->getParent());
8622 BitVector Dests(FuncInfo.MF->getNumBlockIDs());
8666 MachineFunction *CurMF = FuncInfo.MF;
8669 if (++BBI != FuncInfo.MF->end())
8674 BranchProbabilityInfo *BPI = FuncInfo.BPI;
8987 LeftMBB = FuncInfo.MF->CreateMachineBasicBlock(W.MBB->getBasicBlock());
8988 FuncInfo.MF->insert(BBI, LeftMBB);
9003 RightMBB = FuncInfo.MF->CreateMachineBasicBlock(W.MBB->getBasicBlock());
9004 FuncInfo.MF->insert(BBI, RightMBB);
9023 BranchProbabilityInfo *BPI = FuncInfo.BPI;
9027 MachineBasicBlock *Succ = FuncInfo.MBBMap[I.getCaseSuccessor()];
9035 MachineBasicBlock *DefaultMBB = FuncInfo.MBBMap[SI.getDefaultDest()];
9060 DefaultMBB = FuncInfo.MBBMap[MaxBB];
9075 MachineBasicBlock *SwitchMBB = FuncInfo.MBB;