[Tablegen] Error generating asm-writer

Hi All,

I am new to llvm and trying to understand and use llvm tablegen for my custom backend architecture. I am following the RISCV and AAP backend patches to try writing code for my backend.

I am able to generate instr-info, callingconv, emitter with tablegen. However, when trying to generate asm-writer for Instruction Printing module, i am getting the following error:

‘error:Could not find ‘PATCHABLE_TAIL_CALL’ instruction!’

Does this indicate that my target description .td files are missing something? What exactly i am missing here?

Any pointers to resolve this issue would be a great help.