Lines Matching refs:CDP
1775 static unsigned GetNumNodeResults(Record *Operator, CodeGenDAGPatterns &CDP) { in GetNumNodeResults() argument
1781 return CDP.getIntrinsic(Operator).IS.RetVTs.size(); in GetNumNodeResults()
1784 return CDP.getSDNodeInfo(Operator).getNumResults(); in GetNumNodeResults()
1790 if (TreePattern *PFRec = CDP.getPatternFragmentIfRead(Operator)) { in GetNumNodeResults()
1808 NumResults = std::max(NumResults, GetNumNodeResults(Op, CDP)); in GetNumNodeResults()
1814 CodeGenInstruction &InstInfo = CDP.getTargetInfo().getInstruction(Operator); in GetNumNodeResults()
1823 !CDP.getDefaultOperand(OperandNode).DefaultOps.empty()) in GetNumNodeResults()
1828 if (InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()) !=MVT::Other) in GetNumNodeResults()
2133 CodeGenDAGPatterns &CDP = TP.getDAGPatterns(); in getImplicitType() local
2195 const CodeGenHwModes &CGH = CDP.getTargetInfo().getHwModes(); in getImplicitType()
2209 return TypeSetByHwMode(CDP.getComplexPattern(R).getValueType()); in getImplicitType()
2226 const CodeGenHwModes &CGH = CDP.getTargetInfo().getHwModes(); in getImplicitType()
2239 getIntrinsicInfo(const CodeGenDAGPatterns &CDP) const { in getIntrinsicInfo()
2240 if (getOperator() != CDP.get_intrinsic_void_sdnode() && in getIntrinsicInfo()
2241 getOperator() != CDP.get_intrinsic_w_chain_sdnode() && in getIntrinsicInfo()
2242 getOperator() != CDP.get_intrinsic_wo_chain_sdnode()) in getIntrinsicInfo()
2246 return &CDP.getIntrinsicInfo(IID); in getIntrinsicInfo()
2328 TreePatternNode::isCommutativeIntrinsic(const CodeGenDAGPatterns &CDP) const { in isCommutativeIntrinsic()
2329 if (const CodeGenIntrinsic *Int = getIntrinsicInfo(CDP)) in isCommutativeIntrinsic()
2367 CodeGenDAGPatterns &CDP = TP.getDAGPatterns(); in ApplyTypeConstraints() local
2414 if (const CodeGenIntrinsic *Int = getIntrinsicInfo(CDP)) { in ApplyTypeConstraints()
2444 const SDNodeInfo &NI = CDP.getSDNodeInfo(getOperator()); in ApplyTypeConstraints()
2462 const DAGInstruction &Inst = CDP.getInstruction(getOperator()); in ApplyTypeConstraints()
2464 CDP.getTargetInfo().getInstruction(getOperator()); in ApplyTypeConstraints()
2483 InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()); in ApplyTypeConstraints()
2538 CDP.operandHasDefault(InstInfo.Operands[NonOverridableOperands-1].Rec)) in ApplyTypeConstraints()
2549 if (CDP.operandHasDefault(OperandNode) && in ApplyTypeConstraints()
2571 if (Child->getNumMIResults(CDP) < NumArgs) { in ApplyTypeConstraints()
2650 const CodeGenDAGPatterns &CDP) { in canPatternMatch() argument
2654 if (!getChild(i)->canPatternMatch(Reason, CDP)) in canPatternMatch()
2669 const SDNodeInfo &NodeInfo = CDP.getSDNodeInfo(getOperator()); in canPatternMatch()
2670 bool isCommIntrinsic = isCommutativeIntrinsic(CDP); in canPatternMatch()
2692 CodeGenDAGPatterns &cdp) : TheRecord(TheRec), CDP(cdp), in TreePattern()
2700 CodeGenDAGPatterns &cdp) : TheRecord(TheRec), CDP(cdp), in TreePattern()
2708 : TheRecord(TheRec), CDP(cdp), isInputPattern(isInput), HasError(false), in TreePattern()
2859 unsigned NumResults = GetNumNodeResults(Operator, CDP); in ParseTreePattern()
3443 const CodeGenDAGPatterns &CDP; member in InstAnalyzer
3453 : CDP(cdp), hasSideEffects(false), mayStore(false), mayLoad(false), in InstAnalyzer()
3473 const SDNodeInfo &OpInfo = CDP.getSDNodeInfo(N->getOperator()); in IsNodeBitcast()
3486 const ComplexPattern &CP = CDP.getComplexPattern(LeafRec); in AnalyzeNode()
3500 if (N->NodeHasProperty(SDNPMayStore, CDP)) mayStore = true; in AnalyzeNode()
3501 if (N->NodeHasProperty(SDNPMayLoad, CDP)) mayLoad = true; in AnalyzeNode()
3502 if (N->NodeHasProperty(SDNPSideEffect, CDP)) hasSideEffects = true; in AnalyzeNode()
3503 if (N->NodeHasProperty(SDNPVariadic, CDP)) isVariadic = true; in AnalyzeNode()
3504 if (N->NodeHasProperty(SDNPHasChain, CDP)) hasChain = true; in AnalyzeNode()
3506 if (const CodeGenIntrinsic *IntInfo = N->getIntrinsicInfo(CDP)) { in AnalyzeNode()
4403 std::vector<TreePatternNodePtr> &OutVariants, CodeGenDAGPatterns &CDP, in CombineChildVariants() argument
4445 if (R->canPatternMatch(ErrString, CDP) && in CombineChildVariants()
4471 CodeGenDAGPatterns &CDP, in CombineChildVariants() argument
4476 CombineChildVariants(Orig, ChildVariants, OutVariants, CDP, DepVars); in CombineChildVariants()
4508 CodeGenDAGPatterns &CDP, in GenerateVariantsOf() argument
4517 const SDNodeInfo &NodeInfo = CDP.getSDNodeInfo(N->getOperator()); in GenerateVariantsOf()
4530 GenerateVariantsOf(MaximalChildren[0], AVariants, CDP, DepVars); in GenerateVariantsOf()
4531 GenerateVariantsOf(MaximalChildren[1], BVariants, CDP, DepVars); in GenerateVariantsOf()
4532 GenerateVariantsOf(MaximalChildren[2], CVariants, CDP, DepVars); in GenerateVariantsOf()
4545 CombineChildVariants(N, AVariants, BVariants, ABVariants, CDP, DepVars); in GenerateVariantsOf()
4546 CombineChildVariants(N, BVariants, AVariants, BAVariants, CDP, DepVars); in GenerateVariantsOf()
4547 CombineChildVariants(N, AVariants, CVariants, ACVariants, CDP, DepVars); in GenerateVariantsOf()
4548 CombineChildVariants(N, CVariants, AVariants, CAVariants, CDP, DepVars); in GenerateVariantsOf()
4549 CombineChildVariants(N, BVariants, CVariants, BCVariants, CDP, DepVars); in GenerateVariantsOf()
4550 CombineChildVariants(N, CVariants, BVariants, CBVariants, CDP, DepVars); in GenerateVariantsOf()
4553 CombineChildVariants(N, ABVariants, CVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4554 CombineChildVariants(N, BAVariants, CVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4555 CombineChildVariants(N, ACVariants, BVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4556 CombineChildVariants(N, CAVariants, BVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4557 CombineChildVariants(N, BCVariants, AVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4558 CombineChildVariants(N, CBVariants, AVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4561 CombineChildVariants(N, CVariants, ABVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4562 CombineChildVariants(N, CVariants, BAVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4563 CombineChildVariants(N, BVariants, ACVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4564 CombineChildVariants(N, BVariants, CAVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4565 CombineChildVariants(N, AVariants, BCVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4566 CombineChildVariants(N, AVariants, CBVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4575 GenerateVariantsOf(N->getChildShared(i), ChildVariants[i], CDP, DepVars); in GenerateVariantsOf()
4578 CombineChildVariants(N, ChildVariants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4581 bool isCommIntrinsic = N->isCommutativeIntrinsic(CDP); in GenerateVariantsOf()
4610 CombineChildVariants(N, Variants, OutVariants, CDP, DepVars); in GenerateVariantsOf()
4617 CombineChildVariants(N, Variants, OutVariants, CDP, DepVars); in GenerateVariantsOf()