Lines Matching refs:OS

24 void Matcher::print(raw_ostream &OS, unsigned indent) const {
25 printImpl(OS, indent);
27 return Next->print(OS, indent);
30 void Matcher::printOne(raw_ostream &OS) const {
31 printImpl(OS, 0);
108 void ScopeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
109 OS.indent(indent) << "Scope\n";
112 OS.indent(indent+1) << "NULL POINTER\n";
114 getChild(i)->print(OS, indent+2);
118 void RecordMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
119 OS.indent(indent) << "Record\n";
122 void RecordChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
123 OS.indent(indent) << "RecordChild: " << ChildNo << '\n';
126 void RecordMemRefMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
127 OS.indent(indent) << "RecordMemRef\n";
130 void CaptureGlueInputMatcher::printImpl(raw_ostream &OS, unsigned indent) const{
131 OS.indent(indent) << "CaptureGlueInput\n";
134 void MoveChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
135 OS.indent(indent) << "MoveChild " << ChildNo << '\n';
138 void MoveParentMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
139 OS.indent(indent) << "MoveParent\n";
142 void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
143 OS.indent(indent) << "CheckSame " << MatchNumber << '\n';
146 void CheckChildSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
147 OS.indent(indent) << "CheckChild" << ChildNo << "Same\n";
151 printImpl(raw_ostream &OS, unsigned indent) const {
152 OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n';
155 void CheckPredicateMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
156 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n';
159 void CheckOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
160 OS.indent(indent) << "CheckOpcode " << Opcode.getEnumName() << '\n';
163 void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
164 OS.indent(indent) << "SwitchOpcode: {\n";
166 OS.indent(indent) << "case " << Cases[i].first->getEnumName() << ":\n";
167 Cases[i].second->print(OS, indent+2);
169 OS.indent(indent) << "}\n";
173 void CheckTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
174 OS.indent(indent) << "CheckType " << getEnumName(Type) << ", ResNo="
178 void SwitchTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
179 OS.indent(indent) << "SwitchType: {\n";
181 OS.indent(indent) << "case " << getEnumName(Cases[i].first) << ":\n";
182 Cases[i].second->print(OS, indent+2);
184 OS.indent(indent) << "}\n";
187 void CheckChildTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
188 OS.indent(indent) << "CheckChildType " << ChildNo << " "
193 void CheckIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
194 OS.indent(indent) << "CheckInteger " << Value << '\n';
197 void CheckChildIntegerMatcher::printImpl(raw_ostream &OS,
199 OS.indent(indent) << "CheckChildInteger " << ChildNo << " " << Value << '\n';
202 void CheckCondCodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
203 OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n';
206 void CheckValueTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
207 OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n';
210 void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
211 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n';
214 void CheckAndImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
215 OS.indent(indent) << "CheckAndImm " << Value << '\n';
218 void CheckOrImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
219 OS.indent(indent) << "CheckOrImm " << Value << '\n';
222 void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS,
224 OS.indent(indent) << "CheckFoldableChainNode\n";
227 void EmitIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
228 OS.indent(indent) << "EmitInteger " << Val << " VT=" << VT << '\n';
232 printImpl(raw_ostream &OS, unsigned indent) const {
233 OS.indent(indent) << "EmitStringInteger " << Val << " VT=" << VT << '\n';
236 void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
237 OS.indent(indent) << "EmitRegister ";
239 OS << Reg->getName();
241 OS << "zero_reg";
242 OS << " VT=" << VT << '\n';
246 printImpl(raw_ostream &OS, unsigned indent) const {
247 OS.indent(indent) << "EmitConvertToTarget " << Slot << '\n';
251 printImpl(raw_ostream &OS, unsigned indent) const {
252 OS.indent(indent) << "EmitMergeInputChains <todo: args>\n";
255 void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
256 OS.indent(indent) << "EmitCopyToReg <todo: args>\n";
259 void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
260 OS.indent(indent) << "EmitNodeXForm " << NodeXForm->getName()
265 void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const {
266 OS.indent(indent);
267 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ")
271 OS << ' ' << getEnumName(VTs[i]);
272 OS << '(';
274 OS << Operands[i] << ' ';
275 OS << ")\n";
278 void MarkGlueResultsMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
279 OS.indent(indent) << "MarkGlueResults <todo: args>\n";
282 void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
283 OS.indent(indent) << "CompleteMatch <todo args>\n";
284 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n";
285 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n";