• Home
  • Raw
  • Download

Lines Matching refs:index

216   uint16_t index;  in getDecisionType()  local
218 for (index = 0; index < 256; ++index) { in getDecisionType()
219 if (decision.instructionIDs[index] != decision.instructionIDs[0]) in getDecisionType()
222 if (((index & 0xc0) == 0xc0) && in getDecisionType()
223 (decision.instructionIDs[index] != decision.instructionIDs[0xc0])) in getDecisionType()
226 if (((index & 0xc0) != 0xc0) && in getDecisionType()
227 (decision.instructionIDs[index] != decision.instructionIDs[0x00])) in getDecisionType()
230 if (((index & 0xc0) == 0xc0) && in getDecisionType()
231 (decision.instructionIDs[index] != decision.instructionIDs[index&0xf8])) in getDecisionType()
234 if (((index & 0xc0) != 0xc0) && in getDecisionType()
235 (decision.instructionIDs[index] != decision.instructionIDs[index&0x38])) in getDecisionType()
312 uint16_t index; in emitModRMDecision() local
341 for (index = 0; index < 64; index += 8) in emitModRMDecision()
342 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
343 for (index = 0xc0; index < 256; index += 8) in emitModRMDecision()
344 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
347 for (index = 0; index < 256; ++index) in emitModRMDecision()
348 emitOneID(o1, i1, decision.instructionIDs[index], true); in emitModRMDecision()
389 uint16_t index; in emitOpcodeDecision() local
396 for (index = 0; index < 256; ++index) { in emitOpcodeDecision()
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()
427 unsigned index; in emitContextDecision() local
429 for (index = 0; index < IC_max; ++index) { in emitContextDecision()
431 o2 << stringForContext((InstructionContext)index); in emitContextDecision()
435 emitOpcodeDecision(o1, o2, i1, i2, decision.opcodeDecisions[index]); in emitContextDecision()
437 if (index + 1 < IC_max) in emitContextDecision()
455 uint16_t index, operandIndex; in emitInstructionInfo() local
457 for (index = 0; index < numInstructions; ++index) { in emitInstructionInfo()
458 o.indent(i * 2) << "{ /* " << index << " */" << "\n"; in emitInstructionInfo()
462 (ModifierType)InstructionSpecifiers[index].modifierType); in emitInstructionInfo()
466 o << format("%02hhx", (uint16_t)InstructionSpecifiers[index].modifierBase); in emitInstructionInfo()
474 o <<stringForOperandEncoding((OperandEncoding)InstructionSpecifiers[index] in emitInstructionInfo()
478 o << stringForOperandType((OperandType)InstructionSpecifiers[index] in emitInstructionInfo()
492 o.indent(i * 2) << "/* " << InstructionSpecifiers[index].name << " */"; in emitInstructionInfo()
498 if (index + 1 < numInstructions) in emitInstructionInfo()
509 uint16_t index; in emitContextTable() local
515 for (index = 0; index < 256; ++index) { in emitContextTable()
518 if ((index & ATTR_VEXL) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
520 else if ((index & ATTR_VEXL) && (index & ATTR_OPSIZE)) in emitContextTable()
522 else if ((index & ATTR_VEXL) && (index & ATTR_XD)) in emitContextTable()
524 else if ((index & ATTR_VEXL) && (index & ATTR_XS)) in emitContextTable()
526 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_OPSIZE)) in emitContextTable()
528 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
530 else if ((index & ATTR_VEX) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
532 else if (index & ATTR_VEXL) in emitContextTable()
534 else if ((index & ATTR_VEX) && (index & ATTR_REXW)) in emitContextTable()
536 else if ((index & ATTR_VEX) && (index & ATTR_OPSIZE)) in emitContextTable()
538 else if ((index & ATTR_VEX) && (index & ATTR_XD)) in emitContextTable()
540 else if ((index & ATTR_VEX) && (index & ATTR_XS)) in emitContextTable()
542 else if (index & ATTR_VEX) in emitContextTable()
544 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS)) in emitContextTable()
546 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD)) in emitContextTable()
548 else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && in emitContextTable()
549 (index & ATTR_OPSIZE)) in emitContextTable()
551 else if ((index & ATTR_64BIT) && (index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
553 else if ((index & ATTR_64BIT) && (index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
555 else if ((index & ATTR_64BIT) && (index & ATTR_XS)) in emitContextTable()
557 else if ((index & ATTR_64BIT) && (index & ATTR_XD)) in emitContextTable()
559 else if ((index & ATTR_64BIT) && (index & ATTR_OPSIZE)) in emitContextTable()
561 else if ((index & ATTR_64BIT) && (index & ATTR_ADSIZE)) in emitContextTable()
563 else if ((index & ATTR_64BIT) && (index & ATTR_REXW)) in emitContextTable()
565 else if ((index & ATTR_64BIT)) in emitContextTable()
567 else if ((index & ATTR_XS) && (index & ATTR_OPSIZE)) in emitContextTable()
569 else if ((index & ATTR_XD) && (index & ATTR_OPSIZE)) in emitContextTable()
571 else if (index & ATTR_XS) in emitContextTable()
573 else if (index & ATTR_XD) in emitContextTable()
575 else if (index & ATTR_OPSIZE) in emitContextTable()
577 else if (index & ATTR_ADSIZE) in emitContextTable()
582 if (index < 255) in emitContextTable()
587 o << " /* " << index << " */"; in emitContextTable()
644 unsigned index; in setTableFields() local
646 for (index = 0; index < 256; ++index) { in setTableFields()
647 if (filter.accepts(index)) { in setTableFields()
648 if (decision.instructionIDs[index] == uid) in setTableFields()
651 if (decision.instructionIDs[index] != 0) { in setTableFields()
655 InstructionSpecifiers[decision.instructionIDs[index]]; in setTableFields()
674 errs() << "ModRM " << index << "\n"; in setTableFields()
681 decision.instructionIDs[index] = uid; in setTableFields()
693 unsigned index; in setTableFields() local
697 for (index = 0; index < IC_max; ++index) { in setTableFields()
698 if (is32bit && inheritsFrom((InstructionContext)index, IC_64BIT)) in setTableFields()
701 if (inheritsFrom((InstructionContext)index, in setTableFields()
703 setTableFields(decision.opcodeDecisions[index].modRMDecisions[opcode], in setTableFields()