Lines Matching refs:TreePatternNode

1359 static bool isImmAllOnesAllZerosMatch(const TreePatternNode *P) {  in isImmAllOnesAllZerosMatch()
1373 static unsigned getPatternSize(const TreePatternNode *P, in getPatternSize()
1394 const TreePatternNode *Child = P->getChild(i); in getPatternSize()
1513 static TreePatternNode *getOperandNum(unsigned OpNo, TreePatternNode *N, in getOperandNum()
1539 bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N, in ApplyTypeConstraint()
1546 TreePatternNode *NodeToApply = getOperandNum(OperandNo, N, NodeInfo, ResNo); in ApplyTypeConstraint()
1567 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1588 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1596 TreePatternNode *BigOperand = in ApplyTypeConstraint()
1604 TreePatternNode *VecOperand = in ApplyTypeConstraint()
1614 TreePatternNode *BigVecOperand = in ApplyTypeConstraint()
1628 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1636 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1649 bool TreePatternNode::UpdateNodeTypeFromInst(unsigned ResNo, in UpdateNodeTypeFromInst()
1681 bool TreePatternNode::ContainsUnresolvedType(TreePattern &TP) const { in ContainsUnresolvedType()
1691 bool TreePatternNode::hasProperTypeByHwMode() const { in hasProperTypeByHwMode()
1701 bool TreePatternNode::hasPossibleType() const { in hasPossibleType()
1711 bool TreePatternNode::setDefaultMode(unsigned Mode) { in setDefaultMode()
1846 void TreePatternNode::print(raw_ostream &OS) const { in print()
1883 void TreePatternNode::dump() const { in dump()
1894 bool TreePatternNode::isIsomorphicTo(const TreePatternNode *N, in isIsomorphicTo()
1923 TreePatternNodePtr TreePatternNode::clone() const { in clone()
1926 New = std::make_shared<TreePatternNode>(getLeafValue(), getNumTypes()); in clone()
1932 New = std::make_shared<TreePatternNode>(getOperator(), std::move(CChildren), in clone()
1944 void TreePatternNode::RemoveAllTypes() { in RemoveAllTypes()
1955 void TreePatternNode::SubstituteFormalArguments( in SubstituteFormalArguments()
1960 TreePatternNode *Child = getChild(i); in SubstituteFormalArguments()
1985 void TreePatternNode::InlinePatternFragments( in InlinePatternFragments()
2031 TreePatternNodePtr R = std::make_shared<TreePatternNode>( in InlinePatternFragments()
2238 const CodeGenIntrinsic *TreePatternNode::
2252 TreePatternNode::getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const { in getComplexPatternInfo()
2267 unsigned TreePatternNode::getNumMIResults(const CodeGenDAGPatterns &CGP) const { in getNumMIResults()
2287 bool TreePatternNode::NodeHasProperty(SDNP Property, in NodeHasProperty()
2315 bool TreePatternNode::TreeHasProperty(SDNP Property, in TreeHasProperty()
2328 TreePatternNode::isCommutativeIntrinsic(const CodeGenDAGPatterns &CDP) const { in isCommutativeIntrinsic()
2334 static bool isOperandClass(const TreePatternNode *N, StringRef Class) { in isOperandClass()
2363 bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { in ApplyTypeConstraints()
2516 TreePatternNode *SubIdxChild = getChild(I + 1); in ApplyTypeConstraints()
2560 TreePatternNode *Child = getChild(ChildNo++); in ApplyTypeConstraints()
2635 static bool OnlyOnRHSOfCommutative(TreePatternNode *N) { in OnlyOnRHSOfCommutative()
2649 bool TreePatternNode::canPatternMatch(std::string &Reason, in canPatternMatch()
2726 void TreePattern::ComputeNamedNodes(TreePatternNode *N) { in ComputeNamedNodes()
2749 TreePatternNodePtr Res = std::make_shared<TreePatternNode>(DI, 1); in ParseTreePattern()
2764 TreePatternNodePtr Res = std::make_shared<TreePatternNode>(TheInit, 1); in ParseTreePattern()
2775 return std::make_shared<TreePatternNode>(TheInit, 1); in ParseTreePattern()
2879 std::make_shared<TreePatternNode>(IntInit::get(IID), 1)); in ParseTreePattern()
2904 std::make_shared<TreePatternNode>(Operator, std::move(Children), in ParseTreePattern()
2959 InferAllTypes(const StringMap<SmallVector<TreePatternNode*,1> > *InNamedTypes) { in InferAllTypes() argument
2973 SmallVectorImpl<TreePatternNode*> &Nodes = Entry.second; in InferAllTypes()
2984 const SmallVectorImpl<TreePatternNode*> &InNodes = in InferAllTypes()
2988 for (TreePatternNode *Node : Nodes) { in InferAllTypes()
3013 TreePatternNode *N1 = Nodes[i], *N2 = Nodes[i+1]; in InferAllTypes()
3360 TreePatternNode *Dest = Pat->getChild(i); in FindPatternInputsAndOutputs()
3457 const TreePatternNode *N = Pat.getSrcPattern(); in Analyze()
3464 bool IsNodeBitcast(const TreePatternNode *N) const { in IsNodeBitcast()
3480 void AnalyzeNode(const TreePatternNode *N) { in AnalyzeNode()
3619 getInstructionsInTree(TreePatternNode *Tree, SmallVectorImpl<Record*> &Instrs) { in getInstructionsInTree()
3783 OpNode = std::make_shared<TreePatternNode>(Xform, std::move(Children), in parseInstructionPattern()
3794 TreePatternNodePtr ResultPattern = std::make_shared<TreePatternNode>( in parseInstructionPattern()
3885 typedef std::pair<TreePatternNode *, unsigned> NameRecord;
3887 static void FindNames(TreePatternNode *P, in FindNames()
4098 static bool ForceArbitraryInstResultType(TreePatternNode *N, TreePattern &TP) { in ForceArbitraryInstResultType()
4131 return std::make_shared<TreePatternNode>(Xform, std::move(Children), in PromoteXForms()
4272 static void collectModes(std::set<unsigned> &Modes, const TreePatternNode *N) { in collectModes()
4362 static void FindDepVarsOf(TreePatternNode *N, DepVarMap &DepMap) { in FindDepVarsOf()
4373 static void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) { in FindDepVars()
4428 TreePatternNodePtr R = std::make_shared<TreePatternNode>( in CombineChildVariants()
4588 TreePatternNode *Child = N->getChild(i); in GenerateVariantsOf()