Lines Matching refs:index
315 for (unsigned index = 0; index < 256; ++index) { in getDecisionType() local
316 if (decision.instructionIDs[index] != decision.instructionIDs[0]) in getDecisionType()
319 if (((index & 0xc0) == 0xc0) && in getDecisionType()
320 (decision.instructionIDs[index] != decision.instructionIDs[0xc0])) in getDecisionType()
323 if (((index & 0xc0) != 0xc0) && in getDecisionType()
324 (decision.instructionIDs[index] != decision.instructionIDs[0x00])) in getDecisionType()
327 if (((index & 0xc0) == 0xc0) && in getDecisionType()
328 (decision.instructionIDs[index] != decision.instructionIDs[index&0xf8])) in getDecisionType()
331 if (((index & 0xc0) != 0xc0) && in getDecisionType()
332 (decision.instructionIDs[index] != decision.instructionIDs[index&0x38])) in getDecisionType()
419 for (unsigned index = 0; index < 64; index += 8) in emitModRMDecision() local
420 ModRMDecision.push_back(decision.instructionIDs[index]); in emitModRMDecision()
421 for (unsigned index = 0xc0; index < 256; index += 8) in emitModRMDecision() local
422 ModRMDecision.push_back(decision.instructionIDs[index]); in emitModRMDecision()
425 for (unsigned index = 0; index < 64; index += 8) in emitModRMDecision() local
426 ModRMDecision.push_back(decision.instructionIDs[index]); in emitModRMDecision()
427 for (unsigned index = 0xc0; index < 256; ++index) in emitModRMDecision() local
428 ModRMDecision.push_back(decision.instructionIDs[index]); in emitModRMDecision()
431 for (unsigned index = 0; index < 256; ++index) in emitModRMDecision() local
432 ModRMDecision.push_back(decision.instructionIDs[index]); in emitModRMDecision()
496 for (unsigned index = 0; index < 256; ++index) { in emitOpcodeDecision() local
499 o2 << "/* 0x" << format("%02hhx", index) << " */" << "\n"; in emitOpcodeDecision()
502 decision.modRMDecisions[index]); in emitOpcodeDecision()
504 if (index < 255) in emitOpcodeDecision()
526 for (unsigned index = 0; index < IC_max; ++index) { in emitContextDecision() local
528 o2 << stringForContext((InstructionContext)index); in emitContextDecision()
533 decision.opcodeDecisions[index]); in emitContextDecision()
535 if (index + 1 < IC_max) in emitContextDecision()
588 for (unsigned index = 0; index < NumInstructions; ++index) { in emitInstructionInfo() local
589 o.indent(i * 2) << "{ /* " << index << " */" << "\n"; in emitInstructionInfo()
596 stringForOperandEncoding((OperandEncoding)InstructionSpecifiers[index] in emitInstructionInfo()
599 stringForOperandType((OperandType)InstructionSpecifiers[index] in emitInstructionInfo()
605 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */"; in emitInstructionInfo()
611 if (index + 1 < NumInstructions) in emitInstructionInfo()
627 for (unsigned index = 0; index < tableSize; ++index) { in emitContextTable() local
630 if (index & ATTR_EVEX) { in emitContextTable()
632 if (index & ATTR_EVEXL2) in emitContextTable()
634 else if (index & ATTR_EVEXL) in emitContextTable()
636 if (index & ATTR_REXW) in emitContextTable()
638 if (index & ATTR_OPSIZE) in emitContextTable()
640 else if (index & ATTR_XD) in emitContextTable()
642 else if (index & ATTR_XS) in emitContextTable()
644 if (index & ATTR_EVEXKZ) in emitContextTable()
646 else if (index & ATTR_EVEXK) in emitContextTable()
648 if (index & ATTR_EVEXB) in emitContextTable()
651 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
653 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
655 else if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
657 else if ((index & ATTR_VEXL) && (index & ATTR_REXW)) in emitContextTable()
659 else if ((index & ATTR_VEXL) && (index & ATTR_OPSIZE)) in emitContextTable()
661 else if ((index & ATTR_VEXL) && (index & ATTR_XD)) in emitContextTable()
663 else if ((index & ATTR_VEXL) && (index & ATTR_XS)) in emitContextTable()
665 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
667 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
669 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
671 else if (index & ATTR_VEXL) in emitContextTable()
673 else if ((index & ATTR_VEX) && (index & ATTR_REXW)) in emitContextTable()
675 else if ((index & ATTR_VEX) && (index & ATTR_OPSIZE)) in emitContextTable()
677 else if ((index & ATTR_VEX) && (index & ATTR_XD)) in emitContextTable()
679 else if ((index & ATTR_VEX) && (index & ATTR_XS)) in emitContextTable()
681 else if (index & ATTR_VEX) in emitContextTable()
683 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
685 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
687 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && in emitContextTable()
688 (index & ATTR_OPSIZE)) in emitContextTable()
690 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
692 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
694 else if ((index & ATTR_64BIT) && (index & ATTR_XS)) in emitContextTable()
696 else if ((index & ATTR_64BIT) && (index & ATTR_XD)) in emitContextTable()
698 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE)) in emitContextTable()
700 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE)) in emitContextTable()
702 else if ((index & ATTR_64BIT) && (index & ATTR_REXW)) in emitContextTable()
704 else if ((index & ATTR_64BIT)) in emitContextTable()
706 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
708 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
710 else if (index & ATTR_XS) in emitContextTable()
712 else if (index & ATTR_XD) in emitContextTable()
714 else if (index & ATTR_OPSIZE) in emitContextTable()
716 else if (index & ATTR_ADSIZE) in emitContextTable()
721 if (index < tableSize - 1) in emitContextTable()
726 o << " /* " << index << " */"; in emitContextTable()
788 for (unsigned index = 0; index < 256; ++index) { in setTableFields() local
789 if (filter.accepts(index)) { in setTableFields()
790 if (decision.instructionIDs[index] == uid) in setTableFields()
793 if (decision.instructionIDs[index] != 0) { in setTableFields()
797 InstructionSpecifiers[decision.instructionIDs[index]]; in setTableFields()
821 errs() << "ModRM " << index << "\n"; in setTableFields()
828 decision.instructionIDs[index] = uid; in setTableFields()
842 for (unsigned index = 0; index < IC_max; ++index) { in setTableFields() local
843 if (is32bit && inheritsFrom((InstructionContext)index, IC_64BIT)) in setTableFields()
846 if (inheritsFrom((InstructionContext)index, in setTableFields()
848 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode], in setTableFields()