]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Move InstPrinter files to MCTargetDesc. NFC
authorRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 03:36:16 +0000 (03:36 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 03:36:16 +0000 (03:36 +0000)
For some targets, there is a circular dependency between InstPrinter and
MCTargetDesc.  Merging them together will fix this.  For the other targets,
the merging is to maintain consistency so all targets will have the same
structure.

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

12 files changed:
lib/Target/SystemZ/AsmParser/LLVMBuild.txt
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
lib/Target/SystemZ/CMakeLists.txt
lib/Target/SystemZ/InstPrinter/CMakeLists.txt [deleted file]
lib/Target/SystemZ/InstPrinter/LLVMBuild.txt [deleted file]
lib/Target/SystemZ/LLVMBuild.txt
lib/Target/SystemZ/MCTargetDesc/CMakeLists.txt
lib/Target/SystemZ/MCTargetDesc/LLVMBuild.txt
lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.cpp [moved from lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp with 100% similarity]
lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.h [moved from lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.h with 94% similarity]
lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
lib/Target/SystemZ/SystemZAsmPrinter.cpp

index cf093dae18faa086a216f74e0f1a4e2759d41df1..14d7ad48d5b5a64e438f622c0b9db62b2e5ee482 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = SystemZAsmParser
 parent = SystemZ
-required_libraries = MC MCParser Support SystemZDesc SystemZInfo SystemZAsmPrinter
+required_libraries = MC MCParser Support SystemZDesc SystemZInfo
 add_to_library_groups = SystemZ
index 779b46da9e64e4959630576d2d8c76530c952d44..36c9e6aa6dbee7b431831025b57a56cbf069559d 100644 (file)
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "InstPrinter/SystemZInstPrinter.h"
+#include "MCTargetDesc/SystemZInstPrinter.h"
 #include "MCTargetDesc/SystemZMCTargetDesc.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
index f83b4242fb4262e137f19169134646e86ffb8610..a772494e73a0246c561af20743a237e66a947bf5 100644 (file)
@@ -39,6 +39,5 @@ add_llvm_target(SystemZCodeGen
 
 add_subdirectory(AsmParser)
 add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
 add_subdirectory(MCTargetDesc)
 add_subdirectory(TargetInfo)
diff --git a/lib/Target/SystemZ/InstPrinter/CMakeLists.txt b/lib/Target/SystemZ/InstPrinter/CMakeLists.txt
deleted file mode 100644 (file)
index 21b023c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-add_llvm_library(LLVMSystemZAsmPrinter
-  SystemZInstPrinter.cpp
-  )
diff --git a/lib/Target/SystemZ/InstPrinter/LLVMBuild.txt b/lib/Target/SystemZ/InstPrinter/LLVMBuild.txt
deleted file mode 100644 (file)
index b1b8717..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-;===- ./lib/Target/SystemZ/InstPrinter/LLVMBuild.txt -----------*- Conf -*--===;
-;
-; 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 is an LLVMBuild description file for the components in this subdirectory.
-;
-; For more information on the LLVMBuild system, please see:
-;
-;   http://llvm.org/docs/LLVMBuild.html
-;
-;===------------------------------------------------------------------------===;
-
-[component_0]
-type = Library
-name = SystemZAsmPrinter
-parent = SystemZ
-required_libraries = MC Support
-add_to_library_groups = SystemZ
index 35919fea7288e4ae2557fd31c12b2877098f0720..8048101ecb5cebd14fabf58a89a277b523ddfb64 100644 (file)
@@ -15,7 +15,7 @@
 ;===------------------------------------------------------------------------===;
 
 [common]
-subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo
+subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
 
 [component_0]
 type = TargetGroup
@@ -30,5 +30,5 @@ has_jit = 1
 type = Library
 name = SystemZCodeGen
 parent = SystemZ
-required_libraries = Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support SystemZAsmPrinter SystemZDesc SystemZInfo Target
+required_libraries = Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support SystemZDesc SystemZInfo Target
 add_to_library_groups = SystemZ
index 1aa8c76e8bc6414661f6a55c60b6d29cfe0b1921..cb38b0dd3ad18ac9493b530c0b44a0bf77452694 100644 (file)
@@ -1,4 +1,5 @@
 add_llvm_library(LLVMSystemZDesc
+  SystemZInstPrinter.cpp
   SystemZMCAsmBackend.cpp
   SystemZMCAsmInfo.cpp
   SystemZMCCodeEmitter.cpp
index a159aa43e79016212d5bc65758de2fb326d56563..748fda4d39fe2a7943d3926af4e53d13bbafe640 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = SystemZDesc
 parent = SystemZ
-required_libraries = MC Support SystemZAsmPrinter SystemZInfo
+required_libraries = MC Support SystemZInfo
 add_to_library_groups = SystemZ
similarity index 94%
rename from lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.h
rename to lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.h
index 454b2c095e2f6721e6fd22e07fbf088aca657fdb..4235d4e217924e3fd01f7bef74023b2b4a071d7e 100644 (file)
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIB_TARGET_SYSTEMZ_INSTPRINTER_SYSTEMZINSTPRINTER_H
-#define LLVM_LIB_TARGET_SYSTEMZ_INSTPRINTER_SYSTEMZINSTPRINTER_H
+#ifndef LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZINSTPRINTER_H
+#define LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZINSTPRINTER_H
 
 #include "llvm/MC/MCInstPrinter.h"
 #include <cstdint>
@@ -74,4 +74,4 @@ private:
 
 } // end namespace llvm
 
-#endif // LLVM_LIB_TARGET_SYSTEMZ_INSTPRINTER_SYSTEMZINSTPRINTER_H
+#endif // LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZINSTPRINTER_H
index c440940a0a7d2dc4ace5d0f9aa6e34766687d403..ba5767a8dc4751069ebd70c11ce0293481ae1948 100644 (file)
@@ -7,7 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "SystemZMCTargetDesc.h"
-#include "InstPrinter/SystemZInstPrinter.h"
+#include "SystemZInstPrinter.h"
 #include "SystemZMCAsmInfo.h"
 #include "llvm/MC/MCDwarf.h"
 #include "llvm/MC/MCInstrInfo.h"
index e8aeca01ea0a0e134c87fd9f20993ddbcde8512a..d37310cfea7a93fa3eed5b9f28bb174646ede073 100644 (file)
@@ -12,7 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "SystemZAsmPrinter.h"
-#include "InstPrinter/SystemZInstPrinter.h"
+#include "MCTargetDesc/SystemZInstPrinter.h"
 #include "SystemZConstantPoolValue.h"
 #include "SystemZMCInstLower.h"
 #include "llvm/CodeGen/MachineModuleInfoImpls.h"