]> granicus.if.org Git - llvm/commitdiff
[Mips] Move InstPrinter files to MCTargetDesc. NFC
authorRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 01:38:56 +0000 (01:38 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 01:38:56 +0000 (01:38 +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@360497 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
lib/Target/Mips/CMakeLists.txt
lib/Target/Mips/InstPrinter/CMakeLists.txt [deleted file]
lib/Target/Mips/InstPrinter/LLVMBuild.txt [deleted file]
lib/Target/Mips/LLVMBuild.txt
lib/Target/Mips/MCTargetDesc/CMakeLists.txt
lib/Target/Mips/MCTargetDesc/LLVMBuild.txt
lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp [moved from lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp with 99% similarity]
lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h [moved from lib/Target/Mips/InstPrinter/MipsInstPrinter.h with 96% similarity]
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsSEInstrInfo.cpp

index b67fb46cf66a1a5d06bea9cd54b55de1931cc5ec..251d13834112cbc06dedb928612880351dc1c2c6 100644 (file)
@@ -60,6 +60,5 @@ add_llvm_target(MipsCodeGen
 
 add_subdirectory(AsmParser)
 add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
 add_subdirectory(MCTargetDesc)
 add_subdirectory(TargetInfo)
diff --git a/lib/Target/Mips/InstPrinter/CMakeLists.txt b/lib/Target/Mips/InstPrinter/CMakeLists.txt
deleted file mode 100644 (file)
index 2a67fba..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-add_llvm_library(LLVMMipsAsmPrinter
-  MipsInstPrinter.cpp
-  )
diff --git a/lib/Target/Mips/InstPrinter/LLVMBuild.txt b/lib/Target/Mips/InstPrinter/LLVMBuild.txt
deleted file mode 100644 (file)
index 56fd708..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-;===- ./lib/Target/Mips/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 = MipsAsmPrinter
-parent = Mips
-required_libraries = MC Support
-add_to_library_groups = Mips
index 4119010efa9ae4567a5388557b3d7aa0e0c35302..133fb377bb2bd61ef5a86072871d9b296a5b885f 100644 (file)
@@ -15,7 +15,7 @@
 ;===------------------------------------------------------------------------===;
 
 [common]
-subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo
+subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
 
 [component_0]
 type = TargetGroup
@@ -36,7 +36,6 @@ required_libraries =
  CodeGen
  Core
  MC
- MipsAsmPrinter
  MipsDesc
  MipsInfo
  SelectionDAG
index c63af7c710cc2308f9333ab2128418d60c0dd363..043d41e0905b6f52fe6480982dd51ba79f9fb6a1 100644 (file)
@@ -4,6 +4,7 @@ add_llvm_library(LLVMMipsDesc
   MipsAsmBackend.cpp
   MipsELFObjectWriter.cpp
   MipsELFStreamer.cpp
+  MipsInstPrinter.cpp
   MipsMCAsmInfo.cpp
   MipsMCCodeEmitter.cpp
   MipsMCExpr.cpp
index 8782383825ad5b3e9a909da2ff710f09bfa186f6..048b1fe1cf8a57b55e73c7d7c09f443022920a60 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = MipsDesc
 parent = Mips
-required_libraries = MC MipsAsmPrinter MipsInfo Support
+required_libraries = MC MipsInfo Support
 add_to_library_groups = Mips
similarity index 99%
rename from lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
rename to lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp
index 91084512503fd6d159807b0bfd23869ebf236318..fb290a8e3f26977cc2515a94bcbd864b51550761 100644 (file)
@@ -11,8 +11,8 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsInstPrinter.h"
-#include "MCTargetDesc/MipsMCExpr.h"
 #include "MipsInstrInfo.h"
+#include "MipsMCExpr.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCInst.h"
similarity index 96%
rename from lib/Target/Mips/InstPrinter/MipsInstPrinter.h
rename to lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h
index 04bacbd6267b8a789a4afff47fa23b6268368444..a34a5c1d6418749ba6c25684fd1b73e19b8e57de 100644 (file)
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIB_TARGET_MIPS_INSTPRINTER_MIPSINSTPRINTER_H
-#define LLVM_LIB_TARGET_MIPS_INSTPRINTER_MIPSINSTPRINTER_H
+#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
+#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
 #include "llvm/MC/MCInstPrinter.h"
 
 namespace llvm {
index bffdebf84d4fc9d2143a279680bef31ae4c57917..84bb33784147eb31d707f1a3e12a7c76d4fc959c 100644 (file)
@@ -11,9 +11,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsMCTargetDesc.h"
-#include "InstPrinter/MipsInstPrinter.h"
 #include "MipsAsmBackend.h"
 #include "MipsELFStreamer.h"
+#include "MipsInstPrinter.h"
 #include "MipsMCAsmInfo.h"
 #include "MipsMCNaCl.h"
 #include "MipsTargetStreamer.h"
index ba645d2f6abb4bc667c0a0366ee2ff109401f8fe..bd978e9e6ae58db35c18664be1d645acfd4db328 100644 (file)
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsTargetStreamer.h"
-#include "InstPrinter/MipsInstPrinter.h"
+#include "MipsInstPrinter.h"
 #include "MCTargetDesc/MipsABIInfo.h"
 #include "MipsELFStreamer.h"
 #include "MipsMCExpr.h"
index 9ec0b0bd6db45b3d189191a68c3f463b9bf1de62..ad5cf656b52b39b74dfa7543865a3c2081901fa8 100644 (file)
@@ -12,9 +12,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsAsmPrinter.h"
-#include "InstPrinter/MipsInstPrinter.h"
 #include "MCTargetDesc/MipsABIInfo.h"
 #include "MCTargetDesc/MipsBaseInfo.h"
+#include "MCTargetDesc/MipsInstPrinter.h"
 #include "MCTargetDesc/MipsMCNaCl.h"
 #include "MCTargetDesc/MipsMCTargetDesc.h"
 #include "Mips.h"
index 448d8b2ecb02422a536132b50b79d3a47c5af09c..0ff09007da4b87e9d034da62b9bdad9776a1d3c0 100644 (file)
@@ -12,8 +12,8 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsISelLowering.h"
-#include "InstPrinter/MipsInstPrinter.h"
 #include "MCTargetDesc/MipsBaseInfo.h"
+#include "MCTargetDesc/MipsInstPrinter.h"
 #include "MCTargetDesc/MipsMCTargetDesc.h"
 #include "MipsCCState.h"
 #include "MipsInstrInfo.h"
index cb31a9f9720e6c9fd6e70970d1c91acd1a44b65f..4e49f5e7d9d1d2f9ab0cc2717c3c383dfc1ecd5c 100644 (file)
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "MipsSEInstrInfo.h"
-#include "InstPrinter/MipsInstPrinter.h"
+#include "MCTargetDesc/MipsInstPrinter.h"
 #include "MipsAnalyzeImmediate.h"
 #include "MipsMachineFunction.h"
 #include "MipsTargetMachine.h"