Home | History | Annotate | Download | only in SelectionDAG

Lines Matching full:funcinfo

620                                       FunctionLoweringInfo &FuncInfo,
659 FuncInfo.GetLiveOutRegInfo(Regs[Part+i]);
970 DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V);
973 if (It != FuncInfo.ValueMap.end()) {
978 Result = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
1010 (FuncInfo.ValueMap.find(V) != FuncInfo.ValueMap.end());
1014 /// don't look in FuncInfo.ValueMap for a virtual register.
1158 FuncInfo.StaticAllocaMap.find(AI);
1159 if (SI != FuncInfo.StaticAllocaMap.end())
1166 unsigned InReg = FuncInfo.InitializeRegForValue(Inst);
1170 return RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
1177 auto Pers = classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1180 MachineBasicBlock *CatchPadMBB = FuncInfo.MBB;
1190 MachineBasicBlock *TargetMBB = FuncInfo.MBBMap[I.getSuccessor()];
1191 FuncInfo.MBB->addSuccessor(TargetMBB);
1193 auto Pers = classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1198 if (TargetMBB != NextBlock(FuncInfo.MBB) ||
1211 MachineBasicBlock *SuccessorColorMBB = FuncInfo.MBBMap[SuccessorColor];
1224 FuncInfo.MBB->setIsEHFuncletEntry();
1225 FuncInfo.MBB->setIsCleanupFuncletEntry();
1237 FunctionLoweringInfo &FuncInfo, const BasicBlock *EHPadBB,
1242 classifyEHPersonality(FuncInfo.Fn->getPersonalityFn());
1251 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob);
1256 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob);
1262 UnwindDests.emplace_back(FuncInfo.MBBMap[CatchPadBB], Prob);
1272 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1283 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1286 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest)
1288 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests);
1291 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second);
1293 FuncInfo.MBB->normalizeSuccProbs();
1312 if (!FuncInfo.CanLowerReturn) {
1313 unsigned DemoteReg = FuncInfo.DemoteRegister;
1423 DenseMap<const Value *, unsigned>::iterator VMI = FuncInfo.ValueMap.find(V);
1424 if (VMI != FuncInfo.ValueMap.end()) {
1438 if (FuncInfo.isExportedInst(V)) return;
1440 unsigned Reg = FuncInfo.InitializeRegForValue(V);
1454 return FuncInfo.isExportedInst(V);
1464 return FuncInfo.isExportedInst(V);
1475 BranchProbabilityInfo *BPI = FuncInfo.BPI;
1491 if (!FuncInfo.BPI)
1680 MachineBasicBlock *BrMBB = FuncInfo.MBB;
1683 MachineBasicBlock *Succ0MBB = FuncInfo.MBBMap[I.getSuccessor(0)];
1702 MachineBasicBlock *Succ1MBB = FuncInfo.MBBMap[I.getSuccessor(1)];
1750 FuncInfo.MF->erase(SwitchCases[i].ThisBB);
1873 FuncInfo.CreateReg(TLI.getPointerTy(DAG.getDataLayout()));
2018 B.Reg = FuncInfo.CreateReg(B.RegVT);
2100 MachineBasicBlock *InvokeMBB = FuncInfo.MBB;
2104 MachineBasicBlock *Return = FuncInfo.MBBMap[I.getSuccessor(0)];
2138 BranchProbabilityInfo *BPI = FuncInfo.BPI;
2142 findUnwindDestinations(FuncInfo, EHPadBB, EHPadBBProb, UnwindDests);
2163 assert(FuncInfo.MBB->isEHPad() &&
2166 MachineBasicBlock *MBB = FuncInfo.MBB;
2173 const Constant *PersonalityFn = FuncInfo.Fn->getPersonalityFn();
2193 if (FuncInfo.ExceptionPointerVirtReg) {
2196 FuncInfo.ExceptionPointerVirtReg,
2204 FuncInfo.ExceptionSelectorVirtReg,
2261 MachineBasicBlock *IndirectBrMBB = FuncInfo.MBB;
2271 MachineBasicBlock *Succ = FuncInfo.MBBMap[BB];
3065 if (FuncInfo.StaticAllocaMap.count(&I))
3112 assert(FuncInfo.MF->getFrameInfo()->hasVarSizedObjects());
4268 if (int FI = FuncInfo.getArgumentFrameIndex(Arg))
4285 DenseMap<const Value *, unsigned>::iterator VMI = FuncInfo.ValueMap.find(V);
4286 if (VMI != FuncInfo.ValueMap.end())
4303 FuncInfo.ArgDbgValues.push_back(
4307 FuncInfo.ArgDbgValues.push_back(
4459 // virtual register info from the FuncInfo.ValueMap.
4470 // virtual register info from the FuncInfo.ValueMap.
4478 FuncInfo
4479 if (SI != FuncInfo.StaticAllocaMap.end()) {
4545 FuncInfo.StaticAllocaMap.find(AI);
4546 if (SI == FuncInfo.StaticAllocaMap.end())
4601 int FI = FuncInfo.StaticAllocaMap[FnCtx];
4962 int FI = FuncInfo.StaticAllocaMap[Slot];
5133 auto SI = FuncInfo.StaticAllocaMap.find(LifetimeObject);
5134 if (SI == FuncInfo.StaticAllocaMap.end())
5162 SPDescriptor.initialize(BB, FuncInfo.MBBMap[BB], I);
5213 assert(FuncInfo.StaticAllocaMap.count(Slot) &&
5215 int FI = FuncInfo.StaticAllocaMap[Slot];
5219 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, dl,
5262 unsigned VReg = FuncInfo.getCatchPadExceptionPointerVReg(CPI, PtrRC);
5289 LPadToCallSiteMap[FuncInfo.MBBMap[EHPadBB]].push_back(CallSiteIndex);
5335 MMI.addInvoke(FuncInfo.MBBMap[EHPadBB], BeginLabel, EndLabel);
6159 OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]);
6586 SDValue Val = RetValRegs.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(),
6626 SDValue OutVal = OutRegs.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(),
6814 FuncInfo.MF->getFrameInfo()->setHasStackMap();
6962 FuncInfo.MF->getFrameInfo()->setHasPatchPoint();
7276 ISD::NodeType ExtendType = (FuncInfo.PreferredExtendType.find(V) ==
7277 FuncInfo.PreferredExtendType.end())
7279 : FuncInfo.PreferredExtendType[V];
7309 if (!FuncInfo->CanLowerReturn) {
7431 if (!FuncInfo->CanLowerReturn) {
7446 FuncInfo->DemoteRegister = SRetReg;
7471 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
7501 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
7512 FuncInfo->setArgumentFrameIndex(&*I, FI->getIndex());
7524 FuncInfo->ValueMap[&*I] = Reg;
7529 FuncInfo->InitializeRegForValue(&*I);
7558 MachineBasicBlock *SuccMBB = FuncInfo.MBBMap[SuccBB];
7585 RegOut = FuncInfo.CreateRegs(C->getType());
7591 FuncInfo.ValueMap.find(PHIOp);
7592 if (I != FuncInfo.ValueMap.end())
7596 FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) &&
7598 Reg = FuncInfo.CreateRegs(PHIOp->getType());
7612 FuncInfo.PHINodesToUpdate.push_back(std::make_pair(MBBI++, Reg+i));
7644 if (++I == FuncInfo.MF->end())
7739 MachineFunction *CurMF = FuncInfo.MF;
7919 BitVector Dests(FuncInfo.MF->getNumBlockIDs());
7997 FuncInfo.MF->CreateMachineBasicBlock(SI->getParent());
8069 BitVector Dests(FuncInfo.MF->getNumBlockIDs());
8113 MachineFunction *CurMF = FuncInfo.MF;
8116 if (++BBI != FuncInfo.MF->end())
8121 BranchProbabilityInfo *BPI = FuncInfo.BPI;
8434 LeftMBB = FuncInfo.MF->CreateMachineBasicBlock(W.MBB->getBasicBlock());
8435 FuncInfo.MF->insert(BBI, LeftMBB);
8450 RightMBB = FuncInfo.MF->CreateMachineBasicBlock(W.MBB->getBasicBlock());
8451 FuncInfo.MF->insert(BBI, RightMBB);
8470 BranchProbabilityInfo *BPI = FuncInfo.BPI;
8474 MachineBasicBlock *Succ = FuncInfo.MBBMap[I.getCaseSuccessor()];
8482 MachineBasicBlock *DefaultMBB = FuncInfo.MBBMap[SI.getDefaultDest()];
8507 DefaultMBB = FuncInfo.MBBMap[MaxBB];
8522 MachineBasicBlock *SwitchMBB = FuncInfo.MBB;