summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.h
diff options
context:
space:
mode:
authorAyman Musa <ayman.musa@intel.com>2017-02-20 08:27:54 +0000
committerAyman Musa <ayman.musa@intel.com>2017-02-20 08:27:54 +0000
commit51ffeab8c8bd9adf905b639a9dba35b1fc51fccb (patch)
treef3a87344982d45e2ea7af0544bf5b5e404bea6ec /llvm/utils/TableGen/X86RecognizableInstr.h
parentf96465b9b8d9439cc89f341319fb9ed00fddb4da (diff)
downloadbcm5719-llvm-51ffeab8c8bd9adf905b639a9dba35b1fc51fccb.tar.gz
bcm5719-llvm-51ffeab8c8bd9adf905b639a9dba35b1fc51fccb.zip
[X86][AVX] Extend hasVEX_WPrefix bit to accept WIG value (W Ignore) + update all AVX instructions with the new value.
Add WIG value to all of AVX instructions which ignore the W-bit in their encoding, instead of giving them the default value of 0. This patch is needed for a follow up work on EVEX2VEX pass (replacing EVEX encoded instructions with their corresponding VEX version when possible). Differential Revision: https://reviews.llvm.org/D29876 llvm-svn: 295643
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.h')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.h b/llvm/utils/TableGen/X86RecognizableInstr.h
index 2e611587cc3..91ed928540c 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.h
+++ b/llvm/utils/TableGen/X86RecognizableInstr.h
@@ -55,8 +55,8 @@ private:
bool HasREX_WPrefix;
/// The hasVEX_4V field from the record
bool HasVEX_4V;
- /// The hasVEX_WPrefix field from the record
- bool HasVEX_WPrefix;
+ /// The VEX_WPrefix field from the record
+ uint8_t VEX_WPrefix;
/// Inferred from the operands; indicates whether the L bit in the VEX prefix is set
bool HasVEX_LPrefix;
/// The ignoreVEX_L field from the record
OpenPOWER on IntegriCloud