Lines Matching refs:CGP
50 const CodeGenDAGPatterns &CGP; member in __anona4bb7a3d0111::MatcherGen
149 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen()
177 TreePattern &TP = *CGP.pf_begin()->second; in InferPossibleTypes()
210 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("imm")); in EmitLeafMatchCode()
305 const SDNodeInfo &CInfo = CGP.getSDNodeInfo(N->getOperator()); in EmitOperatorMatchCode()
349 if (N->NodeHasProperty(SDNPMemOperand, CGP)) in EmitOperatorMatchCode()
355 if (N->NodeHasProperty(SDNPHasChain, CGP)) { in EmitOperatorMatchCode()
399 const SDNodeInfo &PInfo = CGP.getSDNodeInfo(Root->getOperator()); in EmitOperatorMatchCode()
401 Root->getOperator() == CGP.get_intrinsic_void_sdnode() || in EmitOperatorMatchCode()
402 Root->getOperator() == CGP.get_intrinsic_w_chain_sdnode() || in EmitOperatorMatchCode()
403 Root->getOperator() == CGP.get_intrinsic_wo_chain_sdnode() || in EmitOperatorMatchCode()
416 if (N->NodeHasProperty(SDNPOutGlue, CGP) && in EmitOperatorMatchCode()
428 if (N->NodeHasProperty(SDNPOptInGlue, CGP) || in EmitOperatorMatchCode()
429 N->NodeHasProperty(SDNPInGlue, CGP)) in EmitOperatorMatchCode()
501 Pattern.getSrcPattern()->getComplexPatternInfo(CGP)) { in EmitMatcherCode()
506 AddMatcher(new CheckOpcodeMatcher(CGP.getSDNodeInfo(OpNodes[Variant]))); in EmitMatcherCode()
533 CurOp += N->getChild(i)->getNumMIResults(CGP); in EmitMatcherCode()
540 const ComplexPattern &CP = *N->getComplexPatternInfo(CGP); in EmitMatcherCode()
580 for (unsigned i = 0; i < N->getNumMIResults(CGP); ++i) in EmitResultOfNamedOperand()
600 for (unsigned i = 0; i < N->getNumMIResults(CGP); ++i) in EmitResultOfNamedOperand()
619 CGP.getTargetInfo().getRegBank().getReg(Def); in EmitResultLeafAsOperand()
679 const CodeGenDAGPatterns &CGP) { in mayInstNodeLoadOrStore() argument
681 const CodeGenTarget &CGT = CGP.getTargetInfo(); in mayInstNodeLoadOrStore()
688 const CodeGenDAGPatterns &CGP) { in numNodesThatMayLoadOrStore() argument
697 if (mayInstNodeLoadOrStore(N, CGP)) in numNodesThatMayLoadOrStore()
701 Count += numNodesThatMayLoadOrStore(N->getChild(i), CGP); in numNodesThatMayLoadOrStore()
710 const CodeGenTarget &CGT = CGP.getTargetInfo(); in EmitResultInstructionAsOperand()
712 const DAGInstruction &Inst = CGP.getInstruction(Op); in EmitResultInstructionAsOperand()
724 InstPatNode->TreeHasProperty(SDNPHasChain, CGP); in EmitResultInstructionAsOperand()
728 if (Pattern.getSrcPattern()->TreeHasProperty(SDNPHasChain, CGP) in EmitResultInstructionAsOperand()
739 TreeHasInGlue = SrcPat->TreeHasProperty(SDNPOptInGlue, CGP) || in EmitResultInstructionAsOperand()
740 SrcPat->TreeHasProperty(SDNPInGlue, CGP); in EmitResultInstructionAsOperand()
744 TreeHasOutGlue = SrcPat->TreeHasProperty(SDNPOutGlue, CGP); in EmitResultInstructionAsOperand()
769 !CGP.getDefaultOperand(OperandNode).DefaultOps.empty()) { in EmitResultInstructionAsOperand()
773 = CGP.getDefaultOperand(OperandNode); in EmitResultInstructionAsOperand()
863 Pattern.getSrcPattern()->NodeHasProperty(SDNPVariadic, CGP)) in EmitResultInstructionAsOperand()
874 Pattern.getSrcPattern()->TreeHasProperty(SDNPMemOperand, CGP); in EmitResultInstructionAsOperand()
879 numNodesThatMayLoadOrStore(Pattern.getDstPattern(), CGP); in EmitResultInstructionAsOperand()
880 bool NodeIsUniqueLoadOrStore = mayInstNodeLoadOrStore(N, CGP) && in EmitResultInstructionAsOperand()
883 NodeIsUniqueLoadOrStore || (isRoot && (mayInstNodeLoadOrStore(N, CGP) || in EmitResultInstructionAsOperand()
968 const CodeGenTarget &CGT = CGP.getTargetInfo(); in EmitResultCode()
993 const CodeGenDAGPatterns &CGP) { in ConvertPatternToMatcher() argument
994 MatcherGen Gen(Pattern, CGP); in ConvertPatternToMatcher()