reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

utils/TableGen/DAGISelMatcherEmitter.cpp
  862     BeginEmitFunction(OS, "bool",
  864     OS << "{\n";
  865     OS << "  switch (PredNo) {\n";
  866     OS << "  default: llvm_unreachable(\"Invalid predicate in table?\");\n";
  868       OS << "  case " << i << ": return "  << PatternPredicates[i] << ";\n";
  869     OS << "  }\n";
  870     OS << "}\n";
  871     EndEmitFunction(OS);
  877       OS);
  882       OS);
  887     BeginEmitFunction(OS, "bool",
  892     OS << "{\n";
  893     OS << "  unsigned NextRes = Result.size();\n";
  894     OS << "  switch (PatternNo) {\n";
  895     OS << "  default: llvm_unreachable(\"Invalid pattern # in table?\");\n";
  903       OS << "  case " << i << ":\n";
  905         OS << "  {\n";
  906       OS << "    Result.resize(NextRes+" << NumOps << ");\n";
  908         OS << "    bool Succeeded = " << P.getSelectFunc();
  910         OS << "  return " << P.getSelectFunc();
  912       OS << "(";
  916         OS << "Root, ";
  921         OS << "Parent, ";
  923       OS << "N";
  925         OS << ", Result[NextRes+" << i << "].first";
  926       OS << ");\n";
  928         OS << "    if (Succeeded)\n";
  929         OS << "       dbgs() << \"\\nCOMPLEX_PATTERN: " << P.getSelectFunc()
  931         OS << "    return Succeeded;\n";
  932         OS << "    }\n";
  935     OS << "  }\n";
  936     OS << "}\n";
  937     EndEmitFunction(OS);
  944     BeginEmitFunction(OS, "SDValue",
  946     OS << "{\n";
  947     OS << "  switch (XFormNo) {\n";
  948     OS << "  default: llvm_unreachable(\"Invalid xform # in table?\");\n";
  958       OS << "  case " << i << ": {  ";
  960         OS << "// " << NodeXForms[i]->getName();
  961       OS << '\n';
  965         OS << "    SDNode *N = V.getNode();\n";
  967         OS << "    " << ClassName << " *N = cast<" << ClassName
  969       OS << Code << "\n  }\n";
  971     OS << "  }\n";
  972     OS << "}\n";
  973     EndEmitFunction(OS);