Lines Matching refs:index
213 for (unsigned index = 0; index < 256; ++index) { in getDecisionType() local
214 if (decision.instructionIDs[index] != decision.instructionIDs[0]) in getDecisionType()
217 if (((index & 0xc0) == 0xc0) && in getDecisionType()
218 (decision.instructionIDs[index] != decision.instructionIDs[0xc0])) in getDecisionType()
221 if (((index & 0xc0) != 0xc0) && in getDecisionType()
222 (decision.instructionIDs[index] != decision.instructionIDs[0x00])) in getDecisionType()
225 if (((index & 0xc0) == 0xc0) && in getDecisionType()
226 (decision.instructionIDs[index] != decision.instructionIDs[index&0xf8])) in getDecisionType()
229 if (((index & 0xc0) != 0xc0) && in getDecisionType()
230 (decision.instructionIDs[index] != decision.instructionIDs[index&0x38])) in getDecisionType()
333 for (unsigned index = 0; index < 64; index += 8) in emitModRMDecision() local
334 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
335 for (unsigned index = 0xc0; index < 256; index += 8) in emitModRMDecision() local
336 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
339 for (unsigned index = 0; index < 64; index += 8) in emitModRMDecision() local
340 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
341 for (unsigned index = 0xc0; index < 256; ++index) in emitModRMDecision() local
342 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
345 for (unsigned index = 0; index < 256; ++index) in emitModRMDecision() local
346 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
396 for (unsigned index = 0; index < 256; ++index) { in emitOpcodeDecision() local
399 o2 << "/* 0x" << format("%02hhx", index) << " */" << "\n"; in emitOpcodeDecision()
401 emitModRMDecision(o1, o2, i1, i2, decision.modRMDecisions[index]); in emitOpcodeDecision()
403 if (index < 255) in emitOpcodeDecision()
424 for (unsigned index = 0; index < IC_max; ++index) { in emitContextDecision() local
426 o2 << stringForContext((InstructionContext)index); in emitContextDecision()
430 emitOpcodeDecision(o1, o2, i1, i2, decision.opcodeDecisions[index]); in emitContextDecision()
432 if (index + 1 < IC_max) in emitContextDecision()
485 for (unsigned index = 0; index < NumInstructions; ++index) { in emitInstructionInfo() local
486 o.indent(i * 2) << "{ /* " << index << " */" << "\n"; in emitInstructionInfo()
490 (ModifierType)InstructionSpecifiers[index].modifierType); in emitInstructionInfo()
494 o << format("%02hhx", (uint16_t)InstructionSpecifiers[index].modifierBase); in emitInstructionInfo()
501 stringForOperandEncoding((OperandEncoding)InstructionSpecifiers[index] in emitInstructionInfo()
504 stringForOperandType((OperandType)InstructionSpecifiers[index] in emitInstructionInfo()
510 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */"; in emitInstructionInfo()
516 if (index + 1 < NumInstructions) in emitInstructionInfo()
531 for (unsigned index = 0; index < 256; ++index) { in emitContextTable() local
534 if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
536 else if ((index & ATTR_VEXL) && (index & ATTR_OPSIZE)) in emitContextTable()
538 else if ((index & ATTR_VEXL) && (index & ATTR_XD)) in emitContextTable()
540 else if ((index & ATTR_VEXL) && (index & ATTR_XS)) in emitContextTable()
542 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
544 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
546 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
548 else if (index & ATTR_VEXL) in emitContextTable()
550 else if ((index & ATTR_VEX) && (index & ATTR_REXW)) in emitContextTable()
552 else if ((index & ATTR_VEX) && (index & ATTR_OPSIZE)) in emitContextTable()
554 else if ((index & ATTR_VEX) && (index & ATTR_XD)) in emitContextTable()
556 else if ((index & ATTR_VEX) && (index & ATTR_XS)) in emitContextTable()
558 else if (index & ATTR_VEX) in emitContextTable()
560 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
562 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
564 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && in emitContextTable()
565 (index & ATTR_OPSIZE)) in emitContextTable()
567 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
569 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
571 else if ((index & ATTR_64BIT) && (index & ATTR_XS)) in emitContextTable()
573 else if ((index & ATTR_64BIT) && (index & ATTR_XD)) in emitContextTable()
575 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE)) in emitContextTable()
577 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE)) in emitContextTable()
579 else if ((index & ATTR_64BIT) && (index & ATTR_REXW)) in emitContextTable()
581 else if ((index & ATTR_64BIT)) in emitContextTable()
583 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
585 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
587 else if (index & ATTR_XS) in emitContextTable()
589 else if (index & ATTR_XD) in emitContextTable()
591 else if (index & ATTR_OPSIZE) in emitContextTable()
593 else if (index & ATTR_ADSIZE) in emitContextTable()
598 if (index < 255) in emitContextTable()
603 o << " /* " << index << " */"; in emitContextTable()
657 for (unsigned index = 0; index < 256; ++index) { in setTableFields() local
658 if (filter.accepts(index)) { in setTableFields()
659 if (decision.instructionIDs[index] == uid) in setTableFields()
662 if (decision.instructionIDs[index] != 0) { in setTableFields()
666 InstructionSpecifiers[decision.instructionIDs[index]]; in setTableFields()
685 errs() << "ModRM " << index << "\n"; in setTableFields()
692 decision.instructionIDs[index] = uid; in setTableFields()
706 for (unsigned index = 0; index < IC_max; ++index) { in setTableFields() local
707 if (is32bit && inheritsFrom((InstructionContext)index, IC_64BIT)) in setTableFields()
710 if (inheritsFrom((InstructionContext)index, in setTableFields()
712 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode], in setTableFields()