Lines Matching refs:NodeAddr
77 bool processBlock(NodeAddr<BlockNode *> BA);
79 NodeAddr<UseNode *> UseN, unsigned UseMOnum);
83 bool canRemoveAddasl(NodeAddr<StmtNode *> AddAslSN, MachineInstr *MI,
85 void getAllRealUses(NodeAddr<StmtNode *> SN, NodeList &UNodeList);
86 bool allValidCandidates(NodeAddr<StmtNode *> SA, NodeList &UNodeList);
88 void updateMap(NodeAddr<InstrNode *> IA);
93 bool changeAddAsl(NodeAddr<UseNode *> AddAslUN, MachineInstr *AddAslMI,
139 bool HexagonOptAddrMode::canRemoveAddasl(NodeAddr<StmtNode *> AddAslSN, in canRemoveAddasl()
150 for (NodeAddr<UseNode *> UA : AddAslSN.Addr->members_if(DFG->IsUse, *DFG)) { in canRemoveAddasl()
159 NodeAddr<UseNode *> UA = *I; in canRemoveAddasl()
160 NodeAddr<InstrNode *> IA = UA.Addr->getOwner(*DFG); in canRemoveAddasl()
165 MachineInstr *UseMI = NodeAddr<StmtNode *>(IA).Addr->getCode(); in canRemoveAddasl()
166 NodeAddr<DefNode *> OffsetRegDN = DFG->addr<DefNode *>(OffsetRegRD); in canRemoveAddasl()
190 bool HexagonOptAddrMode::allValidCandidates(NodeAddr<StmtNode *> SA, in allValidCandidates()
193 NodeAddr<UseNode *> UN = *I; in allValidCandidates()
201 NodeAddr<UseNode *> DA = DFG->addr<UseNode *>(DI); in allValidCandidates()
202 NodeAddr<StmtNode *> TempIA = DA.Addr->getOwner(*DFG); in allValidCandidates()
204 << Print<NodeAddr<InstrNode *>>(TempIA, *DFG) << "\n"; in allValidCandidates()
213 void HexagonOptAddrMode::getAllRealUses(NodeAddr<StmtNode *> SA, in getAllRealUses()
215 for (NodeAddr<DefNode *> DA : SA.Addr->members_if(DFG->IsDef, *DFG)) { in getAllRealUses()
216 DEBUG(dbgs() << "\t\t[DefNode]: " << Print<NodeAddr<DefNode *>>(DA, *DFG) in getAllRealUses()
222 NodeAddr<UseNode *> UA = DFG->addr<UseNode *>(UI); in getAllRealUses()
224 NodeAddr<StmtNode *> TempIA = UA.Addr->getOwner(*DFG); in getAllRealUses()
226 << Print<NodeAddr<InstrNode *>>(TempIA, *DFG) << "\n"; in getAllRealUses()
230 NodeAddr<PhiNode *> PA = UA.Addr->getOwner(*DFG); in getAllRealUses()
241 NodeAddr<UseNode *> phiUA = DFG->addr<UseNode *>(phiUI); in getAllRealUses()
262 NodeAddr<UseNode *> UN = *I; in analyzeUses()
263 NodeAddr<StmtNode *> SN = UN.Addr->getOwner(*DFG); in analyzeUses()
422 bool HexagonOptAddrMode::changeAddAsl(NodeAddr<UseNode *> AddAslUN, in changeAddAsl()
426 NodeAddr<StmtNode *> SA = AddAslUN.Addr->getOwner(*DFG); in changeAddAsl()
434 NodeAddr<UseNode *> UseUN = *I; in changeAddAsl()
438 NodeAddr<StmtNode *> UseIA = UseUN.Addr->getOwner(*DFG); in changeAddAsl()
439 DEBUG(dbgs() << "[InstrNode]: " << Print<NodeAddr<InstrNode *>>(UseIA, *DFG) in changeAddAsl()
488 NodeAddr<UseNode *> UseN, in xformUseMI()
506 bool HexagonOptAddrMode::processBlock(NodeAddr<BlockNode *> BA) { in processBlock()
513 NodeAddr<StmtNode *> SA = IA; in processBlock()
520 DEBUG(dbgs() << "\t[InstrNode]: " << Print<NodeAddr<InstrNode *>>(IA, *DFG) in processBlock()
545 NodeAddr<UseNode *> UseN = *I; in processBlock()
549 NodeAddr<StmtNode *> OwnerN = UseN.Addr->getOwner(*DFG); in processBlock()
575 void HexagonOptAddrMode::updateMap(NodeAddr<InstrNode *> IA) { in updateMap()
577 for (NodeAddr<RefNode *> RA : IA.Addr->members(*DFG)) in updateMap()
602 for (NodeAddr<InstrNode *> IA : BA.Addr->members(*DFG)) { in constructDefMap()
637 NodeAddr<FuncNode *> FA = DFG->getFunc(); in runOnMachineFunction()
639 << Print<NodeAddr<FuncNode *>>(FA, *DFG) << "\n"); in runOnMachineFunction()
641 for (NodeAddr<BlockNode *> BA : FA.Addr->members(*DFG)) in runOnMachineFunction()