OSDN Git Service

[X86] Minor cleanups to addShuffleComments in X86MCInstPrinter.cpp. NFCI
authorCraig Topper <craig.topper@gmail.com>
Sat, 30 May 2020 19:53:56 +0000 (12:53 -0700)
committerCraig Topper <craig.topper@gmail.com>
Sat, 30 May 2020 20:51:48 +0000 (13:51 -0700)
commit16976cb92535b0620f46720fe3be283da904026c
tree6842ea1b1de26c39e38a384960f1f56d7da9d568
parent3eb430d59847b9e0091199cb63a50ab0494711dd
[X86] Minor cleanups to addShuffleComments in X86MCInstPrinter.cpp. NFCI

-Replace some ifs that should be impossible with asserts.
-Use X86::AddrDisp and X86::AddrNumOperands to make code more readable
-Use X86II::isKMasked/isKMergeMasked to do some operand skipping to remove or simplify switches
llvm/lib/Target/X86/X86MCInstLower.cpp