reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2448 OS << "static unsigned validateOperandClass(MCParsedAsmOperand &GOp, " 2450 OS << " " << Info.Target.getName() << "Operand &Operand = (" 2454 OS << " if (Kind == InvalidMatchClass)\n"; 2455 OS << " return MCTargetAsmParser::Match_InvalidOperand;\n\n"; 2459 OS << " if (Operand.isToken() && Kind <= MCK_LAST_TOKEN)\n"; 2460 OS << " return isSubclass(matchTokenString(Operand.getToken()), Kind) ?\n" 2466 OS << " switch (Kind) {\n" 2472 OS << " // '" << CI.ClassName << "' class\n"; 2473 OS << " case " << CI.Name << ": {\n"; 2474 OS << " DiagnosticPredicate DP(Operand." << CI.PredicateMethod 2476 OS << " if (DP.isMatch())\n"; 2477 OS << " return MCTargetAsmParser::Match_Success;\n"; 2479 OS << " if (DP.isNearMatch())\n"; 2480 OS << " return " << Info.Target.getName() << "AsmParser::Match_" 2482 OS << " break;\n"; 2485 OS << " break;\n"; 2486 OS << " }\n"; 2488 OS << " } // end switch (Kind)\n\n"; 2491 OS << " if (Operand.isReg()) {\n"; 2492 OS << " MatchClassKind OpKind;\n"; 2493 OS << " switch (Operand.getReg()) {\n"; 2494 OS << " default: OpKind = InvalidMatchClass; break;\n"; 2496 OS << " case " << RC.first->getValueAsString("Namespace") << "::" 2499 OS << " }\n"; 2500 OS << " return isSubclass(OpKind, Kind) ? " 2505 OS << " if (Kind > MCK_LAST_TOKEN && Kind <= MCK_LAST_REGISTER)\n"; 2506 OS << " return getDiagKindFromRegisterClass(Kind);\n\n"; 2510 OS << " return MCTargetAsmParser::Match_InvalidOperand;\n"; 2511 OS << "}\n\n";