Lines Matching refs:CurDAG
188 CurDAG(new SelectionDAG(tm)),
189 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)),
200 delete CurDAG;
272 CurDAG->init(*MF);
392 // Release function-specific state. SDB and CurDAG are already cleared
409 CurDAG->setRoot(SDB->getControlRoot());
421 Worklist.push_back(CurDAG->getRoot().getNode());
453 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src);
455 CurDAG->ComputeMaskedBits(Src, Mask, KnownZero, KnownOne);
477 << " '" << BlockName << "'\n"; CurDAG->dump());
479 if (ViewDAGCombine1) CurDAG->viewGraph("dag-combine1 input for " + BlockName);
484 CurDAG->Combine(Unrestricted, *AA, OptLevel);
488 << " '" << BlockName << "'\n"; CurDAG->dump());
492 if (ViewLegalizeTypesDAGs) CurDAG->viewGraph("legalize-types input for " +
498 Changed = CurDAG->LegalizeTypes();
502 << " '" << BlockName << "'\n"; CurDAG->dump());
506 CurDAG->viewGraph("dag-combine-lt input for " + BlockName);
512 CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
516 << " '" << BlockName << "'\n"; CurDAG->dump());
521 Changed = CurDAG->LegalizeVectors();
527 CurDAG->LegalizeTypes();
531 CurDAG->viewGraph("dag-combine-lv input for " + BlockName);
537 CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
541 << BlockNumber << " '" << BlockName << "'\n"; CurDAG->dump());
544 if (ViewLegalizeDAGs) CurDAG->viewGraph("legalize input for " + BlockName);
548 CurDAG->Legalize();
552 << " '" << BlockName << "'\n"; CurDAG->dump());
554 if (ViewDAGCombine2) CurDAG->viewGraph("dag-combine2 input for " + BlockName);
559 CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
563 << " '" << BlockName << "'\n"; CurDAG->dump());
568 if (ViewISelDAGs) CurDAG->viewGraph("isel input for " + BlockName);
578 << " '" << BlockName << "'\n"; CurDAG->dump());
580 if (ViewSchedDAGs) CurDAG->viewGraph("scheduler input for " + BlockName);
587 Scheduler->Run(CurDAG, FuncInfo->MBB, FuncInfo->InsertPt);
615 CurDAG->clear();
628 DAGSize = CurDAG->AssignTopologicalOrder();
633 HandleSDNode Dummy(CurDAG->getRoot());
634 ISelPosition = SelectionDAG::allnodes_iterator(CurDAG->getRoot().getNode());
641 while (ISelPosition != CurDAG->allnodes_begin()) {
665 CurDAG->RemoveDeadNode(Node, &ISU);
669 CurDAG->setRoot(Dummy.getValue());
867 CurDAG->setRoot(SDB->getControlRoot());
1019 CurDAG->setRoot(SDB->getRoot());
1043 CurDAG->setRoot(SDB->getRoot());
1095 CurDAG->setRoot(SDB->getRoot());
1105 CurDAG->setRoot(SDB->getRoot());
1163 CurDAG->setRoot(SDB->getRoot());
1244 if (CurDAG->MaskedValueIsZero(LHS, NeededMask))
1275 CurDAG->ComputeMaskedBits(LHS, NeededMask, KnownZero, KnownOne);
1323 Ops.push_back(CurDAG->getTargetConstant(NewFlags, MVT::i32));
1475 SDValue New = CurDAG->getNode(ISD::INLINEASM, N->getDebugLoc(),
1482 return CurDAG->SelectNodeTo(N, TargetOpcode::IMPLICIT_DEF,N->getValueType(0));
1538 CurDAG->ReplaceAllUsesOfValueWith(ChainVal, InputChain, &ISU);
1560 CurDAG->ReplaceAllUsesOfValueWith(SDValue(FRN, FRN->getNumValues()-1),
1571 CurDAG->RemoveDeadNodes(NowDeadNodes, &ISU);
1708 SelectionDAG *CurDAG) {
1749 return CurDAG->getNode(ISD::TokenFactor, ChainNodesMatched[0]->getDebugLoc(),
1776 SDNode *Res = CurDAG->MorphNodeTo(Node, ~TargetOpc, VTList, Ops, NumOps);
1791 CurDAG->ReplaceAllUsesOfValueWith(SDValue(Node, OldGlueResultNo),
1800 CurDAG->ReplaceAllUsesOfValueWith(SDValue(Node, OldChainResultNo),
1806 CurDAG->ReplaceAllUsesWith(Node, Res);
2032 CurDAG->ReplaceAllUsesOfValueWith(SDValue(NodeToMatch, 0),
2072 NodeToMatch->dump(CurDAG);
2372 CurDAG->getTargetConstant(Val, VT), (SDNode*)0));
2380 CurDAG->getRegister(RegNo, VT), (SDNode*)0));
2392 CurDAG->getRegister(RegNo, VT), (SDNode*)0));
2404 Imm = CurDAG->getTargetConstant(Val, Imm.getValueType());
2407 Imm = CurDAG->getTargetConstantFP(*Val, Imm.getValueType());
2436 InputChain = HandleMergeInputChains(ChainNodesMatched, CurDAG);
2478 InputChain = HandleMergeInputChains(ChainNodesMatched, CurDAG);
2492 InputChain = CurDAG->getEntryNode();
2494 InputChain = CurDAG->getCopyToReg(InputChain, NodeToMatch->getDebugLoc(),
2535 VTList = CurDAG->getVTList(VTs[0]);
2537 VTList = CurDAG->getVTList(VTs[0], VTs[1]);
2539 VTList = CurDAG->getVTList(VTs.data(), VTs.size());
2581 Res = CurDAG->getMachineNode(TargetOpc, NodeToMatch->getDebugLoc(),
2655 << " node: "; Res->dump(CurDAG); errs() << "\n");
2707 CurDAG->ReplaceAllUsesOfValueWith(SDValue(NodeToMatch, i), Res);
2790 N->printrFull(Msg, CurDAG);