Lines Matching full:index
621 for (unsigned index = 0; index < 256; ++index) {
622 if (decision.instructionIDs[index] != decision.instructionIDs[0])
625 if (((index & 0xc0) == 0xc0) &&
626 (decision.instructionIDs[index] != decision.instructionIDs[0xc0]))
629 if (((index & 0xc0) != 0xc0) &&
630 (decision.instructionIDs[index] != decision.instructionIDs[0x00]))
633 if (((index & 0xc0) == 0xc0) && (decision.instructionIDs[index] !=
634 decision.instructionIDs[index & 0xf8]))
637 if (((index & 0xc0) != 0xc0) && (decision.instructionIDs[index] !=
638 decision.instructionIDs[index & 0x38]))
710 for (unsigned index = 0; index < 64; index += 8)
711 ModRMDecision.push_back(decision.instructionIDs[index]);
712 for (unsigned index = 0xc0; index < 256; index += 8)
713 ModRMDecision.push_back(decision.instructionIDs[index]);
716 for (unsigned index = 0; index < 64; index += 8)
717 ModRMDecision.push_back(decision.instructionIDs[index]);
718 for (unsigned index = 0xc0; index < 256; ++index)
719 ModRMDecision.push_back(decision.instructionIDs[index]);
763 // We assume that the index can fit into uint16_t.
765 "Index into ModRMDecision is too large for uint16_t!");
776 unsigned index;
777 for (index = 0; index < 256; ++index) {
778 auto &decision = opDecision.modRMDecisions[index];
783 if (index == 256) {
790 for (index = 0; index < 256; ++index) {
793 o2 << "/*0x" << format("%02hhx", index) << "*/";
796 opDecision.modRMDecisions[index]);
798 if (index < 255)
818 for (unsigned index = 0; index < IC_max; ++index) {
820 o2 << stringForContext((InstructionContext)index);
824 decision.opcodeDecisions[index]);
844 for (unsigned Index = 0; Index < NumInstructions; ++Index) {
847 for (auto Operand : InstructionSpecifiers[Index].operands) {
874 for (unsigned index = 0; index < NumInstructions; ++index) {
875 o.indent(i * 2) << "{ /* " << index << " */\n";
879 for (auto Operand : InstructionSpecifiers[index].operands) {
886 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */\n";
902 for (unsigned index = 0; index < ATTR_max; ++index) {
905 if ((index & ATTR_EVEX) && (index & ATTR_ADSIZE) && (index & ATTR_OPSIZE))
907 else if ((index & ATTR_EVEX) && (index & ATTR_ADSIZE) && (index & ATTR_XD))
909 else if ((index & ATTR_EVEX) && (index & ATTR_ADSIZE) && (index & ATTR_XS))
911 else if (index & ATTR_EVEXNF) {
913 if (index & ATTR_REXW)
915 else if (index & ATTR_OPSIZE)
918 if (index & ATTR_EVEXB)
922 } else if ((index & ATTR_EVEX) || (index & ATTR_VEX) ||
923 (index & ATTR_VEXL)) {
924 if (index & ATTR_EVEX)
929 if ((index & ATTR_EVEX) && (index & ATTR_EVEXL2))
931 else if (index & ATTR_VEXL)
934 if (index & ATTR_REXW)
937 if (index & ATTR_OPSIZE)
939 else if (index & ATTR_XD)
941 else if (index & ATTR_XS)
944 if (index & ATTR_EVEX) {
945 if (index & ATTR_EVEXKZ)
947 else if (index & ATTR_EVEXK)
950 if (index & ATTR_EVEXB)
953 } else if ((index & ATTR_64BIT) && (index & ATTR_REX2))
955 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS))
957 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD))
959 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) &&
960 (index & ATTR_OPSIZE))
962 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) &&
963 (index & ATTR_ADSIZE))
965 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE))
967 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_ADSIZE))
969 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE))
971 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_ADSIZE))
973 else if ((index & ATTR_64BIT) && (index & ATTR_XS))
975 else if ((index & ATTR_64BIT) && (index & ATTR_XD))
977 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE) &&
978 (index & ATTR_ADSIZE))
980 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE))
982 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE))
984 else if ((index & ATTR_64BIT) && (index & ATTR_REXW))
986 else if ((index & ATTR_64BIT))
988 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE))
990 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE))
992 else if ((index & ATTR_XS) && (index & ATTR_ADSIZE))
994 else if ((index & ATTR_XD) && (index & ATTR_ADSIZE))
996 else if (index & ATTR_XS)
998 else if (index & ATTR_XD)
1000 else if ((index & ATTR_OPSIZE) && (index & ATTR_ADSIZE))
1002 else if (index & ATTR_OPSIZE)
1004 else if (index & ATTR_ADSIZE)
1009 o << ", // " << index << "\n";
1077 for (unsigned index = 0; index < 256; ++index) {
1078 if (filter.accepts(index)) {
1079 if (decision.instructionIDs[index] == uid)
1082 if (decision.instructionIDs[index] != 0) {
1085 InstructionSpecifiers[decision.instructionIDs[index]];
1099 errs() << "ModRM " << index << "\n";
1106 decision.instructionIDs[index] = uid;
1117 for (unsigned index = 0; index < IC_max; ++index) {
1119 inheritsFrom((InstructionContext)index, IC_64BIT))
1123 if (inheritsFrom((InstructionContext)index,
1126 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode],