[llvm] 30c6839 - [X86][AsmParser] Move include forward to reduce unnecessary declaration, NFCI
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Sat May 6 19:08:28 PDT 2023
Author: Shengchen Kan
Date: 2023-05-07T09:48:53+08:00
New Revision: 30c6839c84a59da1bb5d3e754842d2133585f3a9
URL: https://github.com/llvm/llvm-project/commit/30c6839c84a59da1bb5d3e754842d2133585f3a9
DIFF: https://github.com/llvm/llvm-project/commit/30c6839c84a59da1bb5d3e754842d2133585f3a9.diff
LOG: [X86][AsmParser] Move include forward to reduce unnecessary declaration, NFCI
Added:
Modified:
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 2c18966ac0fce..0a071d567b9ee 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1282,12 +1282,9 @@ class X86AsmParser : public MCTargetAsmParser {
};
} // end anonymous namespace
-/// @name Auto-generated Match Functions
-/// {
-
-static unsigned MatchRegisterName(StringRef Name);
-
-/// }
+#define GET_REGISTER_MATCHER
+#define GET_SUBTARGET_FEATURE_NAME
+#include "X86GenAsmMatcher.inc"
static bool CheckBaseRegAndIndexRegAndScale(unsigned BaseReg, unsigned IndexReg,
unsigned Scale, bool Is64BitMode,
@@ -3929,8 +3926,6 @@ bool X86AsmParser::validateInstruction(MCInst &Inst, const OperandVector &Ops) {
return false;
}
-static const char *getSubtargetFeatureName(uint64_t Val);
-
void X86AsmParser::emitWarningForSpecialLVIInstruction(SMLoc Loc) {
Warning(Loc, "Instruction may be vulnerable to LVI and "
"requires manual mitigation");
@@ -4985,7 +4980,5 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeX86AsmParser() {
RegisterMCAsmParser<X86AsmParser> Y(getTheX86_64Target());
}
-#define GET_REGISTER_MATCHER
#define GET_MATCHER_IMPLEMENTATION
-#define GET_SUBTARGET_FEATURE_NAME
#include "X86GenAsmMatcher.inc"
More information about the llvm-commits
mailing list