Home | History | Annotate | Download | only in X86

Lines Matching defs:NumBytes

66 // Emit a minimal sequence of nops spanning NumBytes bytes.
67 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit,
757 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, const MCSubtargetInfo &STI) {
761 while (NumBytes) {
765 switch (NumBytes) {
767 case 1: NumBytes -= 1; Opc = X86::NOOP; break;
768 case 2: NumBytes -= 2; Opc = X86::XCHG16ar; break;
769 case 3: NumBytes -= 3; Opc = X86::NOOPL; break;
770 case 4: NumBytes -= 4; Opc = X86::NOOPL; Displacement = 8; break;
771 case 5: NumBytes -= 5; Opc = X86::NOOPL; Displacement = 8;
773 case 6: NumBytes -= 6; Opc = X86::NOOPW; Displacement = 8;
775 case 7: NumBytes -= 7; Opc = X86::NOOPL; Displacement = 512; break;
776 case 8: NumBytes -= 8; Opc = X86::NOOPL; Displacement = 512;
778 case 9: NumBytes -= 9; Opc = X86::NOOPW; Displacement = 512;
780 default: NumBytes -= 10; Opc = X86::NOOPW; Displacement = 512;
784 unsigned NumPrefixes = std::min(NumBytes, 5U);
785 NumBytes -= NumPrefixes;
804 } // while (NumBytes)
869 // [<def>], <id>, <numBytes>, <target>, <numArgs>, <cc>, ...
894 unsigned NumBytes = opers.getMetaOper(PatchPointOpers::NBytesPos).getImm();
895 assert(NumBytes >= EncodedBytes &&
898 EmitNops(OutStreamer, NumBytes - EncodedBytes, Subtarget->is64Bit(),