[llvm-commits] CVS: llvm/lib/Target/SparcV9/Makefile SparcV9CodeEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Dec 16 08:48:08 PST 2004



Changes in directory llvm/lib/Target/SparcV9:

Makefile updated: 1.52 -> 1.53
SparcV9CodeEmitter.cpp updated: 1.78 -> 1.79
---
Log message:

Use the rules in Makefile.rules to build SparcV9GenCodeEmitter.inc instead
of custom rules.


---
Diffs of the changes:  (+11 -14)

Index: llvm/lib/Target/SparcV9/Makefile
diff -u llvm/lib/Target/SparcV9/Makefile:1.52 llvm/lib/Target/SparcV9/Makefile:1.53
--- llvm/lib/Target/SparcV9/Makefile:1.52	Sat Oct 30 04:19:36 2004
+++ llvm/lib/Target/SparcV9/Makefile	Thu Dec 16 10:47:56 2004
@@ -10,8 +10,10 @@
 LIBRARYNAME = LLVMSparcV9
 PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
 
+TARGET = SparcV9
+
 BUILT_SOURCES = \
-  SparcV9CodeEmitter.inc \
+  SparcV9GenCodeEmitter.inc \
   SparcV9.burm.cpp 
 
 include $(LEVEL)/Makefile.common
@@ -28,10 +30,6 @@
 	$(Echo) "Burging `basename $<`"
 	$(Verb) $(BURG) -I $< -o $@
 
-SparcV9CodeEmitter.inc: $(BUILD_SRC_DIR)/SparcV9.td $(TDFiles) $(TBLGEN)
-	$(Echo) "Running tblgen on SparcV9.td"
-	$(Verb) $(TableGen) -gen-emitter -o $@ $<
-
 clean::
-	$(Verb) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp
+	$(Verb) $(RM) -f SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp
 


Index: llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.78 llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.79
--- llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp:1.78	Tue Nov 23 09:57:01 2004
+++ llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp	Thu Dec 16 10:47:56 2004
@@ -9,14 +9,13 @@
 //
 // SPARC-specific backend for emitting machine code to memory.
 //
-// This module also contains the code for lazily resolving the targets
-// of call instructions, including the callback used to redirect calls
-// to functions for which the code has not yet been generated into the
-// JIT compiler.
+// This module also contains the code for lazily resolving the targets of call
+// instructions, including the callback used to redirect calls to functions for
+// which the code has not yet been generated into the JIT compiler.
 //
-// This file #includes SparcV9CodeEmitter.inc, which contains the code
-// for getBinaryCodeForInstr(), a method that converts a MachineInstr
-// into the corresponding binary machine code word.
+// This file #includes SparcV9GenCodeEmitter.inc, which contains the code for
+// getBinaryCodeForInstr(), a method that converts a MachineInstr into the
+// corresponding binary machine code word.
 //
 //===----------------------------------------------------------------------===//
 
@@ -300,5 +299,5 @@
     }
 }
 
-#include "SparcV9CodeEmitter.inc"
+#include "SparcV9GenCodeEmitter.inc"
 






More information about the llvm-commits mailing list