Lines Matching refs:InstPatNode
170 bool initialize(TreePatternNode *InstPatNode, const CodeGenTarget &Target, in initialize()
173 if (InstPatNode->isLeaf()) in initialize()
176 if (InstPatNode->getOperator()->getName() == "imm") { in initialize()
181 if (InstPatNode->getOperator()->getName() == "fpimm") { in initialize()
188 for (unsigned i = 0, e = InstPatNode->getNumChildren(); i != e; ++i) { in initialize()
189 TreePatternNode *Op = InstPatNode->getChild(i); in initialize()
479 TreePatternNode *InstPatNode = Pattern.getSrcPattern(); in collectPatterns() local
480 if (!InstPatNode) continue; in collectPatterns()
481 if (InstPatNode->isLeaf()) continue; in collectPatterns()
484 if (InstPatNode->getNumTypes() > 1) continue; in collectPatterns()
486 Record *InstPatOp = InstPatNode->getOperator(); in collectPatterns()
489 if (InstPatNode->getNumTypes()) RetVT = InstPatNode->getType(0); in collectPatterns()
491 if (InstPatNode->getNumChildren()) { in collectPatterns()
492 assert(InstPatNode->getChild(0)->getNumTypes() == 1); in collectPatterns()
493 VT = InstPatNode->getChild(0)->getType(0); in collectPatterns()
497 if (!InstPatNode->getPredicateFns().empty()) in collectPatterns()
502 if (!Operands.initialize(InstPatNode, Target, VT, ImmediatePredicates)) in collectPatterns()
506 if (InstPatNode->getOperator()->getName() == "imm" || in collectPatterns()
507 InstPatNode->getOperator()->getName() == "fpimm") in collectPatterns()
514 for (unsigned i = 0, e = InstPatNode->getNumChildren(); i != e; ++i) { in collectPatterns()
515 std::string PhysReg = PhyRegForNode(InstPatNode->getChild(i), Target); in collectPatterns()
519 InstPatNode->getChild(i)->getName()) { in collectPatterns()