Make the sparc.burg file be a little more flexible and rubust in the fact of
authorChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 17:25:31 +0000 (17:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 17:25:31 +0000 (17:25 +0000)
renumbering of instructions.  It is still horribly broken and grossly dependant on the number of instructions, but now it is a least a little better.

Oh yeah it also works now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@793 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/Makefile
lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 82404c85b881a9b4ed981a8ef1ced1c778430e68..018dd8af48c4d85cc0c546a5b64a156727f8ea2d 100644 (file)
@@ -3,11 +3,17 @@ LIBRARYNAME = sparc
 
 ## List source files in link order
 Source  = \
-         Sparc.o \
-         Sparc.burm.o \
-         SparcInstrSelection.o \
-         SparcRegClassInfo.o \
-         SparcRegInfo.o EmitAssembly.o
+         Sparc.cpp \
+         Sparc.burm.cpp \
+         SparcInstrSelection.cpp \
+         SparcRegClassInfo.cpp \
+         SparcRegInfo.cpp EmitAssembly.cpp
 
 include $(LEVEL)/Makefile.common
 
+Debug/Sparc.burg.in1 : Sparc.burg.in
+       g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
+
+Debug/Sparc.burg : Debug/Sparc.burg.in1
+       g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
+
index dac4d208da7e733e3dca637f842b307b01201df9..b1b99bbecd0b3b0130934e50a719f95fde81016c 100644 (file)
@@ -35,7 +35,6 @@ const MachineInstrDescriptor SparcMachineInstrDesc[] = {
 TargetMachine *allocateSparcTargetMachine() { return new UltraSparc(); }
 
 
-
 //----------------------------------------------------------------------------
 // Entry point for register allocation for a module
 //----------------------------------------------------------------------------