Lines Matching defs:OS
22 void Matcher::print(raw_ostream &OS, indent Indent) const {
23 printImpl(OS, Indent);
25 return Next->print(OS, Indent);
28 void Matcher::printOne(raw_ostream &OS) const { printImpl(OS, indent(0)); }
114 void ScopeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
115 OS << Indent << "Scope\n";
118 OS << Indent + 1 << "NULL POINTER\n";
120 C->print(OS, Indent + 2);
124 void RecordMatcher::printImpl(raw_ostream &OS, indent Indent) const {
125 OS << Indent << "Record\n";
128 void RecordChildMatcher::printImpl(raw_ostream &OS, indent Indent) const {
129 OS << Indent << "RecordChild: " << ChildNo << '\n';
132 void RecordMemRefMatcher::printImpl(raw_ostream &OS, indent Indent) const {
133 OS << Indent << "RecordMemRef\n";
136 void CaptureGlueInputMatcher::printImpl(raw_ostream &OS, indent Indent) const {
137 OS << Indent << "CaptureGlueInput\n";
140 void MoveChildMatcher::printImpl(raw_ostream &OS, indent Indent) const {
141 OS << Indent << "MoveChild " << ChildNo << '\n';
144 void MoveSiblingMatcher::printImpl(raw_ostream &OS, indent Indent) const {
145 OS << Indent << "MoveSibling " << SiblingNo << '\n';
148 void MoveParentMatcher::printImpl(raw_ostream &OS, indent Indent) const {
149 OS << Indent << "MoveParent\n";
152 void CheckSameMatcher::printImpl(raw_ostream &OS, indent Indent) const {
153 OS << Indent << "CheckSame " << MatchNumber << '\n';
156 void CheckChildSameMatcher::printImpl(raw_ostream &OS, indent Indent) const {
157 OS << Indent << "CheckChild" << ChildNo << "Same\n";
160 void CheckPatternPredicateMatcher::printImpl(raw_ostream &OS,
162 OS << Indent << "CheckPatternPredicate " << Predicate << '\n';
165 void CheckPredicateMatcher::printImpl(raw_ostream &OS, indent Indent) const {
166 OS << Indent << "CheckPredicate " << getPredicate().getFnName() << '\n';
169 void CheckOpcodeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
170 OS << Indent << "CheckOpcode " << Opcode.getEnumName() << '\n';
173 void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
174 OS << Indent << "SwitchOpcode: {\n";
176 OS << Indent << "case " << C.first->getEnumName() << ":\n";
177 C.second->print(OS, Indent + 2);
179 OS << Indent << "}\n";
182 void CheckTypeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
183 OS << Indent << "CheckType " << getEnumName(Type) << ", ResNo=" << ResNo
187 void SwitchTypeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
188 OS << Indent << "SwitchType: {\n";
190 OS << Indent << "case " << getEnumName(C.first) << ":\n";
191 C.second->print(OS, Indent + 2);
193 OS << Indent << "}\n";
196 void CheckChildTypeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
197 OS << Indent << "CheckChildType " << ChildNo << " " << getEnumName(Type)
201 void CheckIntegerMatcher::printImpl(raw_ostream &OS, indent Indent) const {
202 OS << Indent << "CheckInteger " << Value << '\n';
205 void CheckChildIntegerMatcher::printImpl(raw_ostream &OS, indent Indent) const {
206 OS << Indent << "CheckChildInteger " << ChildNo << " " << Value << '\n';
209 void CheckCondCodeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
210 OS << Indent << "CheckCondCode ISD::" << CondCodeName << '\n';
213 void CheckChild2CondCodeMatcher::printImpl(raw_ostream &OS,
215 OS << Indent << "CheckChild2CondCode ISD::" << CondCodeName << '\n';
218 void CheckValueTypeMatcher::printImpl(raw_ostream &OS, indent Indent) const {
219 OS << Indent << "CheckValueType " << getEnumName(VT) << '\n';
222 void CheckComplexPatMatcher::printImpl(raw_ostream &OS, indent Indent) const {
223 OS << Indent << "CheckComplexPat " << Pattern.getSelectFunc() << '\n';
226 void CheckAndImmMatcher::printImpl(raw_ostream &OS, indent Indent) const {
227 OS << Indent << "CheckAndImm " << Value << '\n';
230 void CheckOrImmMatcher::printImpl(raw_ostream &OS, indent Indent) const {
231 OS << Indent << "CheckOrImm " << Value << '\n';
234 void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS,
236 OS << Indent << "CheckFoldableChainNode\n";
239 void CheckImmAllOnesVMatcher::printImpl(raw_ostream &OS, indent Indent) const {
240 OS << Indent << "CheckAllOnesV\n";
243 void CheckImmAllZerosVMatcher::printImpl(raw_ostream &OS, indent Indent) const {
244 OS << Indent << "CheckAllZerosV\n";
247 void EmitIntegerMatcher::printImpl(raw_ostream &OS, indent Indent) const {
248 OS << Indent << "EmitInteger " << Val << " VT=" << getEnumName(VT) << '\n';
251 void EmitStringIntegerMatcher::printImpl(raw_ostream &OS, indent Indent) const {
252 OS << Indent << "EmitStringInteger " << Val << " VT=" << getEnumName(VT)
256 void EmitRegisterMatcher::printImpl(raw_ostream &OS, indent Indent) const {
257 OS << Indent << "EmitRegister ";
259 OS << Reg->getName();
261 OS << "zero_reg";
262 OS << " VT=" << getEnumName(VT) << '\n';
265 void EmitConvertToTargetMatcher::printImpl(raw_ostream &OS,
267 OS << Indent << "EmitConvertToTarget " << Slot << '\n';
270 void EmitMergeInputChainsMatcher::printImpl(raw_ostream &OS,
272 OS << Indent << "EmitMergeInputChains <todo: args>\n";
275 void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, indent Indent) const {
276 OS << Indent << "EmitCopyToReg <todo: args>\n";
279 void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, indent Indent) const {
280 OS << Indent << "EmitNodeXForm " << NodeXForm->getName() << " Slot=" << Slot
284 void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, indent Indent) const {
285 OS << Indent;
286 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ")
290 OS << ' ' << getEnumName(VTs[i]);
291 OS << '(';
293 OS << Operands[i] << ' ';
294 OS << ")\n";
297 void CompleteMatchMatcher::printImpl(raw_ostream &OS, indent Indent) const {
298 OS << Indent << "CompleteMatch <todo args>\n";
299 OS << Indent << "Src = " << Pattern.getSrcPattern() << "\n";
300 OS << Indent << "Dst = " << Pattern.getDstPattern() << "\n";