Lines Matching refs:OS
22 void Matcher::print(raw_ostream &OS, unsigned indent) const { in print() argument
23 printImpl(OS, indent); in print()
25 return Next->print(OS, indent); in print()
28 void Matcher::printOne(raw_ostream &OS) const { in printOne()
29 printImpl(OS, 0); in printOne()
116 void ScopeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
117 OS.indent(indent) << "Scope\n"; in printImpl()
120 OS.indent(indent+1) << "NULL POINTER\n"; in printImpl()
122 C->print(OS, indent+2); in printImpl()
126 void RecordMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
127 OS.indent(indent) << "Record\n"; in printImpl()
130 void RecordChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
131 OS.indent(indent) << "RecordChild: " << ChildNo << '\n'; in printImpl()
134 void RecordMemRefMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
135 OS.indent(indent) << "RecordMemRef\n"; in printImpl()
138 void CaptureGlueInputMatcher::printImpl(raw_ostream &OS, unsigned indent) const{ in printImpl() argument
139 OS.indent(indent) << "CaptureGlueInput\n"; in printImpl()
142 void MoveChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
143 OS.indent(indent) << "MoveChild " << ChildNo << '\n'; in printImpl()
146 void MoveParentMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
147 OS.indent(indent) << "MoveParent\n"; in printImpl()
150 void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
151 OS.indent(indent) << "CheckSame " << MatchNumber << '\n'; in printImpl()
154 void CheckChildSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
155 OS.indent(indent) << "CheckChild" << ChildNo << "Same\n"; in printImpl()
159 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
160 OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n'; in printImpl()
163 void CheckPredicateMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
164 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n'; in printImpl()
167 void CheckOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
168 OS.indent(indent) << "CheckOpcode " << Opcode.getEnumName() << '\n'; in printImpl()
171 void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
172 OS.indent(indent) << "SwitchOpcode: {\n"; in printImpl()
174 OS.indent(indent) << "case " << C.first->getEnumName() << ":\n"; in printImpl()
175 C.second->print(OS, indent+2); in printImpl()
177 OS.indent(indent) << "}\n"; in printImpl()
181 void CheckTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
182 OS.indent(indent) << "CheckType " << getEnumName(Type) << ", ResNo=" in printImpl()
186 void SwitchTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
187 OS.indent(indent) << "SwitchType: {\n"; in printImpl()
189 OS.indent(indent) << "case " << getEnumName(C.first) << ":\n"; in printImpl()
190 C.second->print(OS, indent+2); in printImpl()
192 OS.indent(indent) << "}\n"; in printImpl()
195 void CheckChildTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
196 OS.indent(indent) << "CheckChildType " << ChildNo << " " in printImpl()
201 void CheckIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
202 OS.indent(indent) << "CheckInteger " << Value << '\n'; in printImpl()
205 void CheckChildIntegerMatcher::printImpl(raw_ostream &OS, in printImpl() argument
207 OS.indent(indent) << "CheckChildInteger " << ChildNo << " " << Value << '\n'; in printImpl()
210 void CheckCondCodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
211 OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n'; in printImpl()
214 void CheckChild2CondCodeMatcher::printImpl(raw_ostream &OS, in printImpl() argument
216 OS.indent(indent) << "CheckChild2CondCode ISD::" << CondCodeName << '\n'; in printImpl()
219 void CheckValueTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
220 OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n'; in printImpl()
223 void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
224 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n'; in printImpl()
227 void CheckAndImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
228 OS.indent(indent) << "CheckAndImm " << Value << '\n'; in printImpl()
231 void CheckOrImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
232 OS.indent(indent) << "CheckOrImm " << Value << '\n'; in printImpl()
235 void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS, in printImpl() argument
237 OS.indent(indent) << "CheckFoldableChainNode\n"; in printImpl()
240 void CheckImmAllOnesVMatcher::printImpl(raw_ostream &OS, in printImpl() argument
242 OS.indent(indent) << "CheckAllOnesV\n"; in printImpl()
245 void CheckImmAllZerosVMatcher::printImpl(raw_ostream &OS, in printImpl() argument
247 OS.indent(indent) << "CheckAllZerosV\n"; in printImpl()
250 void EmitIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
251 OS.indent(indent) << "EmitInteger " << Val << " VT=" << getEnumName(VT) in printImpl()
256 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
257 OS.indent(indent) << "EmitStringInteger " << Val << " VT=" << getEnumName(VT) in printImpl()
261 void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
262 OS.indent(indent) << "EmitRegister "; in printImpl()
264 OS << Reg->getName(); in printImpl()
266 OS << "zero_reg"; in printImpl()
267 OS << " VT=" << getEnumName(VT) << '\n'; in printImpl()
271 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
272 OS.indent(indent) << "EmitConvertToTarget " << Slot << '\n'; in printImpl()
276 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
277 OS.indent(indent) << "EmitMergeInputChains <todo: args>\n"; in printImpl()
280 void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
281 OS.indent(indent) << "EmitCopyToReg <todo: args>\n"; in printImpl()
284 void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
285 OS.indent(indent) << "EmitNodeXForm " << NodeXForm->getName() in printImpl()
290 void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
291 OS.indent(indent); in printImpl()
292 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ") in printImpl()
296 OS << ' ' << getEnumName(VTs[i]); in printImpl()
297 OS << '('; in printImpl()
299 OS << Operands[i] << ' '; in printImpl()
300 OS << ")\n"; in printImpl()
303 void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
304 OS.indent(indent) << "CompleteMatch <todo args>\n"; in printImpl()
305 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n"; in printImpl()
306 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n"; in printImpl()