Lines Matching refs:ActiveChains
338 std::map<unsigned, Chain*> ActiveChains; in runOnBasicBlock() local
342 scanInstruction(&MI, Idx++, ActiveChains, AllChains); in runOnBasicBlock()
607 MachineInstr *MI, unsigned Idx, std::map<unsigned, Chain *> &ActiveChains, in scanInstruction() argument
614 maybeKillChain(I, Idx, ActiveChains); in scanInstruction()
616 maybeKillChain(I, Idx, ActiveChains); in scanInstruction()
626 ActiveChains[DestReg] = G.get(); in scanInstruction()
636 maybeKillChain(MI->getOperand(1), Idx, ActiveChains); in scanInstruction()
637 maybeKillChain(MI->getOperand(2), Idx, ActiveChains); in scanInstruction()
639 maybeKillChain(MI->getOperand(0), Idx, ActiveChains); in scanInstruction()
641 if (ActiveChains.find(AccumReg) != ActiveChains.end()) { in scanInstruction()
653 ActiveChains[AccumReg]->add(MI, Idx, getColor(DestReg)); in scanInstruction()
656 ActiveChains[DestReg] = ActiveChains[AccumReg]; in scanInstruction()
657 ActiveChains.erase(AccumReg); in scanInstruction()
664 maybeKillChain(MI->getOperand(3), Idx, ActiveChains); in scanInstruction()
670 ActiveChains[DestReg] = G.get(); in scanInstruction()
678 maybeKillChain(I, Idx, ActiveChains); in scanInstruction()
680 maybeKillChain(I, Idx, ActiveChains); in scanInstruction()
687 std::map<unsigned, Chain*> &ActiveChains) { in maybeKillChain() argument
695 if (MO.isKill() && ActiveChains.find(MO.getReg()) != ActiveChains.end()) { in maybeKillChain()
698 ActiveChains[MO.getReg()]->setKill(MI, Idx, /*Immutable=*/MO.isTied()); in maybeKillChain()
700 ActiveChains.erase(MO.getReg()); in maybeKillChain()
704 for (auto I = ActiveChains.begin(), E = ActiveChains.end(); in maybeKillChain()
710 ActiveChains.erase(I++); in maybeKillChain()