Lines Matching refs:CurDAG
347 CurDAG(new SelectionDAG(tm, OL)), in SelectionDAGISel()
348 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), in SelectionDAGISel()
361 delete CurDAG; in ~SelectionDAGISel()
448 CurDAG->init(*MF); in runOnMachineFunction()
449 FuncInfo->set(Fn, *MF, CurDAG); in runOnMachineFunction()
608 CurDAG->setRoot(SDB->getControlRoot()); in SelectBasicBlock()
620 Worklist.push_back(CurDAG->getRoot().getNode()); in ComputeLiveOutVRegInfo()
651 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src); in ComputeLiveOutVRegInfo()
652 CurDAG->computeKnownBits(Src, KnownZero, KnownOne); in ComputeLiveOutVRegInfo()
681 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
684 CurDAG->viewGraph("dag-combine1 input for " + BlockName); in CodeGenAndEmitDAG()
689 CurDAG->Combine(BeforeLegalizeTypes, *AA, OptLevel); in CodeGenAndEmitDAG()
693 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
698 CurDAG->viewGraph("legalize-types input for " + BlockName); in CodeGenAndEmitDAG()
703 Changed = CurDAG->LegalizeTypes(); in CodeGenAndEmitDAG()
707 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
709 CurDAG->NewNodesMustHaveLegalTypes = true; in CodeGenAndEmitDAG()
713 CurDAG->viewGraph("dag-combine-lt input for " + BlockName); in CodeGenAndEmitDAG()
719 CurDAG->Combine(AfterLegalizeTypes, *AA, OptLevel); in CodeGenAndEmitDAG()
723 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
729 Changed = CurDAG->LegalizeVectors(); in CodeGenAndEmitDAG()
735 CurDAG->LegalizeTypes(); in CodeGenAndEmitDAG()
739 CurDAG->viewGraph("dag-combine-lv input for " + BlockName); in CodeGenAndEmitDAG()
745 CurDAG->Combine(AfterLegalizeVectorOps, *AA, OptLevel); in CodeGenAndEmitDAG()
749 << BlockNumber << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
753 CurDAG->viewGraph("legalize input for " + BlockName); in CodeGenAndEmitDAG()
757 CurDAG->Legalize(); in CodeGenAndEmitDAG()
761 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
764 CurDAG->viewGraph("dag-combine2 input for " + BlockName); in CodeGenAndEmitDAG()
769 CurDAG->Combine(AfterLegalizeDAG, *AA, OptLevel); in CodeGenAndEmitDAG()
773 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
779 CurDAG->viewGraph("isel input for " + BlockName); in CodeGenAndEmitDAG()
789 << " '" << BlockName << "'\n"; CurDAG->dump()); in CodeGenAndEmitDAG()
792 CurDAG->viewGraph("scheduler input for " + BlockName); in CodeGenAndEmitDAG()
799 Scheduler->Run(CurDAG, FuncInfo->MBB); in CodeGenAndEmitDAG()
828 CurDAG->clear(); in CodeGenAndEmitDAG()
860 DAGSize = CurDAG->AssignTopologicalOrder(); in DoInstructionSelection()
865 HandleSDNode Dummy(CurDAG->getRoot()); in DoInstructionSelection()
866 SelectionDAG::allnodes_iterator ISelPosition (CurDAG->getRoot().getNode()); in DoInstructionSelection()
871 ISelUpdater ISU(*CurDAG, ISelPosition); in DoInstructionSelection()
877 while (ISelPosition != CurDAG->allnodes_begin()) { in DoInstructionSelection()
901 CurDAG->RemoveDeadNode(Node); in DoInstructionSelection()
904 CurDAG->setRoot(Dummy.getValue()); in DoInstructionSelection()
997 CurDAG->setRoot(SDB->getRoot()); in PrepareEHLandingPad()
1220 CurDAG->setRoot(SDB->getControlRoot()); in SelectAllBasicBlocks()
1502 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1512 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1533 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1564 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1606 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1616 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1663 CurDAG->setRoot(SDB->getRoot()); in FinishBasicBlock()
1742 if (CurDAG->MaskedValueIsZero(LHS, NeededMask)) in CheckAndMask()
1773 CurDAG->computeKnownBits(LHS, KnownZero, KnownOne); in CheckOrMask()
1835 Ops.push_back(CurDAG->getTargetConstant(NewFlags, MVT::i32)); in SelectInlineAsmMemoryOperands()
1985 SDValue New = CurDAG->getNode(ISD::INLINEASM, SDLoc(N), VTs, Ops); in Select_INLINEASM()
1997 SDValue New = CurDAG->getCopyFromReg( in Select_READ_REGISTER()
1998 CurDAG->getEntryNode(), dl, Reg, Op->getValueType(0)); in Select_READ_REGISTER()
2010 SDValue New = CurDAG->getCopyToReg( in Select_WRITE_REGISTER()
2011 CurDAG->getEntryNode(), dl, Reg, Op->getOperand(2)); in Select_WRITE_REGISTER()
2019 return CurDAG->SelectNodeTo(N, TargetOpcode::IMPLICIT_DEF,N->getValueType(0)); in Select_UNDEF()
2073 CurDAG->ReplaceAllUsesOfValueWith(ChainVal, InputChain); in UpdateChainsAndGlue()
2095 CurDAG->ReplaceAllUsesOfValueWith(SDValue(FRN, FRN->getNumValues()-1), in UpdateChainsAndGlue()
2106 CurDAG->RemoveDeadNodes(NowDeadNodes); in UpdateChainsAndGlue()
2246 SelectionDAG *CurDAG) { in HandleMergeInputChains() argument
2286 return CurDAG->getNode(ISD::TokenFactor, SDLoc(ChainNodesMatched[0]), in HandleMergeInputChains()
2313 SDNode *Res = CurDAG->MorphNodeTo(Node, ~TargetOpc, VTList, Ops); in MorphNode()
2328 CurDAG->ReplaceAllUsesOfValueWith(SDValue(Node, OldGlueResultNo), in MorphNode()
2337 CurDAG->ReplaceAllUsesOfValueWith(SDValue(Node, OldChainResultNo), in MorphNode()
2343 CurDAG->ReplaceAllUsesWith(Node, Res); in MorphNode()
2641 CurDAG->ReplaceAllUsesOfValueWith(SDValue(NodeToMatch, 0), in SelectCodeCommon()
2683 NodeToMatch->dump(CurDAG); in SelectCodeCommon()
2866 MSU.reset(new MatchStateUpdater(*CurDAG, RecordedNodes, in SelectCodeCommon()
3007 CurDAG->getTargetConstant(Val, VT), nullptr)); in SelectCodeCommon()
3015 CurDAG->getRegister(RegNo, VT), nullptr)); in SelectCodeCommon()
3027 CurDAG->getRegister(RegNo, VT), nullptr)); in SelectCodeCommon()
3039 Imm = CurDAG->getConstant(*Val, Imm.getValueType(), true); in SelectCodeCommon()
3042 Imm = CurDAG->getConstantFP(*Val, Imm.getValueType(), true); in SelectCodeCommon()
3071 InputChain = HandleMergeInputChains(ChainNodesMatched, CurDAG); in SelectCodeCommon()
3113 InputChain = HandleMergeInputChains(ChainNodesMatched, CurDAG); in SelectCodeCommon()
3127 InputChain = CurDAG->getEntryNode(); in SelectCodeCommon()
3129 InputChain = CurDAG->getCopyToReg(InputChain, SDLoc(NodeToMatch), in SelectCodeCommon()
3171 VTList = CurDAG->getVTList(VTs[0]); in SelectCodeCommon()
3173 VTList = CurDAG->getVTList(VTs[0], VTs[1]); in SelectCodeCommon()
3175 VTList = CurDAG->getVTList(VTs); in SelectCodeCommon()
3217 Res = CurDAG->getMachineNode(TargetOpc, SDLoc(NodeToMatch), in SelectCodeCommon()
3295 << " node: "; Res->dump(CurDAG); dbgs() << "\n"); in SelectCodeCommon()
3347 CurDAG->ReplaceAllUsesOfValueWith(SDValue(NodeToMatch, i), Res); in SelectCodeCommon()
3430 N->printrFull(Msg, CurDAG); in CannotYetSelect()