• Home
  • Raw
  • Download

Lines Matching refs:Indentation

321   void emit(raw_ostream &o, unsigned &Indentation);
416 void emitTop(raw_ostream &o, unsigned &Indentation);
420 void emitBot(raw_ostream &o, unsigned &Indentation);
503 bool emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,unsigned Opc);
506 void emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
531 bool emit(raw_ostream &o, unsigned &Indentation);
659 void ARMFilter::emit(raw_ostream &o, unsigned &Indentation) { in emit() argument
660 o.indent(Indentation) << "// Check Inst{"; in emit()
667 o.indent(Indentation) << "switch (fieldFromInstruction(insn, " in emit()
682 o.indent(Indentation) << "default:\n"; in emit()
683 o.indent(Indentation) << " break; // fallthrough\n"; in emit()
689 o.indent(Indentation) << "}\n"; in emit()
692 o.indent(Indentation) << "case " << filterIterator->first << ":\n"; in emit()
698 if (!DefaultCase) { ++Indentation; ++Indentation; } in emit()
700 bool finished = filterIterator->second->emit(o, Indentation); in emit()
705 o.indent(Indentation) << "break;\n"; in emit()
707 if (!DefaultCase) { --Indentation; --Indentation; } in emit()
713 o.indent(Indentation) << "}\n"; in emit()
757 void ARMFilterChooser::emitTop(raw_ostream &o, unsigned &Indentation) { in emitTop() argument
763 o.indent(Indentation) << "typedef uint8_t field_t;\n"; in emitTop()
766 o.indent(Indentation) << "typedef uint16_t field_t;\n"; in emitTop()
769 o.indent(Indentation) << "typedef uint32_t field_t;\n"; in emitTop()
772 o.indent(Indentation) << "typedef uint64_t field_t;\n"; in emitTop()
780 o.indent(Indentation) << "static field_t " << in emitTop()
783 o.indent(Indentation) << "{\n"; in emitTop()
785 ++Indentation; ++Indentation; in emitTop()
786 o.indent(Indentation) << "assert(startBit + numBits <= " << BIT_WIDTH in emitTop()
789 o.indent(Indentation) << "field_t fieldMask;\n"; in emitTop()
791 o.indent(Indentation) << "if (numBits == " << BIT_WIDTH << ")\n"; in emitTop()
793 ++Indentation; ++Indentation; in emitTop()
794 o.indent(Indentation) << "fieldMask = (field_t)-1;\n"; in emitTop()
795 --Indentation; --Indentation; in emitTop()
797 o.indent(Indentation) << "else\n"; in emitTop()
799 ++Indentation; ++Indentation; in emitTop()
800 o.indent(Indentation) << "fieldMask = ((1 << numBits) - 1) << startBit;\n"; in emitTop()
801 --Indentation; --Indentation; in emitTop()
804 o.indent(Indentation) << "return (insn & fieldMask) >> startBit;\n"; in emitTop()
805 --Indentation; --Indentation; in emitTop()
807 o.indent(Indentation) << "}\n"; in emitTop()
811 o.indent(Indentation) <<"static uint16_t decodeInstruction(field_t insn) {\n"; in emitTop()
813 ++Indentation; ++Indentation; in emitTop()
815 emit(o, Indentation); in emitTop()
818 o.indent(Indentation) << "return 0;\n"; in emitTop()
819 --Indentation; --Indentation; in emitTop()
821 o.indent(Indentation) << "}\n"; in emitTop()
828 void ARMFilterChooser::emitBot(raw_ostream &o, unsigned &Indentation) { in emitBot() argument
832 o.indent(Indentation) in emitBot()
835 ++Indentation; ++Indentation; in emitBot()
838 emit(o, Indentation); in emitBot()
841 o.indent(Indentation) << "return 0;\n"; in emitBot()
843 --Indentation; --Indentation; in emitBot()
845 o.indent(Indentation) << "}\n"; in emitBot()
993 bool ARMFilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation, in emitSingletonDecoder() argument
1005 o.indent(Indentation); in emitSingletonDecoder()
1019 o.indent(Indentation) << "return " << Opc << "; // " << nameWithID(Opc) in emitSingletonDecoder()
1027 o.indent(Indentation) << "// Check "; in emitSingletonDecoder()
1037 o.indent(Indentation) << "if ("; in emitSingletonDecoder()
1049 o.indent(Indentation) << " return " << Opc << "; // " << nameWithID(Opc) in emitSingletonDecoder()
1057 unsigned &Indentation, in emitSingletonDecoder() argument
1062 emitSingletonDecoder(o, Indentation, Opc); in emitSingletonDecoder()
1065 o.indent(Indentation) << "else\n"; in emitSingletonDecoder()
1067 Indentation += 2; in emitSingletonDecoder()
1068 Best.getVariableFC().emit(o, Indentation); in emitSingletonDecoder()
1069 Indentation -= 2; in emitSingletonDecoder()
1362 bool ARMFilterChooser::emit(raw_ostream &o, unsigned &Indentation) { in emit() argument
1367 return emitSingletonDecoder(o, Indentation, Opcodes[0]); in emit()
1373 emitSingletonDecoder(o, Indentation, Best); in emit()
1375 bestFilter().emit(o, Indentation); in emit()
1402 --Indentation; --Indentation; in emit()
1403 o.indent(Indentation) << "{\n"; in emit()
1404 ++Indentation; ++Indentation; in emit()
1406 o.indent(Indentation) in emit()
1409 o.indent(Indentation) in emit()
1412 o.indent(Indentation) in emit()
1418 --Indentation; --Indentation; in emit()
1419 o.indent(Indentation) << "}\n"; in emit()
1420 ++Indentation; ++Indentation; in emit()
1425 o.indent(Indentation) in emit()
1432 --Indentation; --Indentation; in emit()
1433 o.indent(Indentation) << "{\n"; in emit()
1434 ++Indentation; ++Indentation; in emit()
1436 o.indent(Indentation) in emit()
1439 o.indent(Indentation) in emit()
1445 --Indentation; --Indentation; in emit()
1446 o.indent(Indentation) << "}\n"; in emit()
1447 ++Indentation; ++Indentation; in emit()
1452 o.indent(Indentation) in emit()
1464 o.indent(Indentation) << "return 0;" << " // Conflict set: "; in emit()
1753 unsigned Indentation = 0; in emit() local
1754 FC->emitTop(o, Indentation); in emit()
1761 Indentation = 0; in emit()
1762 FC->emitBot(o, Indentation); in emit()