llvm.org GIT mirror llvm / 00796a1
Rather then have a wrapper function, have tblgen instantiate the implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164548 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 7 years ago
5 changed file(s) with 2 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
255255 bool ParseInstruction(StringRef Name, SMLoc NameLoc,
256256 SmallVectorImpl &Operands);
257257 bool ParseDirective(AsmToken DirectiveID);
258
259 bool mnemonicIsValid(StringRef Mnemonic) {
260 return mnemonicIsValidImpl(Mnemonic);
261 }
262258
263259 unsigned checkTargetMatchPredicate(MCInst &Inst);
264260
4242 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
4343
4444 bool ParseDirectiveWord(unsigned Size, SMLoc L);
45
46 bool mnemonicIsValid(StringRef Mnemonic) {
47 return mnemonicIsValidImpl(Mnemonic);
48 }
4945
5046 bool MatchAndEmitInstruction(SMLoc IDLoc,
5147 SmallVectorImpl &Operands,
3939
4040 #define GET_ASSEMBLER_HEADER
4141 #include "MipsGenAsmMatcher.inc"
42
43 bool mnemonicIsValid(StringRef Mnemonic) {
44 return mnemonicIsValidImpl(Mnemonic);
45 }
4642
4743 bool MatchAndEmitInstruction(SMLoc IDLoc,
4844 SmallVectorImpl &Operands,
5858
5959 bool ParseDirectiveWord(unsigned Size, SMLoc L);
6060 bool ParseDirectiveCode(StringRef IDVal, SMLoc L);
61
62 bool mnemonicIsValid(StringRef Mnemonic) {
63 return mnemonicIsValidImpl(Mnemonic);
64 }
6561
6662 bool processInstruction(MCInst &Inst,
6763 const SmallVectorImpl &Ops);
26202620 << " const "
26212621 << "SmallVectorImpl &Operands,\n "
26222622 << " unsigned OperandNum, unsigned &NumMCOperands);\n";
2623 OS << " bool mnemonicIsValidImpl(StringRef Mnemonic);\n";
2623 OS << " bool mnemonicIsValid(StringRef Mnemonic);\n";
26242624 OS << " unsigned MatchInstructionImpl(\n"
26252625 << " const SmallVectorImpl &Operands,\n"
26262626 << " unsigned &Kind, MCInst &Inst, "
27992799
28002800 // A method to determine if a mnemonic is in the list.
28012801 OS << "bool " << Target.getName() << ClassName << "::\n"
2802 << "mnemonicIsValidImpl(StringRef Mnemonic) {\n";
2802 << "mnemonicIsValid(StringRef Mnemonic) {\n";
28032803 OS << " // Search the table.\n";
28042804 OS << " std::pair MnemonicRange =\n";
28052805 OS << " std::equal_range(MatchTable, MatchTable+"