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

References

utils/TableGen/AsmMatcherEmitter.cpp
 2518   OS << "/// isSubclass - Compute whether \\p A is a subclass of \\p B.\n";
 2519   OS << "static bool isSubclass(MatchClassKind A, MatchClassKind B) {\n";
 2520   OS << "  if (A == B)\n";
 2521   OS << "    return true;\n\n";
 2538       OS << "  switch (A) {\n";
 2539       OS << "  default:\n";
 2540       OS << "    return false;\n";
 2544     OS << "\n  case " << A.Name << ":\n";
 2547       OS << "    return B == " << SuperClasses.back() << ";\n";
 2552       OS << "    switch (B) {\n";
 2553       OS << "    default: return false;\n";
 2555         OS << "    case " << SC << ": return true;\n";
 2556       OS << "    }\n";
 2559       OS << "    return false;\n";
 2566     OS << "  }\n";
 2568     OS << "  return false;\n";
 2570   OS << "}\n\n";