Searched refs:DFG (Results 1 – 8 of 8) sorted by relevance
/external/llvm/lib/Target/Hexagon/ |
D | RDFDeadCode.cpp | 73 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in scanInstr() 77 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) { in scanInstr() 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() 117 for (NodeAddr<BlockNode*> BA : DFG.getFunc().Addr->members(DFG)) in collect() 118 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) in collect() 124 auto RA = DFG.addr<RefNode*>(N); in collect() 125 if (DFG.IsDef(RA)) in collect() 134 auto RA = DFG.addr<RefNode*>(N); in collect() [all …]
|
D | RDFLiveness.cpp | 96 auto SNA = DFG.addr<RefNode*>(Start); in getAllReachingDefs() 107 auto TA = DFG.addr<DefNode*>(DefQ[i]); in getAllReachingDefs() 119 for (auto S : DFG.getRelatedRefs(TA.Addr->getOwner(DFG), TA)) in getAllReachingDefs() 128 auto TA = DFG.addr<DefNode*>(N); in getAllReachingDefs() 133 Owners.insert(TA.Addr->getOwner(DFG).Id); in getAllReachingDefs() 142 NodeAddr<BlockNode*> BA = PA.Addr->getOwner(DFG); in getAllReachingDefs() 149 auto OA = DFG.addr<InstrNode*>(A), OB = DFG.addr<InstrNode*>(B); in getAllReachingDefs() 202 auto TA = DFG.addr<InstrNode*>(T); in getAllReachingDefs() 203 bool IsPhi = DFG.IsCode<NodeAttrs::Phi>(TA); in getAllReachingDefs() 205 for (NodeAddr<DefNode*> DA : TA.Addr->members_if(DefInSet, DFG)) { in getAllReachingDefs() [all …]
|
D | RDFCopy.cpp | 40 MachineRegisterInfo &MRI = DFG.getMF().getRegInfo(); in interpretAsCopy() 46 const TargetRegisterInfo &TRI = DFG.getTRI(); in interpretAsCopy() 61 const TargetInstrInfo &TII = DFG.getTII(); in interpretAsCopy() 65 unsigned S = DFG.getTRI().composeSubRegIndices(DefR.Sub, I.SubIdx); in interpretAsCopy() 94 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) in updateMap() 119 auto BA = DFG.getFunc().Addr->findBlock(B, DFG); in scanBlock() 120 DFG.markBlock(BA.Id, DefM); in scanBlock() 122 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) { in scanBlock() 123 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) { in scanBlock() 131 DFG.pushDefs(IA, DefM); in scanBlock() [all …]
|
D | HexagonOptAddrMode.cpp | 51 : MachineFunctionPass(ID), HII(0), MDT(0), DFG(0), LV(0) { in HexagonOptAddrMode() 71 DataFlowGraph *DFG; member in __anon76ee7bdd0111::HexagonOptAddrMode 150 for (NodeAddr<UseNode *> UA : AddAslSN.Addr->members_if(DFG->IsUse, *DFG)) { in canRemoveAddasl() 160 NodeAddr<InstrNode *> IA = UA.Addr->getOwner(*DFG); in canRemoveAddasl() 166 NodeAddr<DefNode *> OffsetRegDN = DFG->addr<DefNode *>(OffsetRegRD); in canRemoveAddasl() 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() 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() [all …]
|
D | HexagonRDFOpt.cpp | 145 DataFlowGraph &DFG = getDFG(); in run() local 147 for (NodeAddr<BlockNode*> BA : DFG.getFunc().Addr->members(DFG)) { in run() 148 for (auto TA : BA.Addr->members_if(DFG.IsCode<NodeAttrs::Stmt>, DFG)) { in run() 150 for (NodeAddr<RefNode*> RA : SA.Addr->members(DFG)) { in run() 152 if (DFG.IsDef(RA) && DeadNodes.count(RA.Id)) in run() 165 auto SA = DFG.addr<StmtNode*>(N); in run() 204 DataFlowGraph &DFG = getDFG(); in rewrite() local 206 auto &HII = static_cast<const HexagonInstrInfo&>(DFG.getTII()); in rewrite() 244 for (NodeAddr<DefNode*> DA : IA.Addr->members_if(DFG.IsDef, DFG)) { in rewrite() 247 Defs = DFG.getRelatedRefs(IA, DA); in rewrite()
|
D | RDFDeadCode.h | 37 : Trace(false), DFG(dfg), MRI(mri), LV(mri, dfg) {} in DeadCodeElimination() 46 DataFlowGraph &getDFG() { return DFG; } in getDFG() 53 DataFlowGraph &DFG; member
|
D | RDFCopy.h | 24 CopyPropagation(DataFlowGraph &dfg) : MDT(dfg.getDT()), DFG(dfg), in CopyPropagation() 37 DataFlowGraph &DFG; member
|
D | RDFLiveness.h | 37 : DFG(g), TRI(g.getTRI()), MDT(g.getDT()), MDF(g.getDF()), in Liveness() 64 const DataFlowGraph &DFG;
|