Lines Matching refs:index

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