Use uint16_t to store register overlaps to reduce static data.
[oota-llvm.git] / lib / Target / Sparc / Makefile
index 31d379ae0e0b4af661566f7fb252d9a529f15530..4b81ada956f2ece540d7c344e03640909d529081 100644 (file)
@@ -1,42 +1,22 @@
-##===- lib/Target/Sparc/V8/Makefile ------------------------*- Makefile -*-===##
-# 
+##===- lib/Target/Sparc/Makefile ---------------------------*- Makefile -*-===##
+#
 #                     The LLVM Compiler Infrastructure
 #
-# This file was developed by the LLVM research group and is distributed under
-# the University of Illinois Open Source License. See LICENSE.TXT for details.
-# 
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
 ##===----------------------------------------------------------------------===##
-LEVEL = ../../../..
-LIBRARYNAME = sparcv8
-include $(LEVEL)/Makefile.common
 
-TDFILES := $(wildcard $(SourceDir)/*.td) $(SourceDir)/../../Target.td
-TDFILE  := $(SourceDir)/SparcV8.td
+LEVEL = ../../..
+LIBRARYNAME = LLVMSparcCodeGen
+TARGET = Sparc
 
 # Make sure that tblgen is run, first thing.
-$(SourceDepend): SparcV8GenRegisterInfo.h.inc SparcV8GenRegisterNames.inc \
-                 SparcV8GenRegisterInfo.inc SparcV8GenInstrNames.inc \
-                 SparcV8GenInstrInfo.inc
-
-SparcV8GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
-       @echo "Building SparcV8.td register names with tblgen"
-       $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-enums -o $@
+BUILT_SOURCES = SparcGenRegisterInfo.inc SparcGenInstrInfo.inc \
+               SparcGenAsmWriter.inc SparcGenDAGISel.inc \
+               SparcGenSubtargetInfo.inc SparcGenCallingConv.inc
 
-SparcV8GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
-       @echo "Building SparcV8.td register information header with tblgen"
-       $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc-header -o $@
+DIRS = TargetInfo MCTargetDesc
 
-SparcV8GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
-       @echo "Building SparcV8.td register information implementation with tblgen"
-       $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc -o $@
-
-SparcV8GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
-       @echo "Building SparcV8.td instruction names with tblgen"
-       $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-enums -o $@
-
-SparcV8GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
-       @echo "Building SparcV8.td instruction information with tblgen"
-       $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-desc -o $@
+include $(LEVEL)/Makefile.common
 
-clean::
-       $(VERB) rm -f *.inc