Lines Matching refs:O
35 raw_ostream &O) { in printU4ImmOperand() argument
36 O << formatHex(MI->getOperand(OpNo).getImm() & 0xf); in printU4ImmOperand()
40 raw_ostream &O) { in printU8ImmOperand() argument
41 O << formatHex(MI->getOperand(OpNo).getImm() & 0xff); in printU8ImmOperand()
45 raw_ostream &O) { in printU16ImmOperand() argument
46 O << formatHex(MI->getOperand(OpNo).getImm() & 0xffff); in printU16ImmOperand()
50 raw_ostream &O) { in printU32ImmOperand() argument
51 O << formatHex(MI->getOperand(OpNo).getImm() & 0xffffffff); in printU32ImmOperand()
55 raw_ostream &O) { in printU4ImmDecOperand() argument
56 O << formatDec(MI->getOperand(OpNo).getImm() & 0xf); in printU4ImmDecOperand()
60 raw_ostream &O) { in printU8ImmDecOperand() argument
61 O << formatDec(MI->getOperand(OpNo).getImm() & 0xff); in printU8ImmDecOperand()
65 raw_ostream &O) { in printU16ImmDecOperand() argument
66 O << formatDec(MI->getOperand(OpNo).getImm() & 0xffff); in printU16ImmDecOperand()
70 raw_ostream& O, StringRef BitName) { in printNamedBit() argument
72 O << ' ' << BitName; in printNamedBit()
77 raw_ostream &O) { in printOffen() argument
78 printNamedBit(MI, OpNo, O, "offen"); in printOffen()
82 raw_ostream &O) { in printIdxen() argument
83 printNamedBit(MI, OpNo, O, "idxen"); in printIdxen()
87 raw_ostream &O) { in printAddr64() argument
88 printNamedBit(MI, OpNo, O, "addr64"); in printAddr64()
92 raw_ostream &O) { in printMBUFOffset() argument
94 O << " offset:"; in printMBUFOffset()
95 printU16ImmDecOperand(MI, OpNo, O); in printMBUFOffset()
100 raw_ostream &O) { in printOffset() argument
103 O << " offset:"; in printOffset()
104 printU16ImmDecOperand(MI, OpNo, O); in printOffset()
109 raw_ostream &O) { in printOffset0() argument
111 O << " offset0:"; in printOffset0()
112 printU8ImmDecOperand(MI, OpNo, O); in printOffset0()
117 raw_ostream &O) { in printOffset1() argument
119 O << " offset1:"; in printOffset1()
120 printU8ImmDecOperand(MI, OpNo, O); in printOffset1()
125 raw_ostream &O) { in printSMRDOffset() argument
126 printU32ImmOperand(MI, OpNo, O); in printSMRDOffset()
130 raw_ostream &O) { in printSMRDLiteralOffset() argument
131 printU32ImmOperand(MI, OpNo, O); in printSMRDLiteralOffset()
135 raw_ostream &O) { in printGDS() argument
136 printNamedBit(MI, OpNo, O, "gds"); in printGDS()
140 raw_ostream &O) { in printGLC() argument
141 printNamedBit(MI, OpNo, O, "glc"); in printGLC()
145 raw_ostream &O) { in printSLC() argument
146 printNamedBit(MI, OpNo, O, "slc"); in printSLC()
150 raw_ostream &O) { in printTFE() argument
151 printNamedBit(MI, OpNo, O, "tfe"); in printTFE()
155 raw_ostream &O) { in printDMask() argument
157 O << " dmask:"; in printDMask()
158 printU16ImmOperand(MI, OpNo, O); in printDMask()
163 raw_ostream &O) { in printUNorm() argument
164 printNamedBit(MI, OpNo, O, "unorm"); in printUNorm()
168 raw_ostream &O) { in printDA() argument
169 printNamedBit(MI, OpNo, O, "da"); in printDA()
173 raw_ostream &O) { in printR128() argument
174 printNamedBit(MI, OpNo, O, "r128"); in printR128()
178 raw_ostream &O) { in printLWE() argument
179 printNamedBit(MI, OpNo, O, "lwe"); in printLWE()
182 void AMDGPUInstPrinter::printRegOperand(unsigned reg, raw_ostream &O, in printRegOperand() argument
186 O << "vcc"; in printRegOperand()
189 O << "scc"; in printRegOperand()
192 O << "exec"; in printRegOperand()
195 O << "m0"; in printRegOperand()
198 O << "flat_scratch"; in printRegOperand()
201 O << "vcc_lo"; in printRegOperand()
204 O << "vcc_hi"; in printRegOperand()
207 O << "tba_lo"; in printRegOperand()
210 O << "tba_hi"; in printRegOperand()
213 O << "tma_lo"; in printRegOperand()
216 O << "tma_hi"; in printRegOperand()
219 O << "exec_lo"; in printRegOperand()
222 O << "exec_hi"; in printRegOperand()
225 O << "flat_scratch_lo"; in printRegOperand()
228 O << "flat_scratch_hi"; in printRegOperand()
240 O << 'v'; in printRegOperand()
243 O << 's'; in printRegOperand()
246 O <<'v'; in printRegOperand()
249 O << 's'; in printRegOperand()
252 O << 'v'; in printRegOperand()
255 O << 's'; in printRegOperand()
258 O << 'v'; in printRegOperand()
261 O << 'v'; in printRegOperand()
264 O << 's'; in printRegOperand()
267 O << 'v'; in printRegOperand()
270 O << 's'; in printRegOperand()
273 O << "ttmp"; in printRegOperand()
277 O << "ttmp"; in printRegOperand()
281 O << getRegisterName(reg); in printRegOperand()
286 O << RegIdx; in printRegOperand()
290 O << '[' << RegIdx << ':' << (RegIdx + NumRegs - 1) << ']'; in printRegOperand()
294 raw_ostream &O) { in printVOPDst() argument
296 O << "_e64 "; in printVOPDst()
298 O << "_dpp "; in printVOPDst()
300 O << "_sdwa "; in printVOPDst()
302 O << "_e32 "; in printVOPDst()
304 printOperand(MI, OpNo, O); in printVOPDst()
307 void AMDGPUInstPrinter::printImmediate32(uint32_t Imm, raw_ostream &O) { in printImmediate32() argument
310 O << SImm; in printImmediate32()
315 O << "0.0"; in printImmediate32()
317 O << "1.0"; in printImmediate32()
319 O << "-1.0"; in printImmediate32()
321 O << "0.5"; in printImmediate32()
323 O << "-0.5"; in printImmediate32()
325 O << "2.0"; in printImmediate32()
327 O << "-2.0"; in printImmediate32()
329 O << "4.0"; in printImmediate32()
331 O << "-4.0"; in printImmediate32()
333 O << formatHex(static_cast<uint64_t>(Imm)); in printImmediate32()
336 void AMDGPUInstPrinter::printImmediate64(uint64_t Imm, raw_ostream &O) { in printImmediate64() argument
339 O << SImm; in printImmediate64()
344 O << "0.0"; in printImmediate64()
346 O << "1.0"; in printImmediate64()
348 O << "-1.0"; in printImmediate64()
350 O << "0.5"; in printImmediate64()
352 O << "-0.5"; in printImmediate64()
354 O << "2.0"; in printImmediate64()
356 O << "-2.0"; in printImmediate64()
358 O << "4.0"; in printImmediate64()
360 O << "-4.0"; in printImmediate64()
366 O << formatHex(static_cast<uint64_t>(Imm)); in printImmediate64()
371 raw_ostream &O) { in printOperand() argument
381 printRegOperand(Op.getReg(), O, MRI); in printOperand()
390 printImmediate32(Op.getImm(), O); in printOperand()
392 printImmediate64(Op.getImm(), O); in printOperand()
396 printImmediate32(Op.getImm(), O); in printOperand()
401 O << formatDec(Op.getImm()); in printOperand()
406 O << "0.0"; in printOperand()
412 printImmediate32(FloatToBits(Op.getFPImm()), O); in printOperand()
414 printImmediate64(DoubleToBits(Op.getFPImm()), O); in printOperand()
420 Exp->print(O, &MAI); in printOperand()
422 O << "/*INV_OP*/"; in printOperand()
428 raw_ostream &O) { in printOperandAndFPInputMods() argument
431 O << '-'; in printOperandAndFPInputMods()
433 O << '|'; in printOperandAndFPInputMods()
434 printOperand(MI, OpNo + 1, O); in printOperandAndFPInputMods()
436 O << '|'; in printOperandAndFPInputMods()
441 raw_ostream &O) { in printOperandAndIntInputMods() argument
444 O << "sext("; in printOperandAndIntInputMods()
445 printOperand(MI, OpNo + 1, O); in printOperandAndIntInputMods()
447 O << ')'; in printOperandAndIntInputMods()
452 raw_ostream &O) { in printDPPCtrl() argument
455 O << " quad_perm:["; in printDPPCtrl()
456 O << formatDec(Imm & 0x3) << ','; in printDPPCtrl()
457 O << formatDec((Imm & 0xc) >> 2) << ','; in printDPPCtrl()
458 O << formatDec((Imm & 0x30) >> 4) << ','; in printDPPCtrl()
459 O << formatDec((Imm & 0xc0) >> 6) << ']'; in printDPPCtrl()
461 O << " row_shl:"; in printDPPCtrl()
462 printU4ImmDecOperand(MI, OpNo, O); in printDPPCtrl()
464 O << " row_shr:"; in printDPPCtrl()
465 printU4ImmDecOperand(MI, OpNo, O); in printDPPCtrl()
467 O << " row_ror:"; in printDPPCtrl()
468 printU4ImmDecOperand(MI, OpNo, O); in printDPPCtrl()
470 O << " wave_shl:1"; in printDPPCtrl()
472 O << " wave_rol:1"; in printDPPCtrl()
474 O << " wave_shr:1"; in printDPPCtrl()
476 O << " wave_ror:1"; in printDPPCtrl()
478 O << " row_mirror"; in printDPPCtrl()
480 O << " row_half_mirror"; in printDPPCtrl()
482 O << " row_bcast:15"; in printDPPCtrl()
484 O << " row_bcast:31"; in printDPPCtrl()
491 raw_ostream &O) { in printRowMask() argument
492 O << " row_mask:"; in printRowMask()
493 printU4ImmOperand(MI, OpNo, O); in printRowMask()
497 raw_ostream &O) { in printBankMask() argument
498 O << " bank_mask:"; in printBankMask()
499 printU4ImmOperand(MI, OpNo, O); in printBankMask()
503 raw_ostream &O) { in printBoundCtrl() argument
506 O << " bound_ctrl:0"; // XXX - this syntax is used in sp3 in printBoundCtrl()
511 raw_ostream &O) { in printSDWASel() argument
514 case 0: O << "BYTE_0"; break; in printSDWASel()
515 case 1: O << "BYTE_1"; break; in printSDWASel()
516 case 2: O << "BYTE_2"; break; in printSDWASel()
517 case 3: O << "BYTE_3"; break; in printSDWASel()
518 case 4: O << "WORD_0"; break; in printSDWASel()
519 case 5: O << "WORD_1"; break; in printSDWASel()
520 case 6: O << "DWORD"; break; in printSDWASel()
526 raw_ostream &O) { in printSDWADstSel() argument
527 O << "dst_sel:"; in printSDWADstSel()
528 printSDWASel(MI, OpNo, O); in printSDWADstSel()
532 raw_ostream &O) { in printSDWASrc0Sel() argument
533 O << "src0_sel:"; in printSDWASrc0Sel()
534 printSDWASel(MI, OpNo, O); in printSDWASrc0Sel()
538 raw_ostream &O) { in printSDWASrc1Sel() argument
539 O << "src1_sel:"; in printSDWASrc1Sel()
540 printSDWASel(MI, OpNo, O); in printSDWASrc1Sel()
544 raw_ostream &O) { in printSDWADstUnused() argument
545 O << "dst_unused:"; in printSDWADstUnused()
548 case 0: O << "UNUSED_PAD"; break; in printSDWADstUnused()
549 case 1: O << "UNUSED_SEXT"; break; in printSDWADstUnused()
550 case 2: O << "UNUSED_PRESERVE"; break; in printSDWADstUnused()
556 raw_ostream &O) { in printInterpSlot() argument
560 O << "P0"; in printInterpSlot()
562 O << "P20"; in printInterpSlot()
564 O << "P10"; in printInterpSlot()
571 raw_ostream &O) { in printMemOperand() argument
572 printOperand(MI, OpNo, O); in printMemOperand()
573 O << ", "; in printMemOperand()
574 printOperand(MI, OpNo + 1, O); in printMemOperand()
578 raw_ostream &O, StringRef Asm, in printIfSet() argument
583 O << Asm; in printIfSet()
585 O << Default; in printIfSet()
590 raw_ostream &O, char Asm) { in printIfSet() argument
594 O << Asm; in printIfSet()
598 raw_ostream &O) { in printAbs() argument
599 printIfSet(MI, OpNo, O, '|'); in printAbs()
603 raw_ostream &O) { in printClamp() argument
604 printIfSet(MI, OpNo, O, "_SAT"); in printClamp()
608 raw_ostream &O) { in printClampSI() argument
610 O << " clamp"; in printClampSI()
614 raw_ostream &O) { in printOModSI() argument
617 O << " mul:2"; in printOModSI()
619 O << " mul:4"; in printOModSI()
621 O << " div:2"; in printOModSI()
625 raw_ostream &O) { in printLiteral() argument
630 O << Imm << '(' << BitsToFloat(Imm) << ')'; in printLiteral()
633 Op.getExpr()->print(O << '@', &MAI); in printLiteral()
638 raw_ostream &O) { in printLast() argument
639 printIfSet(MI, OpNo, O, "*", " "); in printLast()
643 raw_ostream &O) { in printNeg() argument
644 printIfSet(MI, OpNo, O, '-'); in printNeg()
648 raw_ostream &O) { in printOMOD() argument
652 O << " * 2.0"; in printOMOD()
655 O << " * 4.0"; in printOMOD()
658 O << " / 2.0"; in printOMOD()
664 raw_ostream &O) { in printRel() argument
665 printIfSet(MI, OpNo, O, '+'); in printRel()
669 raw_ostream &O) { in printUpdateExecMask() argument
670 printIfSet(MI, OpNo, O, "ExecMask,"); in printUpdateExecMask()
674 raw_ostream &O) { in printUpdatePred() argument
675 printIfSet(MI, OpNo, O, "Pred,"); in printUpdatePred()
679 raw_ostream &O) { in printWrite() argument
682 O << " (MASKED)"; in printWrite()
687 raw_ostream &O) { in printSel() argument
698 O << cb << '[' << sel << ']'; in printSel()
701 O << sel; in printSel()
703 O << sel; in printSel()
707 O << '.' << chans[chan]; in printSel()
711 raw_ostream &O) { in printBankSwizzle() argument
715 O << "BS:VEC_021/SCL_122"; in printBankSwizzle()
718 O << "BS:VEC_120/SCL_212"; in printBankSwizzle()
721 O << "BS:VEC_102/SCL_221"; in printBankSwizzle()
724 O << "BS:VEC_201"; in printBankSwizzle()
727 O << "BS:VEC_210"; in printBankSwizzle()
736 raw_ostream &O) { in printRSel() argument
740 O << 'X'; in printRSel()
743 O << 'Y'; in printRSel()
746 O << 'Z'; in printRSel()
749 O << 'W'; in printRSel()
752 O << '0'; in printRSel()
755 O << '1'; in printRSel()
758 O << '_'; in printRSel()
766 raw_ostream &O) { in printCT() argument
770 O << 'U'; in printCT()
773 O << 'N'; in printCT()
781 raw_ostream &O) { in printKCache() argument
785 O << "CB" << KCacheBank << ':'; in printKCache()
788 O << KCacheAddr * 16 << '-' << KCacheAddr * 16 + LineSize; in printKCache()
793 raw_ostream &O) { in printSendMsg() argument
802 O << "sendmsg(" << IdSymbolic[Id] << ')'; in printSendMsg()
814 O << "sendmsg(" << IdSymbolic[Id] << ", " << OpGsSymbolic[OpGs]; in printSendMsg()
815 if (OpGs != OP_GS_NOP) { O << ", " << StreamId; } in printSendMsg()
816 O << ')'; in printSendMsg()
825 O << "sendmsg(" << IdSymbolic[Id] << ", " << OpSysSymbolic[OpSys] << ')'; in printSendMsg()
829 O << SImm16; // Unknown simm16 code. in printSendMsg()
833 raw_ostream &O) { in printWaitFlag() argument
842 O << "vmcnt(" << Vmcnt << ')'; in printWaitFlag()
848 O << ' '; in printWaitFlag()
849 O << "expcnt(" << Expcnt << ')'; in printWaitFlag()
855 O << ' '; in printWaitFlag()
856 O << "lgkmcnt(" << Lgkmcnt << ')'; in printWaitFlag()
861 raw_ostream &O) { in printHwreg() argument
869 O << "hwreg("; in printHwreg()
871 O << IdSymbolic[Id]; in printHwreg()
873 O << Id; in printHwreg()
876 O << ", " << Offset << ", " << Width; in printHwreg()
878 O << ')'; in printHwreg()