Lines Matching refs:dag
49 : ScheduleDAG(mf), BB(0), DAG(0),
54 void ScheduleDAGSDNodes::Run(SelectionDAG *dag, MachineBasicBlock *bb) {
56 DAG = dag;
58 // Clear the scheduler's SUnit DAG.
79 const TargetLowering &TLI = DAG->getTargetLoweringInfo();
135 static void CloneNodeWithValues(SDNode *N, SelectionDAG *DAG,
145 SDVTList VTList = DAG->getVTList(&VTs[0], VTs.size());
155 DAG->MorphNodeTo(N, N->getOpcode(), VTList, &Ops[0], Ops.size());
162 static bool AddGlue(SDNode *N, SDValue Glue, bool AddGlue, SelectionDAG *DAG) {
183 CloneNodeWithValues(N, DAG, VTs, Glue);
190 static void RemoveUnusedGlue(SDNode *N, SelectionDAG *DAG) {
199 CloneNodeWithValues(N, DAG, VTs);
270 if (AddGlue(Lead, InGlue, true, DAG))
278 if (AddGlue(Load, InGlue, OutGlue, DAG)) {
285 RemoveUnusedGlue(InGlue.getNode(), DAG);
292 for (SelectionDAG::allnodes_iterator NI = DAG->allnodes_begin(),
293 E = DAG->allnodes_end(); NI != E; ++NI) {
311 for (SelectionDAG::allnodes_iterator NI = DAG->allnodes_begin(),
312 E = DAG->allnodes_end(); NI != E; ++NI) {
327 Worklist.push_back(DAG->getRoot().getNode());
328 Visited.insert(DAG->getRoot().getNode());
512 /// BuildSchedGraph - Build the SUnit graph from the selection dag that we
545 // Some instructions define regs that are not represented in the selection DAG
653 SU->getNode()->dump(DAG);
660 GluedNodes.back()->dump(DAG);
704 ProcessSDDbgValues(SDNode *N, SelectionDAG *DAG, InstrEmitter &Emitter,
714 ArrayRef<SDDbgValue*> DVs = DAG->GetDbgValues(N);
734 ProcessSourceNode(SDNode *N, SelectionDAG *DAG, InstrEmitter &Emitter,
742 ProcessSDDbgValues(N, DAG, Emitter, Orders, VRBaseMap, 0);
754 ProcessSDDbgValues(N, DAG, Emitter, Orders, VRBaseMap, Order);
804 bool HasDbg = DAG->hasDebugValues();
808 SDDbgInfo::DbgIterator PDI = DAG->ByvalParmDbgBegin();
809 SDDbgInfo::DbgIterator PDE = DAG->ByvalParmDbgEnd();
842 ProcessSourceNode(N, DAG, Emitter, VRBaseMap, Orders, Seen);
849 ProcessSourceNode(SU->getNode(), DAG, Emitter, VRBaseMap, Orders,
862 SDDbgInfo::DbgIterator DI = DAG->DbgBegin();
863 SDDbgInfo::DbgIterator DE = DAG->DbgEnd();
912 return "sunit-dag." + BB->getFullName();