Lines Matching refs:o2

394 void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
404 o2.indent(i2) << "{ /* ModRMDecision */" << "\n";
407 o2.indent(i2) << stringForDecisionType(dt) << "," << "\n";
408 o2.indent(i2) << 0 << " /* EmptyTable */\n";
411 o2.indent(i2) << "}";
460 o2.indent(i2) << "{ /* struct ModRMDecision */" << "\n";
463 o2.indent(i2) << stringForDecisionType(dt) << "," << "\n";
464 o2.indent(i2) << EntryNumber << " /* Table" << EntryNumber << " */\n";
467 o2.indent(i2) << "}";
496 void DisassemblerTables::emitOpcodeDecision(raw_ostream &o1, raw_ostream &o2,
500 o2.indent(i2) << "{ /* struct OpcodeDecision */" << "\n";
502 o2.indent(i2) << "{" << "\n";
506 o2.indent(i2);
508 o2 << "/* 0x" << format("%02hhx", index) << " */" << "\n";
510 emitModRMDecision(o1, o2, i1, i2, ModRMTableNum,
514 o2 << ",";
516 o2 << "\n";
520 o2.indent(i2) << "}" << "\n";
522 o2.indent(i2) << "}" << "\n";
525 void DisassemblerTables::emitContextDecision(raw_ostream &o1, raw_ostream &o2,
530 o2.indent(i2) << "static const struct ContextDecision " << name << " = {\n";
532 o2.indent(i2) << "{ /* opcodeDecisions */" << "\n";
536 o2.indent(i2) << "/* ";
537 o2 << stringForContext((InstructionContext)index);
538 o2 << " */";
539 o2 << "\n";
541 emitOpcodeDecision(o1, o2, i1, i2, ModRMTableNum,
545 o2 << ", ";
549 o2.indent(i2) << "}" << "\n";
551 o2.indent(i2) << "};" << "\n";
730 void DisassemblerTables::emitContextDecisions(raw_ostream &o1, raw_ostream &o2,
733 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[0], ONEBYTE_STR);
734 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[1], TWOBYTE_STR);
735 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[2], THREEBYTE38_STR);
736 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[3], THREEBYTE3A_STR);
737 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[4], THREEBYTEA6_STR);
738 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[5], THREEBYTEA7_STR);
739 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[6], XOP8_MAP_STR);
740 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[7], XOP9_MAP_STR);
741 emitContextDecision(o1, o2, i1, i2, ModRMTableNum, *Tables[8], XOPA_MAP_STR);
752 raw_string_ostream o2(s2);
770 emitContextDecisions(o1, o2, i1, i2, ModRMTableNum);
776 o << o2.str();