[X86] Cleanup inheritance of the X86InstrFormats.td classes. NFC
authorCraig Topper <craig.topper@intel.com>
Thu, 29 Mar 2018 03:14:56 +0000 (03:14 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 29 Mar 2018 03:14:56 +0000 (03:14 +0000)
EVEX shouldn't inherit from VEX and EVEX_4V shouldn't inherit from VEX_4V.

llvm-svn: 328756

llvm/lib/Target/X86/X86InstrFormats.td

index ba8e077..6cf6781 100644 (file)
@@ -208,8 +208,8 @@ class VEX_WIG  { bits<2> VEX_WPrefix = 2; }
 class VEX_4V : VEX { bit hasVEX_4V = 1; }
 class VEX_L  { bit hasVEX_L = 1; }
 class VEX_LIG { bit ignoresVEX_L = 1; }
-class EVEX : VEX { Encoding OpEnc = EncEVEX; }
-class EVEX_4V : VEX_4V { Encoding OpEnc = EncEVEX; }
+class EVEX   { Encoding OpEnc = EncEVEX; }
+class EVEX_4V : EVEX { bit hasVEX_4V = 1; }
 class EVEX_K { bit hasEVEX_K = 1; }
 class EVEX_KZ : EVEX_K { bit hasEVEX_Z = 1; }
 class EVEX_B { bit hasEVEX_B = 1; }