Lines Matching refs:OS
372 return Printable([&Node](raw_ostream &OS) { in PrintNodeId() argument
374 OS << 't' << Node.PersistentId; in PrintNodeId()
376 OS << (const void*)&Node; in PrintNodeId()
387 void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const { in print_types() argument
389 if (i) OS << ","; in print_types()
391 OS << "ch"; in print_types()
393 OS << getValueType(i).getEVTString(); in print_types()
397 void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const { in print_details() argument
400 OS << "<"; in print_details()
401 OS << "Mem:"; in print_details()
404 OS << **i; in print_details()
406 OS << " "; in print_details()
408 OS << ">"; in print_details()
412 OS << "<"; in print_details()
415 if (i) OS << ","; in print_details()
417 OS << "u"; in print_details()
419 OS << Idx; in print_details()
421 OS << ">"; in print_details()
423 OS << '<' << CSDN->getAPIntValue() << '>'; in print_details()
426 OS << '<' << CSDN->getValueAPF().convertToFloat() << '>'; in print_details()
428 OS << '<' << CSDN->getValueAPF().convertToDouble() << '>'; in print_details()
430 OS << "<APFloat("; in print_details()
432 OS << ")>"; in print_details()
437 OS << '<'; in print_details()
438 GADN->getGlobal()->printAsOperand(OS); in print_details()
439 OS << '>'; in print_details()
441 OS << " + " << offset; in print_details()
443 OS << " " << offset; in print_details()
445 OS << " [TF=" << TF << ']'; in print_details()
447 OS << "<" << FIDN->getIndex() << ">"; in print_details()
449 OS << "<" << JTDN->getIndex() << ">"; in print_details()
451 OS << " [TF=" << TF << ']'; in print_details()
455 OS << "<" << *CP->getMachineCPVal() << ">"; in print_details()
457 OS << "<" << *CP->getConstVal() << ">"; in print_details()
459 OS << " + " << offset; in print_details()
461 OS << " " << offset; in print_details()
463 OS << " [TF=" << TF << ']'; in print_details()
465 OS << "<" << TI->getIndex() << '+' << TI->getOffset() << ">"; in print_details()
467 OS << " [TF=" << TF << ']'; in print_details()
469 OS << "<"; in print_details()
472 OS << LBB->getName() << " "; in print_details()
473 OS << (const void*)BBDN->getBasicBlock() << ">"; in print_details()
475 OS << ' ' << PrintReg(R->getReg(), in print_details()
479 OS << "'" << ES->getSymbol() << "'"; in print_details()
481 OS << " [TF=" << TF << ']'; in print_details()
484 OS << "<" << M->getValue() << ">"; in print_details()
486 OS << "<null>"; in print_details()
489 OS << "<" << MD->getMD() << ">"; in print_details()
491 OS << "<null>"; in print_details()
493 OS << ":" << N->getVT().getEVTString(); in print_details()
496 OS << "<" << *LD->getMemOperand(); in print_details()
501 case ISD::EXTLOAD: OS << ", anyext"; break; in print_details()
502 case ISD::SEXTLOAD: OS << ", sext"; break; in print_details()
503 case ISD::ZEXTLOAD: OS << ", zext"; break; in print_details()
506 OS << " from " << LD->getMemoryVT().getEVTString(); in print_details()
510 OS << ", " << AM; in print_details()
512 OS << ">"; in print_details()
514 OS << "<" << *ST->getMemOperand(); in print_details()
517 OS << ", trunc to " << ST->getMemoryVT().getEVTString(); in print_details()
521 OS << ", " << AM; in print_details()
523 OS << ">"; in print_details()
525 OS << "<" << *M->getMemOperand() << ">"; in print_details()
529 OS << "<"; in print_details()
530 BA->getBlockAddress()->getFunction()->printAsOperand(OS, false); in print_details()
531 OS << ", "; in print_details()
532 BA->getBlockAddress()->getBasicBlock()->printAsOperand(OS, false); in print_details()
533 OS << ">"; in print_details()
535 OS << " + " << offset; in print_details()
537 OS << " " << offset; in print_details()
539 OS << " [TF=" << TF << ']'; in print_details()
542 OS << '[' in print_details()
551 OS << " [ORD=" << Order << ']'; in print_details()
554 OS << " [ID=" << getNodeId() << ']'; in print_details()
564 OS << Scope->getFilename(); in print_details()
566 OS << "<unknown>"; in print_details()
567 OS << ':' << L->getLine(); in print_details()
569 OS << ':' << C; in print_details()
608 void SDNode::printr(raw_ostream &OS, const SelectionDAG *G) const { in printr() argument
609 OS << PrintNodeId(*this) << ": "; in printr()
610 print_types(OS, G); in printr()
611 OS << " = " << getOperationName(G); in printr()
612 print_details(OS, G); in printr()
615 static bool printOperand(raw_ostream &OS, const SelectionDAG *G, in printOperand() argument
618 OS << "<null>"; in printOperand()
621 OS << Value->getOperationName(G) << ':'; in printOperand()
622 Value->print_types(OS, G); in printOperand()
623 Value->print_details(OS, G); in printOperand()
626 OS << PrintNodeId(*Value.getNode()); in printOperand()
628 OS << ':' << RN; in printOperand()
634 static void DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, in DumpNodesr() argument
640 OS.indent(indent); in DumpNodesr()
641 N->printr(OS, G); in DumpNodesr()
645 if (i) OS << ","; in DumpNodesr()
646 OS << " "; in DumpNodesr()
649 bool printedInline = printOperand(OS, G, Op); in DumpNodesr()
654 OS << "\n"; in DumpNodesr()
658 DumpNodesr(OS, Op.getNode(), indent+2, G, once); in DumpNodesr()
671 static void printrWithDepthHelper(raw_ostream &OS, const SDNode *N, in printrWithDepthHelper() argument
677 OS.indent(indent); in printrWithDepthHelper()
679 N->print(OS, G); in printrWithDepthHelper()
688 OS << '\n'; in printrWithDepthHelper()
689 printrWithDepthHelper(OS, Op.getNode(), G, depth-1, indent+2); in printrWithDepthHelper()
693 void SDNode::printrWithDepth(raw_ostream &OS, const SelectionDAG *G, in printrWithDepth() argument
695 printrWithDepthHelper(OS, this, G, depth, 0); in printrWithDepth()
698 void SDNode::printrFull(raw_ostream &OS, const SelectionDAG *G) const { in printrFull() argument
700 printrWithDepth(OS, G, 10); in printrFull()
712 void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const { in print() argument
713 printr(OS, G); in print()
715 if (i) OS << ", "; else OS << " "; in print()
716 printOperand(OS, G, getOperand(i)); in print()