OSDN Git Service

Fix layering of CodeGen/TargetOpcodes.def by moving it to Support
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 23 Mar 2018 23:58:27 +0000 (23:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 23 Mar 2018 23:58:27 +0000 (23:58 +0000)
It's also used by utils/TableGen so needs to reside somewhere common to
TableGen and CodeGen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328396 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/TargetOpcodes.h
include/llvm/Support/TargetOpcodes.def [moved from include/llvm/CodeGen/TargetOpcodes.def with 99% similarity]
include/llvm/module.modulemap
utils/TableGen/CodeGenTarget.cpp

index 3ca31a9..d0d959c 100644 (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
 
similarity index 99%
rename from include/llvm/CodeGen/TargetOpcodes.def
rename to include/llvm/Support/TargetOpcodes.def
index 00bfbee..0614a00 100644 (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
 //
index 20c8516..0836dba 100644 (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"
   }
 
index 41f0e04..32dd8d5 100644 (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() {