Fix layering of CodeGen/TargetOpcodes.def by moving it to Support

It's also used by utils/TableGen so needs to reside somewhere common to
TableGen and CodeGen.

llvm-svn: 328396
This commit is contained in:
David Blaikie 2018-03-23 23:58:27 +00:00
parent 13e77db2df
commit b48ba4e6bc
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace TargetOpcode {
enum {
#define HANDLE_TARGET_OPCODE(OPC) OPC,
#define HANDLE_TARGET_OPCODE_MARKER(IDENT, OPC) IDENT = OPC,
#include "llvm/CodeGen/TargetOpcodes.def"
#include "llvm/Support/TargetOpcodes.def"
};
} // end namespace TargetOpcode

View File

@ -1,4 +1,4 @@
//===-- llvm/CodeGen/TargetOpcodes.def - Target Indep Opcodes ---*- C++ -*-===//
//===-- llvm/Support/TargetOpcodes.def - Target Indep Opcodes ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//

View File

@ -28,7 +28,6 @@ module LLVM_Backend {
textual header "CodeGen/CommandFlags.def"
textual header "CodeGen/DIEValue.def"
textual header "CodeGen/RuntimeLibcalls.def"
textual header "CodeGen/TargetOpcodes.def"
}
module Target {
@ -303,6 +302,7 @@ module LLVM_Utils {
// These are intended for textual inclusion.
textual header "Support/ARMTargetParser.def"
textual header "Support/AArch64TargetParser.def"
textual header "Support/TargetOpcodes.def"
textual header "Support/X86TargetParser.def"
}

View File

@ -351,7 +351,7 @@ GetInstByName(const char *Name,
static const char *const FixedInstrs[] = {
#define HANDLE_TARGET_OPCODE(OPC) #OPC,
#include "llvm/CodeGen/TargetOpcodes.def"
#include "llvm/Support/TargetOpcodes.def"
nullptr};
unsigned CodeGenTarget::getNumFixedInstructions() {