Lines Matching refs:OS
75 void MipsInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const { in printRegName() argument
76 OS << '$' << StringRef(getRegisterName(RegNo)).lower(); in printRegName()
125 static void printExpr(const MCExpr *Expr, raw_ostream &OS) { in printExpr() argument
135 ME->print(OS); in printExpr()
145 case MCSymbolRefExpr::VK_Mips_GPREL: OS << "%gp_rel("; break; in printExpr()
146 case MCSymbolRefExpr::VK_Mips_GOT_CALL: OS << "%call16("; break; in printExpr()
147 case MCSymbolRefExpr::VK_Mips_GOT16: OS << "%got("; break; in printExpr()
148 case MCSymbolRefExpr::VK_Mips_GOT: OS << "%got("; break; in printExpr()
149 case MCSymbolRefExpr::VK_Mips_ABS_HI: OS << "%hi("; break; in printExpr()
150 case MCSymbolRefExpr::VK_Mips_ABS_LO: OS << "%lo("; break; in printExpr()
151 case MCSymbolRefExpr::VK_Mips_TLSGD: OS << "%tlsgd("; break; in printExpr()
152 case MCSymbolRefExpr::VK_Mips_TLSLDM: OS << "%tlsldm("; break; in printExpr()
153 case MCSymbolRefExpr::VK_Mips_DTPREL_HI: OS << "%dtprel_hi("; break; in printExpr()
154 case MCSymbolRefExpr::VK_Mips_DTPREL_LO: OS << "%dtprel_lo("; break; in printExpr()
155 case MCSymbolRefExpr::VK_Mips_GOTTPREL: OS << "%gottprel("; break; in printExpr()
156 case MCSymbolRefExpr::VK_Mips_TPREL_HI: OS << "%tprel_hi("; break; in printExpr()
157 case MCSymbolRefExpr::VK_Mips_TPREL_LO: OS << "%tprel_lo("; break; in printExpr()
158 case MCSymbolRefExpr::VK_Mips_GPOFF_HI: OS << "%hi(%neg(%gp_rel("; break; in printExpr()
159 case MCSymbolRefExpr::VK_Mips_GPOFF_LO: OS << "%lo(%neg(%gp_rel("; break; in printExpr()
160 case MCSymbolRefExpr::VK_Mips_GOT_DISP: OS << "%got_disp("; break; in printExpr()
161 case MCSymbolRefExpr::VK_Mips_GOT_PAGE: OS << "%got_page("; break; in printExpr()
162 case MCSymbolRefExpr::VK_Mips_GOT_OFST: OS << "%got_ofst("; break; in printExpr()
163 case MCSymbolRefExpr::VK_Mips_HIGHER: OS << "%higher("; break; in printExpr()
164 case MCSymbolRefExpr::VK_Mips_HIGHEST: OS << "%highest("; break; in printExpr()
165 case MCSymbolRefExpr::VK_Mips_GOT_HI16: OS << "%got_hi("; break; in printExpr()
166 case MCSymbolRefExpr::VK_Mips_GOT_LO16: OS << "%got_lo("; break; in printExpr()
167 case MCSymbolRefExpr::VK_Mips_CALL_HI16: OS << "%call_hi("; break; in printExpr()
168 case MCSymbolRefExpr::VK_Mips_CALL_LO16: OS << "%call_lo("; break; in printExpr()
169 case MCSymbolRefExpr::VK_Mips_PCREL_HI16: OS << "%pcrel_hi("; break; in printExpr()
170 case MCSymbolRefExpr::VK_Mips_PCREL_LO16: OS << "%pcrel_lo("; break; in printExpr()
173 OS << SRE->getSymbol(); in printExpr()
177 OS << '+'; in printExpr()
178 OS << Offset; in printExpr()
183 OS << ")))"; in printExpr()
185 OS << ')'; in printExpr()
256 unsigned OpNo, raw_ostream &OS) { in printAlias() argument
257 OS << "\t" << Str << "\t"; in printAlias()
258 printOperand(&MI, OpNo, OS); in printAlias()
264 raw_ostream &OS) { in printAlias() argument
265 printAlias(Str, MI, OpNo0, OS); in printAlias()
266 OS << ", "; in printAlias()
267 printOperand(&MI, OpNo1, OS); in printAlias()
271 bool MipsInstPrinter::printAlias(const MCInst &MI, raw_ostream &OS) { in printAlias() argument
277 printAlias("b", MI, 2, OS)) || in printAlias()
278 (isReg<Mips::ZERO>(MI, 1) && printAlias("beqz", MI, 0, 2, OS)); in printAlias()
281 return isReg<Mips::ZERO_64>(MI, 1) && printAlias("beqz", MI, 0, 2, OS); in printAlias()
284 return isReg<Mips::ZERO>(MI, 1) && printAlias("bnez", MI, 0, 2, OS); in printAlias()
287 return isReg<Mips::ZERO_64>(MI, 1) && printAlias("bnez", MI, 0, 2, OS); in printAlias()
290 return isReg<Mips::ZERO>(MI, 0) && printAlias("bal", MI, 1, OS); in printAlias()
293 return isReg<Mips::FCC0>(MI, 0) && printAlias("bc1t", MI, 1, OS); in printAlias()
296 return isReg<Mips::FCC0>(MI, 0) && printAlias("bc1f", MI, 1, OS); in printAlias()
299 return isReg<Mips::RA>(MI, 0) && printAlias("jalr", MI, 1, OS); in printAlias()
302 return isReg<Mips::RA_64>(MI, 0) && printAlias("jalr", MI, 1, OS); in printAlias()
306 return isReg<Mips::ZERO>(MI, 2) && printAlias("not", MI, 0, 1, OS); in printAlias()
309 return isReg<Mips::ZERO_64>(MI, 2) && printAlias("not", MI, 0, 1, OS); in printAlias()
312 return isReg<Mips::ZERO>(MI, 2) && printAlias("move", MI, 0, 1, OS); in printAlias()