//==- X86MnemonicTables.cpp - Generate mnemonic extraction tables. -*- C++ -*-// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This tablegen backend is responsible for emitting tables that group // instructions by their mnemonic name wrt AsmWriter Variant (e.g. isADD, etc). // //===----------------------------------------------------------------------===// #include "Common/CodeGenInstruction.h" #include "Common/CodeGenTarget.h" #include "X86RecognizableInstr.h" #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" usingnamespacellvm; namespace { class X86MnemonicTablesEmitter { … }; void X86MnemonicTablesEmitter::run(raw_ostream &OS) { … } } // namespace static TableGen::Emitter::OptClass<X86MnemonicTablesEmitter> X("gen-x86-mnemonic-tables", "Generate X86 mnemonic tables");