Lines Matching refs:os
26 NodePrinter(raw_ostream &os) : os(os) {} in NodePrinter() argument
68 os << label << "`\n"; in printChildren()
110 os << (isLastElt ? " " : " |"); in printIndent()
111 os << (elementIndentStack.back() ? " `" : " |"); in printIndent()
115 raw_ostream &os; member in __anon404c8f550111::NodePrinter
126 os << "Type<NULL>"; in print()
131 .Case([&](AttributeType) { os << "Attr"; }) in print()
132 .Case([&](ConstraintType) { os << "Constraint"; }) in print()
134 os << "Op"; in print()
136 os << "<" << *name << ">"; in print()
140 os << "Range"; in print()
142 .Case([&](RewriteType) { os << "Rewrite"; }) in print()
144 os << "Tuple<"; in print()
146 llvm::zip(type.getElementNames(), type.getElementTypes()), os, in print()
149 os << std::get<0>(it) << ": "; in print()
152 os << ">"; in print()
154 .Case([&](TypeType) { os << "Type"; }) in print()
155 .Case([&](ValueType) { os << "Value"; }) in print()
161 os << "-"; in print()
189 os << "CompoundStmt " << stmt << "\n"; in printImpl()
194 os << "EraseStmt " << stmt << "\n"; in printImpl()
199 os << "LetStmt " << stmt << "\n"; in printImpl()
204 os << "ReplaceStmt " << stmt << "\n"; in printImpl()
210 os << "ReturnStmt " << stmt << "\n"; in printImpl()
215 os << "RewriteStmt " << stmt << "\n"; in printImpl()
220 os << "AttributeExpr " << expr << " Value<\"" << expr->getValue() << "\">\n"; in printImpl()
224 os << "CallExpr " << expr << " Type<"; in printImpl()
226 os << ">\n"; in printImpl()
232 os << "DeclRefExpr " << expr << " Type<"; in printImpl()
234 os << ">\n"; in printImpl()
239 os << "MemberAccessExpr " << expr << " Member<" << expr->getMemberName() in printImpl()
242 os << ">\n"; in printImpl()
247 os << "OperationExpr " << expr << " Type<"; in printImpl()
249 os << ">\n"; in printImpl()
258 os << "TupleExpr " << expr << " Type<"; in printImpl()
260 os << ">\n"; in printImpl()
266 os << "TypeExpr " << expr << " Value<\"" << expr->getValue() << "\">\n"; in printImpl()
270 os << "AttrConstraintDecl " << decl << "\n"; in printImpl()
276 os << "OpConstraintDecl " << decl << "\n"; in printImpl()
281 os << "TypeConstraintDecl " << decl << "\n"; in printImpl()
285 os << "TypeRangeConstraintDecl " << decl << "\n"; in printImpl()
289 os << "UserConstraintDecl " << decl << " Name<" << decl->getName().getName() in printImpl()
292 os << " Code<"; in printImpl()
293 llvm::printEscapedString(*codeBlock, os); in printImpl()
294 os << ">"; in printImpl()
296 os << "\n"; in printImpl()
304 os << "ValueConstraintDecl " << decl << "\n"; in printImpl()
310 os << "ValueRangeConstraintDecl " << decl << "\n"; in printImpl()
316 os << "NamedAttributeDecl " << decl << " Name<" << decl->getName().getName() in printImpl()
322 os << "OpNameDecl " << decl; in printImpl()
324 os << " Name<" << name << ">"; in printImpl()
325 os << "\n"; in printImpl()
329 os << "PatternDecl " << decl; in printImpl()
331 os << " Name<" << name->getName() << ">"; in printImpl()
333 os << " Benefit<" << *benefit << ">"; in printImpl()
335 os << " Recursion"; in printImpl()
337 os << "\n"; in printImpl()
342 os << "UserRewriteDecl " << decl << " Name<" << decl->getName().getName() in printImpl()
345 os << " Code<"; in printImpl()
346 llvm::printEscapedString(*codeBlock, os); in printImpl()
347 os << ">"; in printImpl()
349 os << "\n"; in printImpl()
357 os << "VariableDecl " << decl << " Name<" << decl->getName().getName() in printImpl()
360 os << ">\n"; in printImpl()
371 os << "Module " << module << "\n"; in printImpl()
379 void Node::print(raw_ostream &os) const { NodePrinter(os).print(this); } in print()
381 void Type::print(raw_ostream &os) const { NodePrinter(os).print(*this); } in print()