From 56d749a86be5f117e78a659a13a46203b87efb11 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 12 Feb 2014 08:02:29 +0000 Subject: [PATCH] Mark XACQUIRE_PREFIX/XRELEASE_PREFIX as isAsmParserOnly so they'll disappear from the disassembler table build without custom filtering code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201215 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrTSX.td | 3 ++- utils/TableGen/X86RecognizableInstr.cpp | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/Target/X86/X86InstrTSX.td b/lib/Target/X86/X86InstrTSX.td index 59a6f1e376f..4940efc4443 100644 --- a/lib/Target/X86/X86InstrTSX.td +++ b/lib/Target/X86/X86InstrTSX.td @@ -40,7 +40,8 @@ def XABORT : Ii8<0xc6, MRM_F8, (outs), (ins i8imm:$imm), // HLE prefixes +let isAsmParserOnly = 1 in { def XACQUIRE_PREFIX : I<0xF2, RawFrm, (outs), (ins), "xacquire", []>, Requires<[HasHLE]>; - def XRELEASE_PREFIX : I<0xF3, RawFrm, (outs), (ins), "xrelease", []>, Requires<[HasHLE]>; +} diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp index 48d8fdc4d9a..643823450f2 100644 --- a/utils/TableGen/X86RecognizableInstr.cpp +++ b/utils/TableGen/X86RecognizableInstr.cpp @@ -413,12 +413,6 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const { if (Name == "VMASKMOVDQU64") return FILTER_WEAK; - // XACQUIRE and XRELEASE reuse REPNE and REP respectively. - // For now, just prefer the REP versions. - if (Name == "XACQUIRE_PREFIX" || - Name == "XRELEASE_PREFIX") - return FILTER_WEAK; - return FILTER_NORMAL; }