[x86] Start refactoring the comment printing logic in the MC lowering of
authorChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 02:16:12 +0000 (02:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 02:16:12 +0000 (02:16 +0000)
commit5f671bae7c5501fb301ebeffc8746559366f668c
tree35b2da928b57654d8bea1f7072c903280dad5555
parent0bb38df86c72e8db5a305cce622c4a559e395bfb
[x86] Start refactoring the comment printing logic in the MC lowering of
vector shuffles.

This is just the beginning by hoisting it into its own function and
making use of early exit to dramatically simplify the flow of the
function. I'm going to be incrementally refactoring this until it is
a bit less magical how this applies to other instructions, and I can
teach it how to dig a shuffle mask out of a register. Then I plan to
hook it up to VPERMD so we get our mask comments for it.

No functionality changed yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCInstLower.cpp