[LLVMdev] Questions on ARMInstrInfo.td and MC/ARM/ELF

Jason Kim jasonwkim at google.com
Wed Sep 29 15:09:05 PDT 2010


Hi Everyone,

I am trying to decide on a MC'ized reorg of ARMAsmPrinter for MC/ELF,
and had some questions.

Currently, it defines quite a few methods like printAddrMode4Operand
(linked to ARMInstrInfo.td) that currently assume raw text support in
the OutStreamer. Are these methods still supposed to be invoked in the
MC'ized path for assembly output?
Is JimG's new MC/.s ARMAsmPrinter::EmitInstruction() somehow bypassing
these completely?

and also on  EmitStartOfAsmFile(), it emits a bunch of text assembly
attributes - which is clearly wrong for MC (but is still being used in
the asm emission).
Can anyone suggest a better mechanism to switch on this than using
OutStreamer.hasRawTextSupport()?

Thanks,

-Jason



More information about the llvm-dev mailing list