• Home
  • Raw
  • Download

Lines Matching refs:FuncInfo

339   FuncInfo(new FunctionLoweringInfo(TM)),  in SelectionDAGISel()
341 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), in SelectionDAGISel()
354 delete FuncInfo; in ~SelectionDAGISel()
440 FuncInfo->set(Fn, *MF, CurDAG); in runOnMachineFunction()
443 FuncInfo->BPI = &getAnalysis<BranchProbabilityInfo>(); in runOnMachineFunction()
445 FuncInfo->BPI = nullptr; in runOnMachineFunction()
460 if (!FuncInfo->ArgDbgValues.empty()) in runOnMachineFunction()
467 for (unsigned i = 0, e = FuncInfo->ArgDbgValues.size(); i != e; ++i) { in runOnMachineFunction()
468 MachineInstr *MI = FuncInfo->ArgDbgValues[e-i-1]; in runOnMachineFunction()
555 I = FuncInfo->RegFixups.begin(), E = FuncInfo->RegFixups.end(); in runOnMachineFunction()
562 DenseMap<unsigned, unsigned>::iterator J = FuncInfo->RegFixups.find(To); in runOnMachineFunction()
581 FuncInfo->clear(); in runOnMachineFunction()
644 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); in ComputeLiveOutVRegInfo()
661 BlockNumber = FuncInfo->MBB->getNumber(); in CodeGenAndEmitDAG()
663 FuncInfo->MBB->getBasicBlock()->getName().str(); in CodeGenAndEmitDAG()
779 Scheduler->Run(CurDAG, FuncInfo->MBB); in CodeGenAndEmitDAG()
786 MachineBasicBlock *FirstMBB = FuncInfo->MBB, *LastMBB; in CodeGenAndEmitDAG()
792 LastMBB = FuncInfo->MBB = Scheduler->EmitSchedule(FuncInfo->InsertPt); in CodeGenAndEmitDAG()
832 << FuncInfo->MBB->getNumber() in DoInstructionSelection()
833 << " '" << FuncInfo->MBB->getName() << "'\n"); in DoInstructionSelection()
895 MachineBasicBlock *MBB = FuncInfo->MBB; in PrepareEHLandingPad()
905 BuildMI(*MBB, FuncInfo->InsertPt, SDB->getCurDebugLoc(), II) in PrepareEHLandingPad()
912 FuncInfo->ExceptionPointerVirtReg = MBB->addLiveIn(Reg, PtrRC); in PrepareEHLandingPad()
916 FuncInfo->ExceptionSelectorVirtReg = MBB->addLiveIn(Reg, PtrRC); in PrepareEHLandingPad()
923 FunctionLoweringInfo *FuncInfo) { in isFoldedOrDeadInstruction() argument
928 !FuncInfo->isExportedInst(I); // Exported instrs must be computed. in isFoldedOrDeadInstruction()
1045 FastIS = getTargetLowering()->createFastISel(*FuncInfo, LibInfo); in SelectAllBasicBlocks()
1057 if (!FuncInfo->VisitedBBs.count(*PI)) { in SelectAllBasicBlocks()
1066 FuncInfo->ComputePHILiveOutRegInfo(PN); in SelectAllBasicBlocks()
1070 FuncInfo->InvalidatePHILiveOutRegInfo(PN); in SelectAllBasicBlocks()
1073 FuncInfo->VisitedBBs.insert(LLVMBB); in SelectAllBasicBlocks()
1080 FuncInfo->MBB = FuncInfo->MBBMap[LLVMBB]; in SelectAllBasicBlocks()
1081 FuncInfo->InsertPt = FuncInfo->MBB->getFirstNonPHI(); in SelectAllBasicBlocks()
1084 FuncInfo->ExceptionPointerVirtReg = 0; in SelectAllBasicBlocks()
1085 FuncInfo->ExceptionSelectorVirtReg = 0; in SelectAllBasicBlocks()
1086 if (FuncInfo->MBB->isLandingPad()) in SelectAllBasicBlocks()
1115 if (FuncInfo->InsertPt != FuncInfo->MBB->begin()) in SelectAllBasicBlocks()
1116 FastIS->setLastLocalValue(std::prev(FuncInfo->InsertPt)); in SelectAllBasicBlocks()
1127 if (isFoldedOrDeadInstruction(Inst, FuncInfo)) { in SelectAllBasicBlocks()
1146 if (!isFoldedOrDeadInstruction(BeforeInst, FuncInfo)) in SelectAllBasicBlocks()
1174 unsigned &R = FuncInfo->ValueMap[Inst]; in SelectAllBasicBlocks()
1176 R = FuncInfo->CreateRegs(Inst->getType()); in SelectAllBasicBlocks()
1180 MachineBasicBlock::iterator SavedInsertPt = FuncInfo->InsertPt; in SelectAllBasicBlocks()
1186 FastIS->removeDeadCode(SavedInsertPt, FuncInfo->MBB->end()); in SelectAllBasicBlocks()
1243 FuncInfo->PHINodesToUpdate.clear(); in SelectAllBasicBlocks()
1339 << FuncInfo->PHINodesToUpdate.size() << "\n"; in FinishBasicBlock()
1340 for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i) in FinishBasicBlock()
1342 << FuncInfo->PHINodesToUpdate[i].first in FinishBasicBlock()
1343 << ", " << FuncInfo->PHINodesToUpdate[i].second << ")\n"); in FinishBasicBlock()
1352 for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i) { in FinishBasicBlock()
1353 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[i].first); in FinishBasicBlock()
1356 if (!FuncInfo->MBB->isSuccessor(PHI->getParent())) in FinishBasicBlock()
1358 PHI.addReg(FuncInfo->PHINodesToUpdate[i].second).addMBB(FuncInfo->MBB); in FinishBasicBlock()
1382 FuncInfo->MBB = ParentMBB; in FinishBasicBlock()
1383 FuncInfo->InsertPt = ParentMBB->end(); in FinishBasicBlock()
1392 FuncInfo->MBB = FailureMBB; in FinishBasicBlock()
1393 FuncInfo->InsertPt = FailureMBB->end(); in FinishBasicBlock()
1412 FuncInfo->MBB = SDB->BitTestCases[i].Parent; in FinishBasicBlock()
1413 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1415 SDB->visitBitTestHeader(SDB->BitTestCases[i], FuncInfo->MBB); in FinishBasicBlock()
1428 FuncInfo->MBB = SDB->BitTestCases[i].Cases[j].ThisBB; in FinishBasicBlock()
1429 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1437 FuncInfo->MBB); in FinishBasicBlock()
1444 FuncInfo->MBB); in FinishBasicBlock()
1453 for (unsigned pi = 0, pe = FuncInfo->PHINodesToUpdate.size(); in FinishBasicBlock()
1455 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[pi].first); in FinishBasicBlock()
1462 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second) in FinishBasicBlock()
1464 .addReg(FuncInfo->PHINodesToUpdate[pi].second) in FinishBasicBlock()
1471 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second).addMBB(cBB); in FinishBasicBlock()
1484 FuncInfo->MBB = SDB->JTCases[i].first.HeaderBB; in FinishBasicBlock()
1485 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1488 FuncInfo->MBB); in FinishBasicBlock()
1495 FuncInfo->MBB = SDB->JTCases[i].second.MBB; in FinishBasicBlock()
1496 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1504 for (unsigned pi = 0, pe = FuncInfo->PHINodesToUpdate.size(); in FinishBasicBlock()
1506 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[pi].first); in FinishBasicBlock()
1512 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second) in FinishBasicBlock()
1515 if (FuncInfo->MBB->isSuccessor(PHIBB)) in FinishBasicBlock()
1516 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second).addMBB(FuncInfo->MBB); in FinishBasicBlock()
1523 for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i) { in FinishBasicBlock()
1524 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[i].first); in FinishBasicBlock()
1527 if (FuncInfo->MBB->isSuccessor(PHI->getParent())) in FinishBasicBlock()
1528 PHI.addReg(FuncInfo->PHINodesToUpdate[i].second).addMBB(FuncInfo->MBB); in FinishBasicBlock()
1535 FuncInfo->MBB = SDB->SwitchCases[i].ThisBB; in FinishBasicBlock()
1536 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1545 SDB->visitSwitchCase(SDB->SwitchCases[i], FuncInfo->MBB); in FinishBasicBlock()
1552 MachineBasicBlock *ThisBB = FuncInfo->MBB; in FinishBasicBlock()
1559 FuncInfo->MBB = Succs[i]; in FinishBasicBlock()
1560 FuncInfo->InsertPt = FuncInfo->MBB->end(); in FinishBasicBlock()
1563 if (ThisBB->isSuccessor(FuncInfo->MBB)) { in FinishBasicBlock()
1565 MBBI = FuncInfo->MBB->begin(), MBBE = FuncInfo->MBB->end(); in FinishBasicBlock()
1570 assert(pn != FuncInfo->PHINodesToUpdate.size() && in FinishBasicBlock()
1572 if (FuncInfo->PHINodesToUpdate[pn].first == PHI) { in FinishBasicBlock()
1573 PHI.addReg(FuncInfo->PHINodesToUpdate[pn].second).addMBB(ThisBB); in FinishBasicBlock()