forked from OSchip/llvm-project
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:
parent
13e77db2df
commit
b48ba4e6bc
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- llvm/CodeGen/TargetOpcodes.def - Target Indep Opcodes ---*- C++ -*-===//
|
||||
//===-- llvm/Support/TargetOpcodes.def - Target Indep Opcodes ---*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue