Lines Matching refs:NodeAddr
93 bool processBlock(NodeAddr<BlockNode *> BA);
95 NodeAddr<UseNode *> UseN, unsigned UseMOnum);
96 bool processAddUses(NodeAddr<StmtNode *> AddSN, MachineInstr *AddMI,
102 bool canRemoveAddasl(NodeAddr<StmtNode *> AddAslSN, MachineInstr &MI,
104 bool isSafeToExtLR(NodeAddr<StmtNode *> SN, MachineInstr *MI,
106 void getAllRealUses(NodeAddr<StmtNode *> SN, NodeList &UNodeList);
107 bool allValidCandidates(NodeAddr<StmtNode *> SA, NodeList &UNodeList);
112 bool changeAddAsl(NodeAddr<UseNode *> AddAslUN, MachineInstr *AddAslMI,
162 bool HexagonOptAddrMode::canRemoveAddasl(NodeAddr<StmtNode *> AddAslSN, in canRemoveAddasl()
173 for (NodeAddr<UseNode *> UA : AddAslSN.Addr->members_if(DFG->IsUse, *DFG)) { in canRemoveAddasl()
182 NodeAddr<UseNode *> UA = *I; in canRemoveAddasl()
183 NodeAddr<InstrNode *> IA = UA.Addr->getOwner(*DFG); in canRemoveAddasl()
186 NodeAddr<RefNode*> AA = LV->getNearestAliasedRef(OffsetRR, IA); in canRemoveAddasl()
191 MachineInstr &UseMI = *NodeAddr<StmtNode *>(IA).Addr->getCode(); in canRemoveAddasl()
192 NodeAddr<DefNode *> OffsetRegDN = DFG->addr<DefNode *>(OffsetRegRD); in canRemoveAddasl()
216 bool HexagonOptAddrMode::allValidCandidates(NodeAddr<StmtNode *> SA, in allValidCandidates()
219 NodeAddr<UseNode *> UN = *I; in allValidCandidates()
236 NodeAddr<UseNode *> DA = DFG->addr<UseNode *>(DI); in allValidCandidates()
237 NodeAddr<StmtNode *> TempIA = DA.Addr->getOwner(*DFG); in allValidCandidates()
239 << Print<NodeAddr<InstrNode *>>(TempIA, *DFG) << "\n"; in allValidCandidates()
248 void HexagonOptAddrMode::getAllRealUses(NodeAddr<StmtNode *> SA, in getAllRealUses()
250 for (NodeAddr<DefNode *> DA : SA.Addr->members_if(DFG->IsDef, *DFG)) { in getAllRealUses()
252 << Print<NodeAddr<DefNode *>>(DA, *DFG) << "\n"); in getAllRealUses()
258 NodeAddr<UseNode *> UA = DFG->addr<UseNode *>(UI); in getAllRealUses()
260 NodeAddr<StmtNode *> TempIA = UA.Addr->getOwner(*DFG); in getAllRealUses()
262 << Print<NodeAddr<InstrNode *>>(TempIA, *DFG) << "\n"; in getAllRealUses()
266 NodeAddr<PhiNode *> PA = UA.Addr->getOwner(*DFG); in getAllRealUses()
277 NodeAddr<UseNode *> phiUA = DFG->addr<UseNode *>(phiUI.first); in getAllRealUses()
288 bool HexagonOptAddrMode::isSafeToExtLR(NodeAddr<StmtNode *> SN, in isSafeToExtLR()
295 for (NodeAddr<UseNode *> UA : SN.Addr->members_if(DFG->IsUse, *DFG)) { in isSafeToExtLR()
304 NodeAddr<UseNode *> UA = *I; in isSafeToExtLR()
305 NodeAddr<InstrNode *> IA = UA.Addr->getOwner(*DFG); in isSafeToExtLR()
310 NodeAddr<RefNode*> AA = LV->getNearestAliasedRef(LRExtRR, IA); in isSafeToExtLR()
324 MachineInstr *UseMI = NodeAddr<StmtNode *>(IA).Addr->getCode(); in isSafeToExtLR()
325 NodeAddr<DefNode *> LRExtRegDN = DFG->addr<DefNode *>(LRExtRegRD); in isSafeToExtLR()
417 bool HexagonOptAddrMode::processAddUses(NodeAddr<StmtNode *> AddSN, in processAddUses()
424 NodeAddr<UseNode *> UN = *I; in processAddUses()
425 NodeAddr<StmtNode *> SN = UN.Addr->getOwner(*DFG); in processAddUses()
459 for (NodeAddr<UseNode *> UA : AddSN.Addr->members_if(DFG->IsUse, *DFG)) { in processAddUses()
469 NodeAddr<UseNode *> UseN = *I; in processAddUses()
473 NodeAddr<StmtNode *> OwnerN = UseN.Addr->getOwner(*DFG); in processAddUses()
482 NodeAddr<DefNode *> LRExtRegDN = DFG->addr<DefNode *>(LRExtRegRD); in processAddUses()
519 NodeAddr<UseNode *> UN = *I; in analyzeUses()
520 NodeAddr<StmtNode *> SN = UN.Addr->getOwner(*DFG); in analyzeUses()
682 bool HexagonOptAddrMode::changeAddAsl(NodeAddr<UseNode *> AddAslUN, in changeAddAsl()
686 NodeAddr<StmtNode *> SA = AddAslUN.Addr->getOwner(*DFG); in changeAddAsl()
694 NodeAddr<UseNode *> UseUN = *I; in changeAddAsl()
698 NodeAddr<StmtNode *> UseIA = UseUN.Addr->getOwner(*DFG); in changeAddAsl()
700 << Print<NodeAddr<InstrNode *>>(UseIA, *DFG) << "\n"); in changeAddAsl()
748 NodeAddr<UseNode *> UseN, in xformUseMI()
766 bool HexagonOptAddrMode::processBlock(NodeAddr<BlockNode *> BA) { in processBlock()
773 NodeAddr<StmtNode *> SA = IA; in processBlock()
783 << Print<NodeAddr<InstrNode *>>(IA, *DFG) << '\n'); in processBlock()
823 NodeAddr<UseNode *> UseN = *I; in processBlock()
827 NodeAddr<StmtNode *> OwnerN = UseN.Addr->getOwner(*DFG); in processBlock()
888 NodeAddr<FuncNode *> FA = DFG->getFunc(); in runOnMachineFunction()
890 << Print<NodeAddr<FuncNode *>>(FA, *DFG) << "\n"); in runOnMachineFunction()
892 for (NodeAddr<BlockNode *> BA : FA.Addr->members(*DFG)) in runOnMachineFunction()