From 7f793b102c9a11eddcf247da8043a3556581e7c1 Mon Sep 17 00:00:00 2001 From: "Liu, Chen3" Date: Fri, 10 Sep 2021 11:02:12 +0800 Subject: [PATCH] [X86][NFC] Remove unused encoding string: VK[1/2/4/8/16]PAIR This is also a bug. The VK[1/2/4/8/16]PAIR here should be VK[1/2/4/8/16]Pair which has its custom PrintMethod and ParserMatchClass. However we don't have any instructions using vvvv and ModR/M.REG field so this issue is not exposed. Differential Revision: https://reviews.llvm.org/D109564 --- llvm/utils/TableGen/X86RecognizableInstr.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp index 02d7fd8..1a918c0 100644 --- a/llvm/utils/TableGen/X86RecognizableInstr.cpp +++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp @@ -1065,11 +1065,6 @@ RecognizableInstr::rmRegisterEncodingFromString(const std::string &s, ENCODING("VK16", ENCODING_RM) ENCODING("VK32", ENCODING_RM) ENCODING("VK64", ENCODING_RM) - ENCODING("VK1PAIR", ENCODING_RM) - ENCODING("VK2PAIR", ENCODING_RM) - ENCODING("VK4PAIR", ENCODING_RM) - ENCODING("VK8PAIR", ENCODING_RM) - ENCODING("VK16PAIR", ENCODING_RM) ENCODING("BNDR", ENCODING_RM) ENCODING("TILE", ENCODING_RM) errs() << "Unhandled R/M register encoding " << s << "\n"; @@ -1148,11 +1143,6 @@ RecognizableInstr::vvvvRegisterEncodingFromString(const std::string &s, ENCODING("VK16", ENCODING_VVVV) ENCODING("VK32", ENCODING_VVVV) ENCODING("VK64", ENCODING_VVVV) - ENCODING("VK1PAIR", ENCODING_VVVV) - ENCODING("VK2PAIR", ENCODING_VVVV) - ENCODING("VK4PAIR", ENCODING_VVVV) - ENCODING("VK8PAIR", ENCODING_VVVV) - ENCODING("VK16PAIR", ENCODING_VVVV) ENCODING("TILE", ENCODING_VVVV) errs() << "Unhandled VEX.vvvv register encoding " << s << "\n"; llvm_unreachable("Unhandled VEX.vvvv register encoding"); -- 2.7.4