Lines Matching refs:Index
392 for (unsigned index = 0; index < 256; ++index) {
393 if (decision.instructionIDs[index] != decision.instructionIDs[0])
396 if (((index & 0xc0) == 0xc0) &&
397 (decision.instructionIDs[index] != decision.instructionIDs[0xc0]))
400 if (((index & 0xc0) != 0xc0) &&
401 (decision.instructionIDs[index] != decision.instructionIDs[0x00]))
404 if (((index & 0xc0) == 0xc0) &&
405 (decision.instructionIDs[index] != decision.instructionIDs[index&0xf8]))
408 if (((index & 0xc0) != 0xc0) &&
409 (decision.instructionIDs[index] != decision.instructionIDs[index&0x38]))
496 for (unsigned index = 0; index < 64; index += 8)
497 ModRMDecision.push_back(decision.instructionIDs[index]);
498 for (unsigned index = 0xc0; index < 256; index += 8)
499 ModRMDecision.push_back(decision.instructionIDs[index]);
502 for (unsigned index = 0; index < 64; index += 8)
503 ModRMDecision.push_back(decision.instructionIDs[index]);
504 for (unsigned index = 0xc0; index < 256; ++index)
505 ModRMDecision.push_back(decision.instructionIDs[index]);
508 for (unsigned index = 0; index < 256; ++index)
509 ModRMDecision.push_back(decision.instructionIDs[index]);
557 // We assume that the index can fit into uint16_t.
559 "Index into ModRMDecision is too large for uint16_t!");
573 for (unsigned index = 0; index < 256; ++index) {
576 o2 << "/* 0x" << format("%02hhx", index) << " */" << "\n";
579 decision.modRMDecisions[index]);
581 if (index < 255)
603 for (unsigned index = 0; index < IC_max; ++index) {
605 o2 << stringForContext((InstructionContext)index);
610 decision.opcodeDecisions[index]);
612 if (index + 1 < IC_max)
634 for (unsigned Index = 0; Index < NumInstructions; ++Index) {
639 OperandEncoding Encoding = (OperandEncoding)InstructionSpecifiers[Index]
641 OperandType Type = (OperandType)InstructionSpecifiers[Index]
665 for (unsigned index = 0; index < NumInstructions; ++index) {
666 o.indent(i * 2) << "{ /* " << index << " */\n";
672 OperandEncoding Encoding = (OperandEncoding)InstructionSpecifiers[index]
674 OperandType Type = (OperandType)InstructionSpecifiers[index]
680 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */\n";
696 for (unsigned index = 0; index < tableSize; ++index) {
699 if (index & ATTR_EVEX) {
701 if (index & ATTR_EVEXL2)
703 else if (index & ATTR_EVEXL)
705 if (index & ATTR_REXW)
707 if (index & ATTR_OPSIZE)
709 else if (index & ATTR_XD)
711 else if (index & ATTR_XS)
713 if (index & ATTR_EVEXKZ)
715 else if (index & ATTR_EVEXK)
717 if (index & ATTR_EVEXB)
720 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_OPSIZE))
722 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XD))
724 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XS))
726 else if ((index & ATTR_VEXL) && (index & ATTR_REXW))
728 else if ((index & ATTR_VEXL) && (index & ATTR_OPSIZE))
730 else if ((index & ATTR_VEXL) && (index & ATTR_XD))
732 else if ((index & ATTR_VEXL) && (index & ATTR_XS))
734 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_OPSIZE))
736 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XD))
738 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XS))
740 else if (index & ATTR_VEXL)
742 else if ((index & ATTR_VEX) && (index & ATTR_REXW))
744 else if ((index & ATTR_VEX) && (index & ATTR_OPSIZE))
746 else if ((index & ATTR_VEX) && (index & ATTR_XD))
748 else if ((index & ATTR_VEX) && (index & ATTR_XS))
750 else if (index & ATTR_VEX)
752 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS))
754 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD))
756 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) &&
757 (index & ATTR_OPSIZE))
759 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) &&
760 (index & ATTR_ADSIZE))
762 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE))
764 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE))
766 else if ((index & ATTR_64BIT) && (index & ATTR_XS))
768 else if ((index & ATTR_64BIT) && (index & ATTR_XD))
770 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE) &&
771 (index & ATTR_ADSIZE))
773 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE))
775 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE))
777 else if ((index & ATTR_64BIT) && (index & ATTR_REXW))
779 else if ((index & ATTR_64BIT))
781 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE))
783 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE))
785 else if (index & ATTR_XS)
787 else if (index & ATTR_XD)
789 else if ((index & ATTR_OPSIZE) && (index & ATTR_ADSIZE))
791 else if (index & ATTR_OPSIZE)
793 else if (index & ATTR_ADSIZE)
798 if (index < tableSize - 1)
803 o << " /* " << index << " */";
865 for (unsigned index = 0; index < 256; ++index) {
866 if (filter.accepts(index)) {
867 if (decision.instructionIDs[index] == uid)
870 if (decision.instructionIDs[index] != 0) {
874 InstructionSpecifiers[decision.instructionIDs[index]];
889 errs() << "ModRM " << index << "\n";
896 decision.instructionIDs[index] = uid;
911 for (unsigned index = 0; index < IC_max; ++index) {
913 inheritsFrom((InstructionContext)index, IC_64BIT))
917 if (inheritsFrom((InstructionContext)index,
920 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode],