llvm-6502/lib/Target/X86/AsmPrinter
Chris Lattner 6aa928d57a I have manually decoded the imm field of an insertps one too many
times.  This patch causes llc and llvm-mc (which both default to
verbose-asm) to print out comments after a few common shuffle 
instructions which indicates the shuffle mask, e.g.:

	insertps	$113, %xmm3, %xmm0     ## xmm0 = zero,xmm0[1,2],xmm3[1]
	unpcklps	%xmm1, %xmm0    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	pshufd	$1, %xmm1, %xmm1        ## xmm1 = xmm1[1,0,0,0]

This is carefully factored to keep the information extraction (of the
shuffle mask) separate from the printing logic.  I plan to move the
extraction part out somewhere else at some point for other parts of
the x86 backend that want to introspect on the behavior of shuffles.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112387 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-28 20:42:31 +00:00
..
CMakeLists.txt I have manually decoded the imm field of an insertps one too many 2010-08-28 20:42:31 +00:00
Makefile Fix LLVM build when the user specifies CPPFLAGS on the make command line. 2010-03-12 21:42:14 +00:00
X86ATTInstPrinter.cpp I have manually decoded the imm field of an insertps one too many 2010-08-28 20:42:31 +00:00
X86ATTInstPrinter.h Add 256-bit vaddsub, vhadd, vhsub, vblend and vdpp instructions! 2010-07-19 23:32:44 +00:00
X86InstComments.cpp I have manually decoded the imm field of an insertps one too many 2010-08-28 20:42:31 +00:00
X86InstComments.h I have manually decoded the imm field of an insertps one too many 2010-08-28 20:42:31 +00:00
X86IntelInstPrinter.cpp I have manually decoded the imm field of an insertps one too many 2010-08-28 20:42:31 +00:00
X86IntelInstPrinter.h Add 256-bit vaddsub, vhadd, vhsub, vblend and vdpp instructions! 2010-07-19 23:32:44 +00:00