[X86] Add a new format type for instructions that represent named prefix bytes like...
authorCraig Topper <craig.topper@intel.com>
Fri, 21 Feb 2020 20:30:27 +0000 (12:30 -0800)
committerCraig Topper <craig.topper@intel.com>
Fri, 21 Feb 2020 20:34:59 +0000 (12:34 -0800)
commit8875ee18d72b1b395331c1b7217d2b91fb4dc4b7
tree04e827280d8aae88143da4bae5e3664995aea390
parent446b150065c331daa82a9f5436f4987e340e5d6f
[X86] Add a new format type for instructions that represent named prefix bytes like data16 and rep. Use it to make a simpler version of isPrefix.

isPrefix was added to support the patches to align branches.
it relies on a switch over instruction names.

This moves those opcodes to a new format so the information is
tablegen and we can just check for a specific value in some bits
in TSFlags instead.

I've left the other function in place for now so that the
existing patches in phabricator will still work. I'll work with
the owner to get them migrated.
llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
llvm/lib/Target/X86/X86InstrFormats.td
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86InstrSystem.td
llvm/lib/Target/X86/X86InstrTSX.td
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/utils/TableGen/X86RecognizableInstr.cpp
llvm/utils/TableGen/X86RecognizableInstr.h