diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-18 02:53:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-18 02:53:41 +0000 |
commit | bd8227f5298f0ab7b96203a6d3875e5d26573376 (patch) | |
tree | 357790bfab723800f0f55b68e7fa1d4f51193ec6 /utils/TableGen/DAGISelMatcher.cpp | |
parent | 8ef9c7958ad7a23ad15d7ff59e1377aec10ca42a (diff) | |
download | external_llvm-bd8227f5298f0ab7b96203a6d3875e5d26573376.zip external_llvm-bd8227f5298f0ab7b96203a6d3875e5d26573376.tar.gz external_llvm-bd8227f5298f0ab7b96203a6d3875e5d26573376.tar.bz2 |
rename the child field to 'next'. This is not a parent/child
relationship, this is a linear list relationship.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcher.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcher.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/utils/TableGen/DAGISelMatcher.cpp b/utils/TableGen/DAGISelMatcher.cpp index c6d18ce..8b8c9bf 100644 --- a/utils/TableGen/DAGISelMatcher.cpp +++ b/utils/TableGen/DAGISelMatcher.cpp @@ -22,98 +22,98 @@ void EmitNodeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "EmitNode: Dst = " << *Pattern.getDstPattern() << "\n"; } -void MatcherNode::printChild(raw_ostream &OS, unsigned indent) const { - if (Child) - return Child->print(OS, indent); - OS.indent(indent) << "<null child>\n"; +void MatcherNode::printNext(raw_ostream &OS, unsigned indent) const { + if (Next) + return Next->print(OS, indent); + OS.indent(indent) << "<null next field>\n"; } void PushMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "Push\n"; - printChild(OS, indent+2); + printNext(OS, indent+2); Failure->print(OS, indent); } void RecordMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "Record\n"; - printChild(OS, indent); + printNext(OS, indent); } void MoveChildMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "MoveChild " << ChildNo << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void MoveParentMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "MoveParent\n"; - printChild(OS, indent); + printNext(OS, indent); } void CheckSameMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckSame " << MatchNumber << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckPatternPredicateMatcherNode:: print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckPredicateMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckPredicate " << PredName << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckOpcodeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckOpcode " << OpcodeName << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckTypeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckType " << getEnumName(Type) << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckIntegerMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckInteger " << Value << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckCondCodeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckValueTypeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckComplexPatMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckAndImmMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckAndImm " << Value << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckOrImmMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckOrImm " << Value << '\n'; - printChild(OS, indent); + printNext(OS, indent); } void CheckFoldableChainNodeMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckFoldableChainNode\n"; - printChild(OS, indent); + printNext(OS, indent); } void CheckChainCompatibleMatcherNode::print(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckChainCompatibleMatcherNode " << PreviousOp << "\n"; - printChild(OS, indent); + printNext(OS, indent); } |