forked from OSchip/llvm-project
move all the target's asmprinters into the main target. The piece
that should be split out is the InstPrinter (if a target is mc'ized). This change makes all the targets be consistent. llvm-svn: 119056
This commit is contained in:
parent
b99f39b9f6
commit
66031ed839
|
@ -328,11 +328,6 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|||
message(STATUS "Targeting ${t}")
|
||||
add_subdirectory(lib/Target/${t})
|
||||
add_subdirectory(lib/Target/${t}/TargetInfo)
|
||||
if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
|
||||
add_subdirectory(lib/Target/${t}/AsmPrinter)
|
||||
set(LLVM_ENUM_ASM_PRINTERS
|
||||
"${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
|
||||
endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
|
||||
if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/InstPrinter/CMakeLists.txt )
|
||||
add_subdirectory(lib/Target/${t}/InstPrinter)
|
||||
set(LLVM_ENUM_ASM_PRINTERS
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMAlphaAsmPrinter
|
||||
AlphaAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMAlphaAsmPrinter AlphaCodeGenTable_gen)
|
|
@ -1,15 +0,0 @@
|
|||
##===- lib/Target/Alpha/AsmPrinter/Makefile ----------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMAlphaAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' alpha target directory to grab private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -11,6 +11,7 @@ tablegen(AlphaGenCallingConv.inc -gen-callingconv)
|
|||
tablegen(AlphaGenSubtarget.inc -gen-subtarget)
|
||||
|
||||
add_llvm_target(AlphaCodeGen
|
||||
AlphaAsmPrinter.cpp
|
||||
AlphaBranchSelector.cpp
|
||||
AlphaInstrInfo.cpp
|
||||
AlphaISelDAGToDAG.cpp
|
||||
|
|
|
@ -18,6 +18,6 @@ BUILT_SOURCES = AlphaGenRegisterInfo.h.inc AlphaGenRegisterNames.inc \
|
|||
AlphaGenAsmWriter.inc AlphaGenDAGISel.inc \
|
||||
AlphaGenCallingConv.inc AlphaGenSubtarget.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMBlackfinAsmPrinter
|
||||
BlackfinAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMBlackfinAsmPrinter BlackfinCodeGenTable_gen)
|
|
@ -1,16 +0,0 @@
|
|||
##===- lib/Target/Blackfin/AsmPrinter/Makefile -------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMBlackfinAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' Blackfin target directory to grab private
|
||||
# headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -12,6 +12,7 @@ tablegen(BlackfinGenCallingConv.inc -gen-callingconv)
|
|||
tablegen(BlackfinGenIntrinsics.inc -gen-tgt-intrinsic)
|
||||
|
||||
add_llvm_target(BlackfinCodeGen
|
||||
BlackfinAsmPrinter.cpp
|
||||
BlackfinInstrInfo.cpp
|
||||
BlackfinIntrinsicInfo.cpp
|
||||
BlackfinISelDAGToDAG.cpp
|
||||
|
|
|
@ -18,7 +18,7 @@ BUILT_SOURCES = BlackfinGenRegisterInfo.h.inc BlackfinGenRegisterNames.inc \
|
|||
BlackfinGenDAGISel.inc BlackfinGenSubtarget.inc \
|
||||
BlackfinGenCallingConv.inc BlackfinGenIntrinsics.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
)
|
||||
|
||||
add_llvm_library(LLVMCellSPUAsmPrinter
|
||||
SPUAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMCellSPUAsmPrinter CellSPUCodeGenTable_gen)
|
|
@ -1,17 +0,0 @@
|
|||
##===- lib/Target/CellSPU/AsmPrinter/Makefile --------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMCellSPUAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' CellSPU target directory to grab
|
||||
# private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -12,6 +12,7 @@ tablegen(SPUGenSubtarget.inc -gen-subtarget)
|
|||
tablegen(SPUGenCallingConv.inc -gen-callingconv)
|
||||
|
||||
add_llvm_target(CellSPUCodeGen
|
||||
SPUAsmPrinter.cpp
|
||||
SPUFrameInfo.cpp
|
||||
SPUHazardRecognizers.cpp
|
||||
SPUInstrInfo.cpp
|
||||
|
|
|
@ -16,6 +16,6 @@ BUILT_SOURCES = SPUGenInstrNames.inc SPUGenRegisterNames.inc \
|
|||
SPUGenInstrInfo.inc SPUGenDAGISel.inc \
|
||||
SPUGenSubtarget.inc SPUGenCallingConv.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
)
|
||||
|
||||
add_llvm_library(LLVMMipsAsmPrinter
|
||||
MipsAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMMipsAsmPrinter MipsCodeGenTable_gen)
|
|
@ -1,17 +0,0 @@
|
|||
##===- lib/Target/Mips/AsmPrinter/Makefile -----------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMMipsAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' Mips target directory to grab
|
||||
# private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -11,6 +11,7 @@ tablegen(MipsGenCallingConv.inc -gen-callingconv)
|
|||
tablegen(MipsGenSubtarget.inc -gen-subtarget)
|
||||
|
||||
add_llvm_target(MipsCodeGen
|
||||
MipsAsmPrinter.cpp
|
||||
MipsDelaySlotFiller.cpp
|
||||
MipsInstrInfo.cpp
|
||||
MipsISelDAGToDAG.cpp
|
||||
|
|
|
@ -18,7 +18,7 @@ BUILT_SOURCES = MipsGenRegisterInfo.h.inc MipsGenRegisterNames.inc \
|
|||
MipsGenDAGISel.inc MipsGenCallingConv.inc \
|
||||
MipsGenSubtarget.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMPTXAsmPrinter
|
||||
PTXAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMPTXAsmPrinter PTXCodeGenTable_gen)
|
|
@ -1,15 +0,0 @@
|
|||
##===- lib/Target/PTX/AsmPrinter/Makefile ------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMPTXAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' PTX target directory to grab private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -10,6 +10,7 @@ tablegen(PTXGenRegisterNames.inc -gen-register-enums)
|
|||
tablegen(PTXGenSubtarget.inc -gen-subtarget)
|
||||
|
||||
add_llvm_target(PTXCodeGen
|
||||
PTXAsmPrinter.cpp
|
||||
PTXISelDAGToDAG.cpp
|
||||
PTXISelLowering.cpp
|
||||
PTXInstrInfo.cpp
|
||||
|
|
|
@ -21,6 +21,6 @@ BUILT_SOURCES = PTXGenAsmWriter.inc \
|
|||
PTXGenRegisterNames.inc \
|
||||
PTXGenSubtarget.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMSparcAsmPrinter
|
||||
SparcAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMSparcAsmPrinter SparcCodeGenTable_gen)
|
|
@ -1,15 +0,0 @@
|
|||
##===- lib/Target/Sparc/AsmPrinter/Makefile ----------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMSparcAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' Sparc target directory to grab private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -13,6 +13,7 @@ tablegen(SparcGenCallingConv.inc -gen-callingconv)
|
|||
add_llvm_target(SparcCodeGen
|
||||
DelaySlotFiller.cpp
|
||||
FPMover.cpp
|
||||
SparcAsmPrinter.cpp
|
||||
SparcInstrInfo.cpp
|
||||
SparcISelDAGToDAG.cpp
|
||||
SparcISelLowering.cpp
|
||||
|
|
|
@ -17,7 +17,7 @@ BUILT_SOURCES = SparcGenRegisterInfo.h.inc SparcGenRegisterNames.inc \
|
|||
SparcGenInstrInfo.inc SparcGenAsmWriter.inc \
|
||||
SparcGenDAGISel.inc SparcGenSubtarget.inc SparcGenCallingConv.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMSystemZAsmPrinter
|
||||
SystemZAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMSystemZAsmPrinter SystemZCodeGenTable_gen)
|
|
@ -1,15 +0,0 @@
|
|||
##===- lib/Target/SystemZ/AsmPrinter/Makefile --------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMSystemZAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' SystemZ target directory to grab private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -11,6 +11,7 @@ tablegen(SystemZGenCallingConv.inc -gen-callingconv)
|
|||
tablegen(SystemZGenSubtarget.inc -gen-subtarget)
|
||||
|
||||
add_llvm_target(SystemZCodeGen
|
||||
SystemZAsmPrinter.cpp
|
||||
SystemZISelDAGToDAG.cpp
|
||||
SystemZISelLowering.cpp
|
||||
SystemZInstrInfo.cpp
|
||||
|
|
|
@ -17,7 +17,7 @@ BUILT_SOURCES = SystemZGenRegisterInfo.h.inc SystemZGenRegisterNames.inc \
|
|||
SystemZGenInstrInfo.inc SystemZGenAsmWriter.inc \
|
||||
SystemZGenDAGISel.inc SystemZGenSubtarget.inc SystemZGenCallingConv.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMXCoreAsmPrinter
|
||||
XCoreAsmPrinter.cpp
|
||||
)
|
||||
add_dependencies(LLVMXCoreAsmPrinter XCoreCodeGenTable_gen)
|
|
@ -1,16 +0,0 @@
|
|||
##===- lib/Target/XCore/AsmPrinter/Makefile ----------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMXCoreAsmPrinter
|
||||
|
||||
# Hack: we need to include 'main' XCore target directory to grab private headers
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
|
@ -11,6 +11,7 @@ tablegen(XCoreGenCallingConv.inc -gen-callingconv)
|
|||
tablegen(XCoreGenSubtarget.inc -gen-subtarget)
|
||||
|
||||
add_llvm_target(XCoreCodeGen
|
||||
XCoreAsmPrinter.cpp
|
||||
XCoreFrameInfo.cpp
|
||||
XCoreInstrInfo.cpp
|
||||
XCoreISelDAGToDAG.cpp
|
||||
|
|
|
@ -18,7 +18,7 @@ BUILT_SOURCES = XCoreGenRegisterInfo.h.inc XCoreGenRegisterNames.inc \
|
|||
XCoreGenDAGISel.inc XCoreGenCallingConv.inc \
|
||||
XCoreGenSubtarget.inc
|
||||
|
||||
DIRS = AsmPrinter TargetInfo
|
||||
DIRS = TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
Loading…
Reference in New Issue