Lines Matching refs:OS
24 void Matcher::print(raw_ostream &OS, unsigned indent) const { in print() argument
25 printImpl(OS, indent); in print()
27 return Next->print(OS, indent); in print()
30 void Matcher::printOne(raw_ostream &OS) const { in printOne()
31 printImpl(OS, 0); in printOne()
99 void ScopeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
100 OS.indent(indent) << "Scope\n"; in printImpl()
103 OS.indent(indent+1) << "NULL POINTER\n"; in printImpl()
105 getChild(i)->print(OS, indent+2); in printImpl()
109 void RecordMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
110 OS.indent(indent) << "Record\n"; in printImpl()
113 void RecordChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
114 OS.indent(indent) << "RecordChild: " << ChildNo << '\n'; in printImpl()
117 void RecordMemRefMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
118 OS.indent(indent) << "RecordMemRef\n"; in printImpl()
121 void CaptureGlueInputMatcher::printImpl(raw_ostream &OS, unsigned indent) const{ in printImpl() argument
122 OS.indent(indent) << "CaptureGlueInput\n"; in printImpl()
125 void MoveChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
126 OS.indent(indent) << "MoveChild " << ChildNo << '\n'; in printImpl()
129 void MoveParentMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
130 OS.indent(indent) << "MoveParent\n"; in printImpl()
133 void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
134 OS.indent(indent) << "CheckSame " << MatchNumber << '\n'; in printImpl()
138 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
139 OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n'; in printImpl()
142 void CheckPredicateMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
143 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n'; in printImpl()
146 void CheckOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
147 OS.indent(indent) << "CheckOpcode " << Opcode.getEnumName() << '\n'; in printImpl()
150 void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
151 OS.indent(indent) << "SwitchOpcode: {\n"; in printImpl()
153 OS.indent(indent) << "case " << Cases[i].first->getEnumName() << ":\n"; in printImpl()
154 Cases[i].second->print(OS, indent+2); in printImpl()
156 OS.indent(indent) << "}\n"; in printImpl()
160 void CheckTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
161 OS.indent(indent) << "CheckType " << getEnumName(Type) << ", ResNo=" in printImpl()
165 void SwitchTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
166 OS.indent(indent) << "SwitchType: {\n"; in printImpl()
168 OS.indent(indent) << "case " << getEnumName(Cases[i].first) << ":\n"; in printImpl()
169 Cases[i].second->print(OS, indent+2); in printImpl()
171 OS.indent(indent) << "}\n"; in printImpl()
174 void CheckChildTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
175 OS.indent(indent) << "CheckChildType " << ChildNo << " " in printImpl()
180 void CheckIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
181 OS.indent(indent) << "CheckInteger " << Value << '\n'; in printImpl()
184 void CheckCondCodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
185 OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n'; in printImpl()
188 void CheckValueTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
189 OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n'; in printImpl()
192 void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
193 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n'; in printImpl()
196 void CheckAndImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
197 OS.indent(indent) << "CheckAndImm " << Value << '\n'; in printImpl()
200 void CheckOrImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
201 OS.indent(indent) << "CheckOrImm " << Value << '\n'; in printImpl()
204 void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS, in printImpl() argument
206 OS.indent(indent) << "CheckFoldableChainNode\n"; in printImpl()
209 void EmitIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
210 OS.indent(indent) << "EmitInteger " << Val << " VT=" << VT << '\n'; in printImpl()
214 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
215 OS.indent(indent) << "EmitStringInteger " << Val << " VT=" << VT << '\n'; in printImpl()
218 void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
219 OS.indent(indent) << "EmitRegister "; in printImpl()
221 OS << Reg->getName(); in printImpl()
223 OS << "zero_reg"; in printImpl()
224 OS << " VT=" << VT << '\n'; in printImpl()
228 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
229 OS.indent(indent) << "EmitConvertToTarget " << Slot << '\n'; in printImpl()
233 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
234 OS.indent(indent) << "EmitMergeInputChains <todo: args>\n"; in printImpl()
237 void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
238 OS.indent(indent) << "EmitCopyToReg <todo: args>\n"; in printImpl()
241 void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
242 OS.indent(indent) << "EmitNodeXForm " << NodeXForm->getName() in printImpl()
247 void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
248 OS.indent(indent); in printImpl()
249 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ") in printImpl()
253 OS << ' ' << getEnumName(VTs[i]); in printImpl()
254 OS << '('; in printImpl()
256 OS << Operands[i] << ' '; in printImpl()
257 OS << ")\n"; in printImpl()
260 void MarkGlueResultsMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
261 OS.indent(indent) << "MarkGlueResults <todo: args>\n"; in printImpl()
264 void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
265 OS.indent(indent) << "CompleteMatch <todo args>\n"; in printImpl()
266 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n"; in printImpl()
267 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n"; in printImpl()