Lines Matching refs:NodeAddr

71 void DeadCodeElimination::scanInstr(NodeAddr<InstrNode*> IA,  in scanInstr()
75 if (!isLiveInstr(NodeAddr<StmtNode*>(IA).Addr->getCode())) in scanInstr()
77 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) { in scanInstr()
83 void DeadCodeElimination::processDef(NodeAddr<DefNode*> DA, in processDef()
85 NodeAddr<InstrNode*> IA = DA.Addr->getOwner(DFG); in processDef()
86 for (NodeAddr<UseNode*> UA : IA.Addr->members_if(DFG.IsUse, DFG)) { in processDef()
90 for (NodeAddr<DefNode*> TA : DFG.getRelatedRefs(IA, DA)) in processDef()
94 void DeadCodeElimination::processUse(NodeAddr<UseNode*> UA, in processUse()
96 for (NodeAddr<DefNode*> DA : LV.getAllReachingDefs(UA)) { in processUse()
117 for (NodeAddr<BlockNode*> BA : DFG.getFunc().Addr->members(DFG)) in collect()
118 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) in collect()
139 auto IsDead = [this] (NodeAddr<InstrNode*> IA) -> bool { in collect()
140 for (NodeAddr<DefNode*> DA : IA.Addr->members_if(DFG.IsDef, DFG)) in collect()
146 for (NodeAddr<BlockNode*> BA : DFG.getFunc().Addr->members(DFG)) { in collect()
147 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) { in collect()
148 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) in collect()
152 if (isLiveInstr(NodeAddr<StmtNode*>(IA).Addr->getCode())) in collect()
187 for (auto N : NodeAddr<CodeNode*>(BA).Addr->members(DFG)) in erase()
198 auto UsesFirst = [] (NodeAddr<RefNode*> A, NodeAddr<RefNode*> B) -> bool { in erase()
210 for (NodeAddr<RefNode*> RA : DRNs) { in erase()
220 for (NodeAddr<InstrNode*> IA : DINs) { in erase()
221 NodeAddr<BlockNode*> BA = IA.Addr->getOwner(DFG); in erase()
226 MachineInstr *MI = NodeAddr<StmtNode*>(IA).Addr->getCode(); in erase()