Custom MCTargetAsmParser for a target

Hi all,

I’m trying to create an additional MCTargetAsmParser class, to be able to get hold of all the MCInsts when compiling .s to .o for my back-end.
What id like to know is how to do this.

I tried making a modification to the llvm-mc tool, but i could not work out how to include the header of my MCTargetAsmParser class to the llvm-mc tool. The LLVM build system is complex to me.

Best regards,

Rick Veens