reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
421 OS << " unsigned mid;\n"; 422 OS << " unsigned start = 0;\n"; 423 OS << " unsigned end = " << TableSize << ";\n"; 424 OS << " while (start < end) {\n"; 425 OS << " mid = start + (end - start)/2;\n"; 426 OS << " if (Opcode == " << InstrMapDesc.getName() << "Table[mid][0]) {\n"; 427 OS << " break;\n"; 428 OS << " }\n"; 429 OS << " if (Opcode < " << InstrMapDesc.getName() << "Table[mid][0])\n"; 430 OS << " end = mid;\n"; 431 OS << " else\n"; 432 OS << " start = mid + 1;\n"; 433 OS << " }\n"; 434 OS << " if (start == end)\n"; 435 OS << " return -1; // Instruction doesn't exist in this table.\n\n";