Lines Matching refs:OS

23 void Matcher::print(raw_ostream &OS, unsigned indent) const {  in print()  argument
24 printImpl(OS, indent); in print()
26 return Next->print(OS, indent); in print()
29 void Matcher::printOne(raw_ostream &OS) const { in printOne()
30 printImpl(OS, 0); in printOne()
117 void ScopeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
118 OS.indent(indent) << "Scope\n"; in printImpl()
121 OS.indent(indent+1) << "NULL POINTER\n"; in printImpl()
123 C->print(OS, indent+2); in printImpl()
127 void RecordMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
128 OS.indent(indent) << "Record\n"; in printImpl()
131 void RecordChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
132 OS.indent(indent) << "RecordChild: " << ChildNo << '\n'; in printImpl()
135 void RecordMemRefMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
136 OS.indent(indent) << "RecordMemRef\n"; in printImpl()
139 void CaptureGlueInputMatcher::printImpl(raw_ostream &OS, unsigned indent) const{ in printImpl() argument
140 OS.indent(indent) << "CaptureGlueInput\n"; in printImpl()
143 void MoveChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
144 OS.indent(indent) << "MoveChild " << ChildNo << '\n'; in printImpl()
147 void MoveParentMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
148 OS.indent(indent) << "MoveParent\n"; in printImpl()
151 void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
152 OS.indent(indent) << "CheckSame " << MatchNumber << '\n'; in printImpl()
155 void CheckChildSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
156 OS.indent(indent) << "CheckChild" << ChildNo << "Same\n"; in printImpl()
160 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
161 OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n'; in printImpl()
164 void CheckPredicateMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
165 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n'; in printImpl()
168 void CheckOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
169 OS.indent(indent) << "CheckOpcode " << Opcode.getEnumName() << '\n'; in printImpl()
172 void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
173 OS.indent(indent) << "SwitchOpcode: {\n"; in printImpl()
175 OS.indent(indent) << "case " << C.first->getEnumName() << ":\n"; in printImpl()
176 C.second->print(OS, indent+2); in printImpl()
178 OS.indent(indent) << "}\n"; in printImpl()
182 void CheckTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
183 OS.indent(indent) << "CheckType " << getEnumName(Type) << ", ResNo=" in printImpl()
187 void SwitchTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
188 OS.indent(indent) << "SwitchType: {\n"; in printImpl()
190 OS.indent(indent) << "case " << getEnumName(C.first) << ":\n"; in printImpl()
191 C.second->print(OS, indent+2); in printImpl()
193 OS.indent(indent) << "}\n"; in printImpl()
196 void CheckChildTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
197 OS.indent(indent) << "CheckChildType " << ChildNo << " " in printImpl()
202 void CheckIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
203 OS.indent(indent) << "CheckInteger " << Value << '\n'; in printImpl()
206 void CheckChildIntegerMatcher::printImpl(raw_ostream &OS, in printImpl() argument
208 OS.indent(indent) << "CheckChildInteger " << ChildNo << " " << Value << '\n'; in printImpl()
211 void CheckCondCodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
212 OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n'; in printImpl()
215 void CheckValueTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
216 OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n'; in printImpl()
219 void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
220 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n'; in printImpl()
223 void CheckAndImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
224 OS.indent(indent) << "CheckAndImm " << Value << '\n'; in printImpl()
227 void CheckOrImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
228 OS.indent(indent) << "CheckOrImm " << Value << '\n'; in printImpl()
231 void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS, in printImpl() argument
233 OS.indent(indent) << "CheckFoldableChainNode\n"; in printImpl()
236 void EmitIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
237 OS.indent(indent) << "EmitInteger " << Val << " VT=" << getEnumName(VT) in printImpl()
242 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
243 OS.indent(indent) << "EmitStringInteger " << Val << " VT=" << getEnumName(VT) in printImpl()
247 void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
248 OS.indent(indent) << "EmitRegister "; in printImpl()
250 OS << Reg->getName(); in printImpl()
252 OS << "zero_reg"; in printImpl()
253 OS << " VT=" << getEnumName(VT) << '\n'; in printImpl()
257 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
258 OS.indent(indent) << "EmitConvertToTarget " << Slot << '\n'; in printImpl()
262 printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
263 OS.indent(indent) << "EmitMergeInputChains <todo: args>\n"; in printImpl()
266 void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
267 OS.indent(indent) << "EmitCopyToReg <todo: args>\n"; in printImpl()
270 void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
271 OS.indent(indent) << "EmitNodeXForm " << NodeXForm->getName() in printImpl()
276 void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
277 OS.indent(indent); in printImpl()
278 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ") in printImpl()
282 OS << ' ' << getEnumName(VTs[i]); in printImpl()
283 OS << '('; in printImpl()
285 OS << Operands[i] << ' '; in printImpl()
286 OS << ")\n"; in printImpl()
289 void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const { in printImpl() argument
290 OS.indent(indent) << "CompleteMatch <todo args>\n"; in printImpl()
291 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n"; in printImpl()
292 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n"; in printImpl()