[llvm-commits] [PATCH] Annotate virtual registers with register class in debug output

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Apr 27 10:01:43 PDT 2009


I am using this patch when working on the Blackfin backend. Now that  
X86 is gaining a decent set of register classes, it might be generally  
useful.

It prints machine code like this:

	%reg1025GR32<def> = MOV32rr %ESI
	%reg1024GR64<def> = MOV64rr %RDI
	%reg1026GR32_ABCD<def> = MOV32rr %reg1025GR32
	%reg1027GR8_ABCD_H<def> = EXTRACT_SUBREG %reg1026GR32_ABCD, 2
	%reg1028GR32_NOREX<def> = MOVZX32_NOREXrr8 %reg1027GR8_ABCD_H
	%EAX<def> = MOV32rr %reg1028GR32_NOREX
	RET

What do you think? Too much clutter?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: regclass-print.patch
Type: application/octet-stream
Size: 3631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090427/120db8e4/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list