forked from OSchip/llvm-project
[NVPTX] 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: 360500
This commit is contained in:
parent
d05df0ef43
commit
4b620fcf0f
|
@ -37,6 +37,5 @@ set(NVPTXCodeGen_sources
|
|||
|
||||
add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
|
||||
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(MCTargetDesc)
|
||||
add_subdirectory(TargetInfo)
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
add_llvm_library(LLVMNVPTXAsmPrinter
|
||||
NVPTXInstPrinter.cpp
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
;===- ./lib/Target/NVPTX/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 = NVPTXAsmPrinter
|
||||
parent = NVPTX
|
||||
required_libraries = MC Support
|
||||
add_to_library_groups = NVPTX
|
|
@ -15,7 +15,7 @@
|
|||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[common]
|
||||
subdirectories = InstPrinter MCTargetDesc TargetInfo
|
||||
subdirectories = MCTargetDesc TargetInfo
|
||||
|
||||
[component_0]
|
||||
type = TargetGroup
|
||||
|
@ -27,5 +27,5 @@ has_asmprinter = 1
|
|||
type = Library
|
||||
name = NVPTXCodeGen
|
||||
parent = NVPTX
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core IPO MC NVPTXAsmPrinter NVPTXDesc NVPTXInfo Scalar SelectionDAG Support Target TransformUtils Vectorize
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core IPO MC NVPTXDesc NVPTXInfo Scalar SelectionDAG Support Target TransformUtils Vectorize
|
||||
add_to_library_groups = NVPTX
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
add_llvm_library(LLVMNVPTXDesc
|
||||
NVPTXInstPrinter.cpp
|
||||
NVPTXMCAsmInfo.cpp
|
||||
NVPTXMCTargetDesc.cpp
|
||||
NVPTXTargetStreamer.cpp
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
type = Library
|
||||
name = NVPTXDesc
|
||||
parent = NVPTX
|
||||
required_libraries = MC NVPTXAsmPrinter NVPTXInfo Support
|
||||
required_libraries = MC NVPTXInfo Support
|
||||
add_to_library_groups = NVPTX
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "InstPrinter/NVPTXInstPrinter.h"
|
||||
#include "MCTargetDesc/NVPTXInstPrinter.h"
|
||||
#include "MCTargetDesc/NVPTXBaseInfo.h"
|
||||
#include "NVPTX.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
|
@ -10,8 +10,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIB_TARGET_NVPTX_INSTPRINTER_NVPTXINSTPRINTER_H
|
||||
#define LLVM_LIB_TARGET_NVPTX_INSTPRINTER_NVPTXINSTPRINTER_H
|
||||
#ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXINSTPRINTER_H
|
||||
#define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXINSTPRINTER_H
|
||||
|
||||
#include "llvm/MC/MCInstPrinter.h"
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "InstPrinter/NVPTXInstPrinter.h"
|
||||
#include "NVPTXInstPrinter.h"
|
||||
#include "NVPTXMCAsmInfo.h"
|
||||
#include "NVPTXMCTargetDesc.h"
|
||||
#include "NVPTXTargetStreamer.h"
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "NVPTXAsmPrinter.h"
|
||||
#include "InstPrinter/NVPTXInstPrinter.h"
|
||||
#include "MCTargetDesc/NVPTXBaseInfo.h"
|
||||
#include "MCTargetDesc/NVPTXInstPrinter.h"
|
||||
#include "MCTargetDesc/NVPTXMCAsmInfo.h"
|
||||
#include "MCTargetDesc/NVPTXTargetStreamer.h"
|
||||
#include "NVPTX.h"
|
||||
|
|
Loading…
Reference in New Issue