[LLVMdev] X86AsmPrinter + MASM and NASM backends

Aaron Gray angray at beeb.net
Mon Jul 11 16:28:43 PDT 2005


>>> You shouldn't have to add new classes to the .td file, just modify 
>>> printOp for your asmprinters.
>>
>> I dont think printOp is virtual and therefore cannot be overriden ?
>
> Why does it need to be virtual?  No 'intel' printers want % signs.

The GAS intel code generator generates percents, look at the X86InstrInfo.td 
file it is full of them.

The X86IntelAsmPrinter is not overridable and inheritable for this job. The 
X86MASMPrinter overrides too much for the Intel one to be useful.

Aaron




More information about the llvm-dev mailing list