<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I try to create a backend to support AsmParser, but it hasn't the <font color="#b51a00">red part</font> as below. I find the Mips has this. Do you know how to make it appear?</div><div><br></div><div>Jonathan</div><div><div><br></div><div>#ifdef GET_ASSEMBLER_HEADER</div><div>#undef GET_ASSEMBLER_HEADER</div><div> // This should be included into the middle of the declaration of</div><div> // your subclasses implementation of MCTargetAsmParser.</div><div> unsigned ComputeAvailableFeatures(uint64_t FeatureBits) const;</div><div> void convertToMCInst(unsigned Kind, MCInst &Inst, unsigned Opcode,</div><div> const SmallVectorImpl<MCParsedAsmOperand*> &Operands);</div><div> void convertToMapAndConstraints(unsigned Kind,</div><div> const SmallVectorImpl<MCParsedAsmOperand*> &Operands);</div><div> bool mnemonicIsValid(StringRef Mnemonic);</div><div> <font color="#e32400">unsigned MatchInstructionImpl(</font></div><div><font color="#e32400"> const SmallVectorImpl<MCParsedAsmOperand*> &Operands,</font></div><div><font color="#e32400"> MCInst &Inst,</font></div><div><font color="#e32400"> unsigned &ErrorInfo, bool matchingInlineAsm,</font></div><div><font color="#e32400"> unsigned VariantID = 0);</font></div><div><font color="#e32400"><br></font></div><div><font color="#e32400"> enum OperandMatchResultTy {</font></div><div><font color="#e32400"> MatchOperand_Success, // operand matched successfully</font></div><div><font color="#e32400"> MatchOperand_NoMatch, // operand did not match</font></div><div><font color="#e32400"> MatchOperand_ParseFail // operand matched but had errors</font></div><div><font color="#e32400"> };</font></div><div><font color="#e32400"> OperandMatchResultTy MatchOperandParserImpl(</font></div><div><font color="#e32400"> SmallVectorImpl<MCParsedAsmOperand*> &Operands,</font></div><div><font color="#e32400"> StringRef Mnemonic);</font></div><div><font color="#e32400"> OperandMatchResultTy tryCustomParseOperand(</font></div><div><font color="#e32400"> SmallVectorImpl<MCParsedAsmOperand*> &Operands,</font></div><div><font color="#e32400"> unsigned MCK);</font></div><div><br></div><div>#endif // GET_ASSEMBLER_HEADER_INFO</div></div><div><br></div></body></html>