Lines Matching refs:LiveSet

665               VarFragMap &LiveSet) {  in addDef()  argument
710 auto FragIt = LiveSet.find(Var); in addDef()
713 if (FragIt == LiveSet.end()) { in addDef()
715 auto P = LiveSet.try_emplace(Var, FragsInMemMap(IntervalMapAlloc)); in addDef()
828 void process(BasicBlock &BB, VarFragMap &LiveSet) { in process() argument
834 addDef(Loc, &DVR, *I.getParent(), LiveSet); in process()
840 addDef(Loc, &I, *I.getParent(), LiveSet); in process()
931 VarFragMap LiveSet = LiveIn[BB]; in run() local
934 process(*BB, LiveSet); in run()
937 if (!varFragMapsAreEqual(LiveOut[BB], LiveSet)) { in run()
940 LiveOut[BB] = std::move(LiveSet); in run()
1320 void process(BasicBlock &BB, BlockInfo *LiveSet);
1325 void processNonDbgInstruction(Instruction &I, BlockInfo *LiveSet);
1328 void processTaggedInstruction(Instruction &I, BlockInfo *LiveSet);
1331 void processUntaggedInstruction(Instruction &I, BlockInfo *LiveSet);
1333 BlockInfo *LiveSet);
1334 void processDbgAssign(DbgVariableRecord *Assign, BlockInfo *LiveSet);
1335 void processDbgVariableRecord(DbgVariableRecord &DVR, BlockInfo *LiveSet);
1336 void processDbgValue(DbgVariableRecord *DbgValue, BlockInfo *LiveSet);
1338 void addMemDef(BlockInfo *LiveSet, VariableID Var, const Assignment &AV);
1340 void addDbgDef(BlockInfo *LiveSet, VariableID Var, const Assignment &AV);
1344 void setLocKind(BlockInfo *LiveSet, VariableID Var, LocKind K);
1347 LocKind getLocKind(BlockInfo *LiveSet, VariableID Var);
1349 bool hasVarWithAssignment(BlockInfo *LiveSet, BlockInfo::AssignmentKind Kind,
1384 void AssignmentTrackingLowering::setLocKind(BlockInfo *LiveSet, VariableID Var, in setLocKind() argument
1386 auto SetKind = [this](BlockInfo *LiveSet, VariableID Var, LocKind K) { in setLocKind() argument
1387 LiveSet->setLocKind(Var, K); in setLocKind()
1390 SetKind(LiveSet, Var, K); in setLocKind()
1394 SetKind(LiveSet, Frag, K); in setLocKind()
1398 AssignmentTrackingLowering::getLocKind(BlockInfo *LiveSet, VariableID Var) { in getLocKind() argument
1399 return LiveSet->getLocKind(Var); in getLocKind()
1402 void AssignmentTrackingLowering::addMemDef(BlockInfo *LiveSet, VariableID Var, in addMemDef() argument
1404 LiveSet->setAssignment(BlockInfo::Stack, Var, AV); in addMemDef()
1412 LiveSet->setAssignment(BlockInfo::Stack, Frag, FragAV); in addMemDef()
1415 void AssignmentTrackingLowering::addDbgDef(BlockInfo *LiveSet, VariableID Var, in addDbgDef() argument
1417 LiveSet->setAssignment(BlockInfo::Debug, Var, AV); in addDbgDef()
1425 LiveSet->setAssignment(BlockInfo::Debug, Frag, FragAV); in addDbgDef()
1440 BlockInfo *LiveSet, BlockInfo::AssignmentKind Kind, VariableID Var, in hasVarWithAssignment() argument
1442 if (!LiveSet->hasAssignment(Kind, Var, AV)) in hasVarWithAssignment()
1448 if (!LiveSet->hasAssignment(Kind, Frag, AV)) in hasVarWithAssignment()
1552 Instruction &I, AssignmentTrackingLowering::BlockInfo *LiveSet) { in processNonDbgInstruction() argument
1554 processTaggedInstruction(I, LiveSet); in processNonDbgInstruction()
1556 processUntaggedInstruction(I, LiveSet); in processNonDbgInstruction()
1560 Instruction &I, VariableID &Var, BlockInfo *LiveSet) { in processUnknownStoreToVariable() argument
1563 addMemDef(LiveSet, Var, Assignment::makeNoneOrPhi()); in processUnknownStoreToVariable()
1566 if (getLocKind(LiveSet, Var) != LocKind::Mem) in processUnknownStoreToVariable()
1570 Assignment DbgAV = LiveSet->getAssignment(BlockInfo::Debug, Var); in processUnknownStoreToVariable()
1574 setLocKind(LiveSet, Var, LocKind::Val); in processUnknownStoreToVariable()
1599 Instruction &I, AssignmentTrackingLowering::BlockInfo *LiveSet) { in processUntaggedInstruction() argument
1624 processUnknownStoreToVariable(I, Var, LiveSet); in processUntaggedInstruction()
1637 addMemDef(LiveSet, Var, Assignment::makeNoneOrPhi()); in processUntaggedInstruction()
1638 addDbgDef(LiveSet, Var, Assignment::makeNoneOrPhi()); in processUntaggedInstruction()
1639 setLocKind(LiveSet, Var, LocKind::Mem); in processUntaggedInstruction()
1681 Instruction &I, AssignmentTrackingLowering::BlockInfo *LiveSet) { in processTaggedInstruction() argument
1699 addMemDef(LiveSet, Var, AV); in processTaggedInstruction()
1702 LLVM_DEBUG(dbgs() << " LiveLoc " << locStr(getLocKind(LiveSet, Var)) in processTaggedInstruction()
1707 if (hasVarWithAssignment(LiveSet, BlockInfo::Debug, Var, AV)) { in processTaggedInstruction()
1713 LiveSet->DebugValue[static_cast<unsigned>(Var)].dump(dbgs()); in processTaggedInstruction()
1715 setLocKind(LiveSet, Var, LocKind::Mem); in processTaggedInstruction()
1725 LocKind PrevLoc = getLocKind(LiveSet, Var); in processTaggedInstruction()
1731 setLocKind(LiveSet, Var, LocKind::Val); in processTaggedInstruction()
1737 Assignment DbgAV = LiveSet->getAssignment(BlockInfo::Debug, Var); in processTaggedInstruction()
1741 setLocKind(LiveSet, Var, LocKind::None); in processTaggedInstruction()
1746 setLocKind(LiveSet, Var, LocKind::Val); in processTaggedInstruction()
1759 setLocKind(LiveSet, Var, LocKind::None); in processTaggedInstruction()
1766 BlockInfo *LiveSet) { in processDbgAssign() argument
1774 addDbgDef(LiveSet, Var, AV); in processDbgAssign()
1777 LLVM_DEBUG(dbgs() << " LiveLoc " << locStr(getLocKind(LiveSet, Var)) in processDbgAssign()
1782 if (hasVarWithAssignment(LiveSet, BlockInfo::Stack, Var, AV)) { in processDbgAssign()
1796 setLocKind(LiveSet, Var, Kind); in processDbgAssign()
1802 setLocKind(LiveSet, Var, LocKind::Val); in processDbgAssign()
1808 BlockInfo *LiveSet) { in processDbgValue() argument
1822 addDbgDef(LiveSet, Var, AV); in processDbgValue()
1825 LLVM_DEBUG(dbgs() << " LiveLoc " << locStr(getLocKind(LiveSet, Var)) in processDbgValue()
1828 setLocKind(LiveSet, Var, LocKind::Val); in processDbgValue()
1839 DbgVariableRecord &DVR, AssignmentTrackingLowering::BlockInfo *LiveSet) { in processDbgVariableRecord() argument
1845 processDbgAssign(&DVR, LiveSet); in processDbgVariableRecord()
1847 processDbgValue(&DVR, LiveSet); in processDbgVariableRecord()
1864 void AssignmentTrackingLowering::process(BasicBlock &BB, BlockInfo *LiveSet) { in process() argument
1884 processNonDbgInstruction(*II, LiveSet); in process()
1885 assert(LiveSet->isValid()); in process()
1897 processDbgVariableRecord(DVR, LiveSet); in process()
1898 assert(LiveSet->isValid()); in process()
1910 LocKind Loc = getLocKind(LiveSet, Var); in process()
2330 BlockInfo LiveSet = LiveIn[BB]; in run() local
2333 process(*BB, &LiveSet); in run()
2336 if (LiveOut[BB] != LiveSet) { in run()
2339 LiveOut[BB] = std::move(LiveSet); in run()