Lines Matching defs:CGP
52 const CodeGenDAGPatterns &CGP;
97 MatcherGen(const PatternToMatch &pattern, const CodeGenDAGPatterns &cgp);
144 const CodeGenDAGPatterns &cgp)
145 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0),
173 TreePattern &TP = *CGP.pf_begin()->second;
211 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("imm"));
270 const SDNodeInfo &CInfo = CGP.getSDNodeInfo(N->getOperator());
314 if (N->NodeHasProperty(SDNPMemOperand, CGP))
320 if (N->NodeHasProperty(SDNPHasChain, CGP)) {
364 const SDNodeInfo &PInfo = CGP.getSDNodeInfo(Root->getOperator());
366 Root->getOperator() == CGP.get_intrinsic_void_sdnode() ||
367 Root->getOperator() == CGP.get_intrinsic_w_chain_sdnode() ||
368 Root->getOperator() == CGP.get_intrinsic_wo_chain_sdnode() ||
381 if (N->NodeHasProperty(SDNPOutGlue, CGP) &&
395 if (N->NodeHasProperty(SDNPOptInGlue, CGP) ||
396 CGP))
464 Pattern.getSrcPattern()->getComplexPatternInfo(CGP)) {
469 AddMatcher(new CheckOpcodeMatcher(CGP.getSDNodeInfo(OpNodes[Variant])));
499 CGP.getComplexPattern(((DefInit*)N->getLeafValue())->getDef());
538 if (const ComplexPattern *CP = N->getComplexPatternInfo(CGP)) {
586 CGP.getTargetInfo().getRegBank().getReg(Def);
646 const CodeGenDAGPatterns &CGP) {
648 const CodeGenTarget &CGT = CGP.getTargetInfo();
655 const CodeGenDAGPatterns &CGP) {
664 if (mayInstNodeLoadOrStore(N, CGP))
668 Count += numNodesThatMayLoadOrStore(N->getChild(i), CGP);
677 const CodeGenTarget &CGT = CGP.getTargetInfo();
679 const DAGInstruction &Inst = CGP.getInstruction(Op);
691 InstPatNode->TreeHasProperty(SDNPHasChain, CGP);
699 TreeHasInGlue = SrcPat->TreeHasProperty(SDNPOptInGlue, CGP) ||
700 SrcPat->TreeHasProperty(SDNPInGlue, CGP);
704 TreeHasOutGlue = SrcPat->TreeHasProperty(SDNPOutGlue, CGP);
725 !CGP.getDefaultOperand(OperandNode).DefaultOps.empty()) {
729 = CGP.getDefaultOperand(OperandNode);
796 (Pattern.getSrcPattern()->NodeHasProperty(SDNPVariadic, CGP)))
807 Pattern.getSrcPattern()->TreeHasProperty(SDNPMemOperand, CGP);
812 numNodesThatMayLoadOrStore(Pattern.getDstPattern(), CGP);
813 bool NodeIsUniqueLoadOrStore = mayInstNodeLoadOrStore(N, CGP) &&
816 NodeIsUniqueLoadOrStore || (isRoot && (mayInstNodeLoadOrStore(N, CGP) ||
903 const CodeGenTarget &CGT = CGP.getTargetInfo();
934 const CodeGenDAGPatterns &CGP) {
935 MatcherGen Gen(Pattern, CGP);