Lines Matching refs:emitByte
108 static void emitByte(uint8_t C, raw_ostream &OS) { OS << static_cast<char>(C); } in emitByte() function
113 emitByte(Val & 255, OS); in emitConstant()
311 emitByte(modRMByte(3, RegOpcodeFld, getX86RegNum(ModRMReg)), OS); in emitRegModRMByte()
317 emitByte(modRMByte(SS, Index, Base), OS); in emitSIBByte()
340 emitByte(modRMByte(0, RegOpcodeField, 5), OS); in emitMemModRMByte()
445 emitByte(modRMByte(0, RegOpcodeField, RMfield), OS); in emitMemModRMByte()
449 emitByte(modRMByte(1, RegOpcodeField, RMfield), OS); in emitMemModRMByte()
454 emitByte(modRMByte(2, RegOpcodeField, RMfield), OS); in emitMemModRMByte()
458 emitByte(modRMByte(0, RegOpcodeField, 6), OS); in emitMemModRMByte()
488 emitByte(modRMByte(0, RegOpcodeField, 5), OS); in emitMemModRMByte()
499 emitByte(modRMByte(0, RegOpcodeField, BaseRegNo), OS); in emitMemModRMByte()
510 emitByte(modRMByte(0, RegOpcodeField, BaseRegNo), OS); in emitMemModRMByte()
523 emitByte(modRMByte(1, RegOpcodeField, BaseRegNo), OS); in emitMemModRMByte()
533 emitByte(modRMByte(2, RegOpcodeField, BaseRegNo), OS); in emitMemModRMByte()
553 emitByte(modRMByte(0, RegOpcodeField, 4), OS); in emitMemModRMByte()
562 emitByte(modRMByte(0, RegOpcodeField, 4), OS); in emitMemModRMByte()
568 emitByte(modRMByte(1, RegOpcodeField, 4), OS); in emitMemModRMByte()
572 emitByte(modRMByte(2, RegOpcodeField, 4), OS); in emitMemModRMByte()
611 emitByte(0xF3, OS); in emitPrefixImpl()
613 emitByte(0xF2, OS); in emitPrefixImpl()
618 emitByte(0x67, OS); in emitPrefixImpl()
1076 emitByte(0xC5, OS); in emitVEXOpcodePrefix()
1077 emitByte(LastByte | (VEX_R << 7), OS); in emitVEXOpcodePrefix()
1082 emitByte(Encoding == X86II::XOP ? 0x8F : 0xC4, OS); in emitVEXOpcodePrefix()
1083 emitByte(VEX_R << 7 | VEX_X << 6 | VEX_B << 5 | VEX_5M, OS); in emitVEXOpcodePrefix()
1084 emitByte(LastByte | (VEX_W << 7), OS); in emitVEXOpcodePrefix()
1095 emitByte(0x62, OS); in emitVEXOpcodePrefix()
1096 emitByte((VEX_R << 7) | (VEX_X << 6) | (VEX_B << 5) | (EVEX_R2 << 4) | in emitVEXOpcodePrefix()
1099 emitByte((VEX_W << 7) | (VEX_4V << 3) | (EVEX_U << 2) | VEX_PP, OS); in emitVEXOpcodePrefix()
1101 emitByte((EVEX_z << 7) | (EVEX_rc << 5) | (EVEX_b << 4) | (EVEX_V2 << 3) | in emitVEXOpcodePrefix()
1105 emitByte((EVEX_z << 7) | (EVEX_L2 << 6) | (VEX_L << 5) | (EVEX_b << 4) | in emitVEXOpcodePrefix()
1228 emitByte(0x40 | REX, OS); in emitREXPrefix()
1238 emitByte(X86::getSegmentOverridePrefixForReg(Reg), OS); in emitSegmentOverridePrefix()
1256 emitByte(0x66, OS); in emitOpcodePrefix()
1260 emitByte(0xF0, OS); in emitOpcodePrefix()
1264 emitByte(0x3E, OS); in emitOpcodePrefix()
1268 emitByte(0x66, OS); in emitOpcodePrefix()
1271 emitByte(0xF3, OS); in emitOpcodePrefix()
1274 emitByte(0xF2, OS); in emitOpcodePrefix()
1291 emitByte(0x0F, OS); in emitOpcodePrefix()
1297 emitByte(0x38, OS); in emitOpcodePrefix()
1300 emitByte(0x3A, OS); in emitOpcodePrefix()
1369 emitByte(BaseOpcode, OS); in encodeInstruction()
1378 emitByte(BaseOpcode + OpcodeOffset, OS); in encodeInstruction()
1390 emitByte(BaseOpcode, OS); in encodeInstruction()
1397 emitByte(BaseOpcode, OS); in encodeInstruction()
1405 emitByte(BaseOpcode, OS); in encodeInstruction()
1414 emitByte(BaseOpcode + getX86RegNum(MI.getOperand(CurOp++)), OS); in encodeInstruction()
1418 emitByte(BaseOpcode, OS); in encodeInstruction()
1434 emitByte(BaseOpcode, OS); in encodeInstruction()
1450 emitByte(BaseOpcode, OS); in encodeInstruction()
1470 emitByte(BaseOpcode, OS); in encodeInstruction()
1480 emitByte(BaseOpcode, OS); in encodeInstruction()
1500 emitByte(BaseOpcode + CC, OS); in encodeInstruction()
1516 emitByte(BaseOpcode, OS); in encodeInstruction()
1529 emitByte(BaseOpcode, OS); in encodeInstruction()
1546 emitByte(BaseOpcode, OS); in encodeInstruction()
1559 emitByte(BaseOpcode + CC, OS); in encodeInstruction()
1570 emitByte(BaseOpcode + CC, OS); in encodeInstruction()
1588 emitByte(BaseOpcode, OS); in encodeInstruction()
1593 emitByte(BaseOpcode, OS); in encodeInstruction()
1594 emitByte(modRMByte(3, getX86RegNum(MI.getOperand(CurOp++)),0), OS); in encodeInstruction()
1602 emitByte(BaseOpcode + CC, OS); in encodeInstruction()
1622 emitByte(BaseOpcode, OS); in encodeInstruction()
1637 emitByte(BaseOpcode, OS); in encodeInstruction()
1638 emitByte(0xC0 + ((Form - X86II::MRM0X) << 3), OS); in encodeInstruction()
1705 emitByte(BaseOpcode, OS); in encodeInstruction()
1706 emitByte(0xC0 + Form - X86II::MRM_C0, OS); in encodeInstruction()
1734 emitByte(X86II::getBaseOpcodeFor(TSFlags), OS); in encodeInstruction()