21 #include "llvm/Support/DataTypes.h"
618 unsigned FirstMemOp = 1;
640 unsigned FirstMemOp = 0;
661 if ((RegNo > X86::XMM7 && RegNo <= X86::XMM15) ||
662 (RegNo > X86::XMM23 && RegNo <= X86::XMM31) ||
663 (RegNo > X86::YMM7 && RegNo <= X86::YMM15) ||
664 (RegNo > X86::YMM23 && RegNo <= X86::YMM31) ||
665 (RegNo > X86::ZMM7 && RegNo <= X86::ZMM15) ||
666 (RegNo > X86::ZMM23 && RegNo <= X86::ZMM31))
671 case X86::R8:
case X86::R9:
case X86::R10:
case X86::R11:
672 case X86::R12:
case X86::R13:
case X86::R14:
case X86::R15:
673 case X86::R8D:
case X86::R9D:
case X86::R10D:
case X86::R11D:
674 case X86::R12D:
case X86::R13D:
case X86::R14D:
case X86::R15D:
675 case X86::R8W:
case X86::R9W:
case X86::R10W:
case X86::R11W:
676 case X86::R12W:
case X86::R13W:
case X86::R14W:
case X86::R15W:
677 case X86::R8B:
case X86::R9B:
case X86::R10B:
case X86::R11B:
678 case X86::R12B:
case X86::R13B:
case X86::R14B:
case X86::R15B:
679 case X86::CR8:
case X86::CR9:
case X86::CR10:
case X86::CR11:
680 case X86::CR12:
case X86::CR13:
case X86::CR14:
case X86::CR15:
689 return ((RegNo > X86::XMM15 && RegNo <= X86::XMM31) ||
690 (RegNo > X86::YMM15 && RegNo <= X86::YMM31) ||
691 (RegNo > X86::ZMM15 && RegNo <= X86::ZMM31));
696 return (reg == X86::SPL || reg == X86::BPL ||
697 reg == X86::SIL || reg == X86::DIL);
AddrSegmentReg - The operand # of the segment in the memory operand.
bool isX86_64NonExtLowByteReg(unsigned reg)
int getOperandBias(const MCInstrDesc &Desc)
unsigned isImmPCRel(uint64_t TSFlags)
#define llvm_unreachable(msg)
bool hasImm(uint64_t TSFlags)
bool isX86_64ExtendedReg(unsigned RegNo)
AddrNumOperands - Total number of operands in a memory reference.
int getOperandConstraint(unsigned OpNum, MCOI::OperandConstraint Constraint) const
Returns the value of the specific constraint if it is set. Returns -1 if it is not set...
static bool is32ExtendedReg(unsigned RegNo)
unsigned char getBaseOpcodeFor(uint64_t TSFlags)
VEX - The opcode prefix used by AVX instructions.
unsigned getSizeOfImm(uint64_t TSFlags)
TOF
Target Operand Flag enum.
int getMemoryOperandNo(uint64_t TSFlags, unsigned Opcode)
XOP - Opcode prefix used by XOP instructions.
unsigned getNumOperands() const
Return the number of declared MachineOperands for this MachineInstruction. Note that variadic (isVari...