[LLVMdev] Getting rid of tabs in LLVM's assembly output?

Tim Northover t.p.northover at gmail.com
Tue Dec 18 15:36:29 PST 2012

> > Maybe it's naive, but I would expect it to be easy for each backend to
> > expose a constant N which is the length of the longest mnemonic, and then
> > for the printer to pad to N+1 or N+2….
> That would probably work for X86, but other targets (ARM in particular)
> often have operands which are printed/parsed as suffices on the mnemonic
> itself.  Because of these, the backend does not statically know the longest
> potential string-of-stuff-before-the-tab.

Are you thinking of something beyond the ".F32.I16" suffixes (for
example)? If not, the result may not be TableGeneratable, but is
probably conservatively known as "8 + natural mnemonic length" for
these purposes.


(N.b. I have been looking almost exclusively at the 64-bit
architecture for the last year, I could well be massively wrong about
the 32-bit world).

More information about the llvm-dev mailing list