Lines Matching refs:OS

68   raw_ostream &OS;  member in llvm::MIRPrinter
75 MIRPrinter(raw_ostream &OS) : OS(OS) {} in MIRPrinter() argument
99 raw_ostream &OS; member in llvm::MIPrinter
105 MIPrinter(raw_ostream &OS, ModuleSlotTracker &MST, in MIPrinter() argument
108 : OS(OS), MST(MST), RegisterMaskIds(RegisterMaskIds), in MIPrinter()
134 static void output(const Module &Mod, void *Ctxt, raw_ostream &OS) { in output()
135 Mod.print(OS, nullptr); in output()
146 static void printReg(unsigned Reg, raw_ostream &OS, in printReg() argument
150 OS << '_'; in printReg()
152 OS << '%' << TargetRegisterInfo::virtReg2Index(Reg); in printReg()
154 OS << '%' << StringRef(TRI->getName(Reg)).lower(); in printReg()
161 raw_string_ostream OS(Dest.Value); in printReg() local
162 printReg(Reg, OS, TRI); in printReg()
193 yaml::Output Out(OS); in print()
422 OS << "bb." << MBB.getNumber(); in print()
426 OS << "." << BB->getName(); in print()
429 OS << " ("; in print()
432 OS << "<ir-block badref>"; in print()
434 OS << (Twine("%ir-block.") + Twine(Slot)).str(); in print()
438 OS << (HasAttributes ? ", " : " ("); in print()
439 OS << "address-taken"; in print()
443 OS << (HasAttributes ? ", " : " ("); in print()
444 OS << "landing-pad"; in print()
448 OS << (HasAttributes ? ", " : " ("); in print()
449 OS << "align " << MBB.getAlignment(); in print()
453 OS << ")"; in print()
454 OS << ":\n"; in print()
459 OS.indent(2) << "successors: "; in print()
462 OS << ", "; in print()
465 OS << '(' << MBB.getSuccProbability(I) << ')'; in print()
467 OS << "\n"; in print()
475 OS.indent(2) << "liveins: "; in print()
479 OS << ", "; in print()
481 printReg(LI.PhysReg, OS, TRI); in print()
483 OS << ':' << PrintLaneMask(LI.LaneMask); in print()
485 OS << "\n"; in print()
490 OS << "\n"; in print()
495 OS.indent(2) << "}\n"; in print()
498 OS.indent(IsInBundle ? 4 : 2); in print()
501 OS << " {"; in print()
504 OS << "\n"; in print()
507 OS.indent(2) << "}\n"; in print()
542 OS << ", "; in print()
547 OS << " = "; in print()
549 OS << "frame-setup "; in print()
550 OS << TII->getName(MI.getOpcode()); in print()
552 OS << ' '; in print()
557 OS << ", "; in print()
564 OS << ','; in print()
565 OS << " debug-location "; in print()
566 MI.getDebugLoc()->printAsOperand(OS, MST); in print()
570 OS << " :: "; in print()
574 OS << ", "; in print()
582 OS << "%bb." << MBB.getNumber(); in printMBBReference()
585 OS << '.' << BB->getName(); in printMBBReference()
589 static void printIRSlotNumber(raw_ostream &OS, int Slot) { in printIRSlotNumber() argument
591 OS << "<badref>"; in printIRSlotNumber()
593 OS << Slot; in printIRSlotNumber()
597 OS << "%ir-block."; in printIRBlockReference()
599 printLLVMNameWithoutPrefix(OS, BB.getName()); in printIRBlockReference()
612 printIRSlotNumber(OS, Slot); in printIRBlockReference()
617 V.printAsOperand(OS, /*PrintType=*/false, MST); in printIRValueReference()
622 OS << '`'; in printIRValueReference()
623 V.printAsOperand(OS, /*PrintType=*/true, MST); in printIRValueReference()
624 OS << '`'; in printIRValueReference()
627 OS << "%ir."; in printIRValueReference()
629 printLLVMNameWithoutPrefix(OS, V.getName()); in printIRValueReference()
632 printIRSlotNumber(OS, MST.getLocalSlot(&V)); in printIRValueReference()
641 OS << "%fixed-stack." << Operand.ID; in printStackObjectReference()
644 OS << "%stack." << Operand.ID; in printStackObjectReference()
646 OS << '.' << Operand.Name; in printStackObjectReference()
653 OS << " - " << -Offset; in printOffset()
656 OS << " + " << Offset; in printOffset()
676 OS << "target-flags("; in printTargetFlags()
680 OS << "<unknown>) "; in printTargetFlags()
685 OS << Name; in printTargetFlags()
687 OS << "<unknown target flag>"; in printTargetFlags()
690 OS << ") "; in printTargetFlags()
700 OS << ", "; in printTargetFlags()
702 OS << Mask.second; in printTargetFlags()
711 OS << ", "; in printTargetFlags()
712 OS << "<unknown bitmask target flag>"; in printTargetFlags()
714 OS << ") "; in printTargetFlags()
735 OS << (Op.isDef() ? "implicit-def " : "implicit "); in print()
738 OS << "def "; in print()
740 OS << "internal "; in print()
742 OS << "dead "; in print()
744 OS << "killed "; in print()
746 OS << "undef "; in print()
748 OS << "early-clobber "; in print()
750 OS << "debug-use "; in print()
751 printReg(Op.getReg(), OS, TRI); in print()
754 OS << ':' << TRI->getSubRegIndexName(Op.getSubReg()); in print()
756 OS << "(tied-def " << Op.getParent()->findTiedOperandIdx(I) << ")"; in print()
759 OS << Op.getImm(); in print()
762 Op.getCImm()->printAsOperand(OS, /*PrintType=*/true, MST); in print()
765 Op.getFPImm()->printAsOperand(OS, /*PrintType=*/true, MST); in print()
774 OS << "%const." << Op.getIndex(); in print()
778 OS << "target-index("; in print()
781 OS << Name; in print()
783 OS << "<unknown>"; in print()
784 OS << ')'; in print()
789 OS << "%jump-table." << Op.getIndex(); in print()
792 OS << '$'; in print()
793 printLLVMNameWithoutPrefix(OS, Op.getSymbolName()); in print()
797 Op.getGlobal()->printAsOperand(OS, /*PrintType=*/false, MST); in print()
801 OS << "blockaddress("; in print()
802 Op.getBlockAddress()->getFunction()->printAsOperand(OS, /*PrintType=*/false, in print()
804 OS << ", "; in print()
806 OS << ')'; in print()
812 OS << StringRef(TRI->getRegMaskNames()[RegMaskInfo->second]).lower(); in print()
819 OS << "liveout("; in print()
824 OS << ", "; in print()
825 printReg(Reg, OS, TRI); in print()
829 OS << ")"; in print()
833 Op.getMetadata()->printAsOperand(OS, MST); in print()
836 OS << "<mcsymbol " << *Op.getMCSymbol() << ">"; in print()
847 OS << '('; in print()
850 OS << "volatile "; in print()
852 OS << "non-temporal "; in print()
854 OS << "invariant "; in print()
856 OS << "load "; in print()
859 OS << "store "; in print()
861 OS << Op.getSize() << (Op.isLoad() ? " from " : " into "); in print()
869 OS << "stack"; in print()
872 OS << "got"; in print()
875 OS << "jump-table"; in print()
878 OS << "constant-pool"; in print()
885 OS << "call-entry "; in print()
887 OS, /*PrintType=*/false, MST); in print()
890 OS << "call-entry $"; in print()
892 OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol()); in print()
898 OS << ", align " << Op.getBaseAlignment(); in print()
901 OS << ", !tbaa "; in print()
902 AAInfo.TBAA->printAsOperand(OS, MST); in print()
905 OS << ", !alias.scope "; in print()
906 AAInfo.Scope->printAsOperand(OS, MST); in print()
909 OS << ", !noalias "; in print()
910 AAInfo.NoAlias->printAsOperand(OS, MST); in print()
913 OS << ", !range "; in print()
914 Op.getRanges()->printAsOperand(OS, MST); in print()
916 OS << ')'; in print()
919 static void printCFIRegister(unsigned DwarfReg, raw_ostream &OS, in printCFIRegister() argument
923 OS << "<badreg>"; in printCFIRegister()
926 printReg(Reg, OS, TRI); in printCFIRegister()
933 OS << ".cfi_same_value "; in print()
935 OS << "<mcsymbol> "; in print()
936 printCFIRegister(CFI.getRegister(), OS, TRI); in print()
939 OS << ".cfi_offset "; in print()
941 OS << "<mcsymbol> "; in print()
942 printCFIRegister(CFI.getRegister(), OS, TRI); in print()
943 OS << ", " << CFI.getOffset(); in print()
946 OS << ".cfi_def_cfa_register "; in print()
948 OS << "<mcsymbol> "; in print()
949 printCFIRegister(CFI.getRegister(), OS, TRI); in print()
952 OS << ".cfi_def_cfa_offset "; in print()
954 OS << "<mcsymbol> "; in print()
955 OS << CFI.getOffset(); in print()
958 OS << ".cfi_def_cfa "; in print()
960 OS << "<mcsymbol> "; in print()
961 printCFIRegister(CFI.getRegister(), OS, TRI); in print()
962 OS << ", " << CFI.getOffset(); in print()
966 OS << "<unserializable cfi operation>"; in print()
971 void llvm::printMIR(raw_ostream &OS, const Module &M) { in printMIR() argument
972 yaml::Output Out(OS); in printMIR()
976 void llvm::printMIR(raw_ostream &OS, const MachineFunction &MF) { in printMIR() argument
977 MIRPrinter Printer(OS); in printMIR()