Lines Matching refs:index

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