1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[Mips] Move InstPrinter files to MCTargetDesc. NFC

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.

llvm-svn: 360497
This commit is contained in:
Richard Trieu 2019-05-11 01:38:56 +00:00
parent 8c588c9c24
commit 2fdd2393ce
13 changed files with 11 additions and 37 deletions

View File

@ -60,6 +60,5 @@ add_llvm_target(MipsCodeGen
add_subdirectory(AsmParser) add_subdirectory(AsmParser)
add_subdirectory(Disassembler) add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc) add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo) add_subdirectory(TargetInfo)

View File

@ -1,3 +0,0 @@
add_llvm_library(LLVMMipsAsmPrinter
MipsInstPrinter.cpp
)

View File

@ -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

View File

@ -15,7 +15,7 @@
;===------------------------------------------------------------------------===; ;===------------------------------------------------------------------------===;
[common] [common]
subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
[component_0] [component_0]
type = TargetGroup type = TargetGroup
@ -36,7 +36,6 @@ required_libraries =
CodeGen CodeGen
Core Core
MC MC
MipsAsmPrinter
MipsDesc MipsDesc
MipsInfo MipsInfo
SelectionDAG SelectionDAG

View File

@ -4,6 +4,7 @@ add_llvm_library(LLVMMipsDesc
MipsAsmBackend.cpp MipsAsmBackend.cpp
MipsELFObjectWriter.cpp MipsELFObjectWriter.cpp
MipsELFStreamer.cpp MipsELFStreamer.cpp
MipsInstPrinter.cpp
MipsMCAsmInfo.cpp MipsMCAsmInfo.cpp
MipsMCCodeEmitter.cpp MipsMCCodeEmitter.cpp
MipsMCExpr.cpp MipsMCExpr.cpp

View File

@ -18,5 +18,5 @@
type = Library type = Library
name = MipsDesc name = MipsDesc
parent = Mips parent = Mips
required_libraries = MC MipsAsmPrinter MipsInfo Support required_libraries = MC MipsInfo Support
add_to_library_groups = Mips add_to_library_groups = Mips

View File

@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsInstPrinter.h" #include "MipsInstPrinter.h"
#include "MCTargetDesc/MipsMCExpr.h"
#include "MipsInstrInfo.h" #include "MipsInstrInfo.h"
#include "MipsMCExpr.h"
#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringExtras.h"
#include "llvm/MC/MCExpr.h" #include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h" #include "llvm/MC/MCInst.h"

View File

@ -10,8 +10,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_MIPS_INSTPRINTER_MIPSINSTPRINTER_H #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
#define LLVM_LIB_TARGET_MIPS_INSTPRINTER_MIPSINSTPRINTER_H #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
#include "llvm/MC/MCInstPrinter.h" #include "llvm/MC/MCInstPrinter.h"
namespace llvm { namespace llvm {

View File

@ -11,9 +11,9 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsMCTargetDesc.h" #include "MipsMCTargetDesc.h"
#include "InstPrinter/MipsInstPrinter.h"
#include "MipsAsmBackend.h" #include "MipsAsmBackend.h"
#include "MipsELFStreamer.h" #include "MipsELFStreamer.h"
#include "MipsInstPrinter.h"
#include "MipsMCAsmInfo.h" #include "MipsMCAsmInfo.h"
#include "MipsMCNaCl.h" #include "MipsMCNaCl.h"
#include "MipsTargetStreamer.h" #include "MipsTargetStreamer.h"

View File

@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsTargetStreamer.h" #include "MipsTargetStreamer.h"
#include "InstPrinter/MipsInstPrinter.h" #include "MipsInstPrinter.h"
#include "MCTargetDesc/MipsABIInfo.h" #include "MCTargetDesc/MipsABIInfo.h"
#include "MipsELFStreamer.h" #include "MipsELFStreamer.h"
#include "MipsMCExpr.h" #include "MipsMCExpr.h"

View File

@ -12,9 +12,9 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsAsmPrinter.h" #include "MipsAsmPrinter.h"
#include "InstPrinter/MipsInstPrinter.h"
#include "MCTargetDesc/MipsABIInfo.h" #include "MCTargetDesc/MipsABIInfo.h"
#include "MCTargetDesc/MipsBaseInfo.h" #include "MCTargetDesc/MipsBaseInfo.h"
#include "MCTargetDesc/MipsInstPrinter.h"
#include "MCTargetDesc/MipsMCNaCl.h" #include "MCTargetDesc/MipsMCNaCl.h"
#include "MCTargetDesc/MipsMCTargetDesc.h" #include "MCTargetDesc/MipsMCTargetDesc.h"
#include "Mips.h" #include "Mips.h"

View File

@ -12,8 +12,8 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsISelLowering.h" #include "MipsISelLowering.h"
#include "InstPrinter/MipsInstPrinter.h"
#include "MCTargetDesc/MipsBaseInfo.h" #include "MCTargetDesc/MipsBaseInfo.h"
#include "MCTargetDesc/MipsInstPrinter.h"
#include "MCTargetDesc/MipsMCTargetDesc.h" #include "MCTargetDesc/MipsMCTargetDesc.h"
#include "MipsCCState.h" #include "MipsCCState.h"
#include "MipsInstrInfo.h" #include "MipsInstrInfo.h"

View File

@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "MipsSEInstrInfo.h" #include "MipsSEInstrInfo.h"
#include "InstPrinter/MipsInstPrinter.h" #include "MCTargetDesc/MipsInstPrinter.h"
#include "MipsAnalyzeImmediate.h" #include "MipsAnalyzeImmediate.h"
#include "MipsMachineFunction.h" #include "MipsMachineFunction.h"
#include "MipsTargetMachine.h" #include "MipsTargetMachine.h"