Lines Matching refs:TSFlags

148                         uint64_t TSFlags, unsigned &CurByte, raw_ostream &OS,
156 void EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, int MemOperand,
163 void EmitOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, int MemOperand,
185 static bool isCDisp8(uint64_t TSFlags, int Value, int& CValue) { in isCDisp8() argument
186 assert(((TSFlags & X86II::EncodingMask) == X86II::EVEX) && in isCDisp8()
190 (TSFlags & X86II::CD8_Scale_Mask) >> X86II::CD8_Scale_Shift; in isCDisp8()
210 static MCFixupKind getImmFixupKind(uint64_t TSFlags) { in getImmFixupKind() argument
211 unsigned Size = X86II::getSizeOfImm(TSFlags); in getImmFixupKind()
212 bool isPCRel = X86II::isImmPCRel(TSFlags); in getImmFixupKind()
214 if (X86II::isImmSigned(TSFlags)) { in getImmFixupKind()
364 uint64_t TSFlags, unsigned &CurByte, in EmitMemModRMByte() argument
373 bool HasEVEX = (TSFlags & X86II::EncodingMask) == X86II::EVEX; in EmitMemModRMByte()
394 int ImmSize = X86II::hasImm(TSFlags) ? X86II::getSizeOfImm(TSFlags) : 0; in EmitMemModRMByte()
503 if (HasEVEX && isCDisp8(TSFlags, Disp.getImm(), CDisp8)) { in EmitMemModRMByte()
545 } else if (HasEVEX && isCDisp8(TSFlags, Disp.getImm(), CDisp8)) { in EmitMemModRMByte()
587 void X86MCCodeEmitter::EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, in EmitVEXOpcodePrefix() argument
591 assert(!(TSFlags & X86II::LOCK) && "Can't have LOCK VEX."); in EmitVEXOpcodePrefix()
593 uint64_t Encoding = TSFlags & X86II::EncodingMask; in EmitVEXOpcodePrefix()
594 bool HasEVEX_K = TSFlags & X86II::EVEX_K; in EmitVEXOpcodePrefix()
595 bool HasVEX_4V = TSFlags & X86II::VEX_4V; in EmitVEXOpcodePrefix()
596 bool HasVEX_4VOp3 = TSFlags & X86II::VEX_4VOp3; in EmitVEXOpcodePrefix()
597 bool HasMemOp4 = TSFlags & X86II::MemOp4; in EmitVEXOpcodePrefix()
598 bool HasEVEX_RC = TSFlags & X86II::EVEX_RC; in EmitVEXOpcodePrefix()
679 if (TSFlags & X86II::VEX_W) in EmitVEXOpcodePrefix()
682 if (TSFlags & X86II::VEX_L) in EmitVEXOpcodePrefix()
684 if (TSFlags & X86II::EVEX_L2) in EmitVEXOpcodePrefix()
687 if (HasEVEX_K && (TSFlags & X86II::EVEX_Z)) in EmitVEXOpcodePrefix()
690 if ((TSFlags & X86II::EVEX_B)) in EmitVEXOpcodePrefix()
693 switch (TSFlags & X86II::OpPrefixMask) { in EmitVEXOpcodePrefix()
700 switch (TSFlags & X86II::OpMapMask) { in EmitVEXOpcodePrefix()
714 switch (TSFlags & X86II::FormMask) { in EmitVEXOpcodePrefix()
988 static unsigned DetermineREXPrefix(const MCInst &MI, uint64_t TSFlags, in DetermineREXPrefix() argument
991 if (TSFlags & X86II::REX_W) in DetermineREXPrefix()
1014 switch (TSFlags & X86II::FormMask) { in DetermineREXPrefix()
1101 void X86MCCodeEmitter::EmitOpcodePrefix(uint64_t TSFlags, unsigned &CurByte, in EmitOpcodePrefix() argument
1108 if ((TSFlags & X86II::OpSizeMask) == (is16BitMode(STI) ? X86II::OpSize32 in EmitOpcodePrefix()
1113 if (TSFlags & X86II::LOCK) in EmitOpcodePrefix()
1116 switch (TSFlags & X86II::OpPrefixMask) { in EmitOpcodePrefix()
1131 if (unsigned REX = DetermineREXPrefix(MI, TSFlags, Desc)) in EmitOpcodePrefix()
1136 switch (TSFlags & X86II::OpMapMask) { in EmitOpcodePrefix()
1144 switch (TSFlags & X86II::OpMapMask) { in EmitOpcodePrefix()
1160 uint64_t TSFlags = Desc.TSFlags; in EncodeInstruction() local
1163 if ((TSFlags & X86II::FormMask) == X86II::Pseudo) in EncodeInstruction()
1173 uint64_t Encoding = TSFlags & X86II::EncodingMask; in EncodeInstruction()
1176 bool HasVEX_4V = TSFlags & X86II::VEX_4V; in EncodeInstruction()
1177 bool HasVEX_4VOp3 = TSFlags & X86II::VEX_4VOp3; in EncodeInstruction()
1178 bool HasMemOp4 = TSFlags & X86II::MemOp4; in EncodeInstruction()
1182 bool HasEVEX_K = TSFlags & X86II::EVEX_K; in EncodeInstruction()
1183 bool HasEVEX_RC = TSFlags & X86II::EVEX_RC; in EncodeInstruction()
1186 int MemoryOperand = X86II::getMemoryOperandNo(TSFlags, Opcode); in EncodeInstruction()
1195 if (TSFlags & X86II::REP) in EncodeInstruction()
1200 uint64_t AdSize = TSFlags & X86II::AdSizeMask; in EncodeInstruction()
1223 EmitOpcodePrefix(TSFlags, CurByte, MemoryOperand, MI, Desc, STI, OS); in EncodeInstruction()
1225 EmitVEXOpcodePrefix(TSFlags, CurByte, MemoryOperand, MI, Desc, OS); in EncodeInstruction()
1227 unsigned char BaseOpcode = X86II::getBaseOpcodeFor(TSFlags); in EncodeInstruction()
1229 if (TSFlags & X86II::Has3DNow0F0FOpcode) in EncodeInstruction()
1233 switch (TSFlags & X86II::FormMask) { in EncodeInstruction()
1234 default: errs() << "FORM: " << (TSFlags & X86II::FormMask) << "\n"; in EncodeInstruction()
1286 X86II::getSizeOfImm(TSFlags), getImmFixupKind(TSFlags), in EncodeInstruction()
1293 X86II::getSizeOfImm(TSFlags), getImmFixupKind(TSFlags), in EncodeInstruction()
1301 X86II::getSizeOfImm(TSFlags), getImmFixupKind(TSFlags), in EncodeInstruction()
1338 TSFlags, CurByte, OS, Fixups, STI); in EncodeInstruction()
1386 TSFlags, CurByte, OS, Fixups, STI); in EncodeInstruction()
1403 uint64_t Form = TSFlags & X86II::FormMask; in EncodeInstruction()
1420 uint64_t Form = TSFlags & X86II::FormMask; in EncodeInstruction()
1422 TSFlags, CurByte, OS, Fixups, STI); in EncodeInstruction()
1450 uint64_t Form = TSFlags & X86II::FormMask; in EncodeInstruction()
1461 if (TSFlags & X86II::VEX_I8IMM) { in EncodeInstruction()
1482 X86II::getSizeOfImm(TSFlags), getImmFixupKind(TSFlags), in EncodeInstruction()
1487 if (TSFlags & X86II::Has3DNow0F0FOpcode) in EncodeInstruction()
1488 EmitByte(X86II::getBaseOpcodeFor(TSFlags), CurByte, OS); in EncodeInstruction()