Is there some interface in MCAsmParser that will give me back a list of MCInst? It seems like the only interfaces available write out asm or object code to a file/buffer.
The ultimate goal is to be able to pass an inline asm string and get back a list of MCInst (usually of size one). I suspect this might be tricky because the point I want to do this is before register allocation and the inline asm might have placeholder references like $0, which should somehow become a “virtual” register in the MCInst. I’ll bet the parser doesn’t understand how to interpret those but maybe the target AsmBackend could somehow handle parsing them. It seems like a flexible enough framework to at least make it plausible.
I could manually parse it but handling all the different instruction types is going to be extremely tedious and there’s a whole framework that knows how to parse instructions right there.
Thanks for any help!
David