Home
last modified time | relevance | path

Searched refs:TreePatternNode (Results 1 – 12 of 12) sorted by relevance

/external/llvm/utils/TableGen/
DCodeGenDAGPatterns.h35 class TreePatternNode; variable
216 bool ApplyTypeConstraint(TreePatternNode *N, const SDNodeInfo &NodeInfo,
260 bool ApplyTypeConstraints(TreePatternNode *N, TreePattern &TP) const { in ApplyTypeConstraints()
322 class TreePatternNode {
348 std::vector<TreePatternNode*> Children;
350 TreePatternNode(Record *Op, const std::vector<TreePatternNode*> &Ch, in TreePatternNode() function
355 TreePatternNode(Init *val, unsigned NumResults) // leaf ctor in TreePatternNode() function
359 ~TreePatternNode();
391 TreePatternNode *getChild(unsigned N) const { return Children[N]; } in getChild()
392 void setChild(unsigned i, TreePatternNode *N) { in setChild()
[all …]
DCodeGenDAGPatterns.cpp710 static void FindDepVarsOf(TreePatternNode *N, DepVarMap &DepMap) { in FindDepVarsOf()
721 static void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) { in FindDepVars()
815 static unsigned getPatternSize(const TreePatternNode *P, in getPatternSize()
843 TreePatternNode *Child = P->getChild(i); in getPatternSize()
961 static TreePatternNode *getOperandNum(unsigned OpNo, TreePatternNode *N, in getOperandNum()
987 bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N, in ApplyTypeConstraint()
994 TreePatternNode *NodeToApply = getOperandNum(OperandNo, N, NodeInfo, ResNo); in ApplyTypeConstraint()
1014 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1035 TreePatternNode *OtherNode = in ApplyTypeConstraint()
1043 TreePatternNode *BigOperand = in ApplyTypeConstraint()
[all …]
DDAGISelMatcherGen.cpp55 TreePatternNode *PatWithNoTypes;
81 SmallVector<std::pair<const TreePatternNode*,
111 void EmitMatchCode(const TreePatternNode *N, TreePatternNode *NodeNoTypes);
112 void EmitLeafMatchCode(const TreePatternNode *N);
113 void EmitOperatorMatchCode(const TreePatternNode *N,
114 TreePatternNode *NodeNoTypes);
130 const TreePatternNode *GetInstPatternNode(const DAGInstruction &Ins,
131 const TreePatternNode *N);
133 void EmitResultOperand(const TreePatternNode *N,
135 void EmitResultOfNamedOperand(const TreePatternNode *N,
[all …]
DDAGISelEmitter.cpp41 static unsigned getResultPatternCost(TreePatternNode *P, in getResultPatternCost()
60 static unsigned getResultPatternSize(TreePatternNode *P, in getResultPatternSize()
83 const TreePatternNode *LHSSrc = LHS->getSrcPattern(); in operator ()()
84 const TreePatternNode *RHSSrc = RHS->getSrcPattern(); in operator ()()
DFastISelEmitter.cpp176 bool initialize(TreePatternNode *InstPatNode, const CodeGenTarget &Target, in initialize()
196 TreePatternNode *Op = InstPatNode->getChild(i); in initialize()
422 static std::string PhyRegForNode(TreePatternNode *Op, in PhyRegForNode()
454 TreePatternNode *Dst = Pattern.getDstPattern(); in collectPatterns()
466 TreePatternNode *ChildOp = Dst->getChild(i); in collectPatterns()
503 TreePatternNode *InstPatNode = Pattern.getSrcPattern(); in collectPatterns()
/external/llvm-project/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp86 SmallVector<std::pair<const TreePatternNode*,
112 void EmitMatchCode(const TreePatternNode *N, TreePatternNode *NodeNoTypes,
114 void EmitLeafMatchCode(const TreePatternNode *N);
115 void EmitOperatorMatchCode(const TreePatternNode *N,
116 TreePatternNode *NodeNoTypes,
132 void EmitResultOperand(const TreePatternNode *N,
134 void EmitResultOfNamedOperand(const TreePatternNode *N,
136 void EmitResultLeafAsOperand(const TreePatternNode *N,
138 void EmitResultInstructionAsOperand(const TreePatternNode *N,
140 void EmitResultSDNodeXFormAsOperand(const TreePatternNode *N,
[all …]
DCodeGenDAGPatterns.h42 class TreePatternNode; variable
46 using TreePatternNodePtr = std::shared_ptr<TreePatternNode>;
418 bool ApplyTypeConstraint(TreePatternNode *N, const SDNodeInfo &NodeInfo,
484 bool ApplyTypeConstraints(TreePatternNode *N, TreePattern &TP) const;
629 class TreePatternNode {
663 TreePatternNode(Record *Op, std::vector<TreePatternNodePtr> Ch, in TreePatternNode() function
671 TreePatternNode(Init *val, unsigned NumResults) // leaf ctor in TreePatternNode() function
724 TreePatternNode *getChild(unsigned N) const { return Children[N].get(); } in getChild()
731 bool hasChild(const TreePatternNode *N) const { in hasChild()
807 bool isIsomorphicTo(const TreePatternNode *N,
[all …]
DCodeGenDAGPatterns.cpp1359 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()
[all …]
DDAGISelEmitter.cpp41 static unsigned getResultPatternCost(TreePatternNode *P, in getResultPatternCost()
60 static unsigned getResultPatternSize(TreePatternNode *P, in getResultPatternSize()
83 const TreePatternNode *LT = LHS->getSrcPattern(); in operator ()()
84 const TreePatternNode *RT = RHS->getSrcPattern(); in operator ()()
DGlobalISelEmitter.cpp203 static std::string explainPredicates(const TreePatternNode *N) { in explainPredicates()
307 static Error isTrivialOperatorNode(const TreePatternNode *N) { in isTrivialOperatorNode()
3468 static Expected<LLTCodeGen> getInstResultType(const TreePatternNode *Dst) { in getInstResultType()
3537 const TreePatternNode *N) const;
3543 const TreePatternNode *Src, unsigned &TempOpIdx);
3547 const TreePatternNode *SrcChild,
3553 const TreePatternNode *Src, const TreePatternNode *Dst);
3555 action_iterator InsertPt, RuleMatcher &M, const TreePatternNode *Dst,
3559 const TreePatternNode *Dst);
3564 const TreePatternNode *Dst);
[all …]
DFastISelEmitter.cpp187 bool initialize(TreePatternNode *InstPatNode, const CodeGenTarget &Target, in initialize()
207 TreePatternNode *Op = InstPatNode->getChild(i); in initialize()
429 static std::string PhyRegForNode(TreePatternNode *Op, in PhyRegForNode()
457 TreePatternNode *Dst = Pattern.getDstPattern(); in collectPatterns()
476 TreePatternNode *ChildOp = Dst->getChild(i); in collectPatterns()
513 TreePatternNode *InstPatNode = Pattern.getSrcPattern(); in collectPatterns()
DDAGISelMatcherEmitter.cpp168 static std::string GetPatFromTreePatternNode(const TreePatternNode *N) { in GetPatFromTreePatternNode()