diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-12-16 16:47:56 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-12-16 16:47:56 +0000 |
| commit | 03227509c0a68a57a9de2409c046351d009347a3 (patch) | |
| tree | 3641dc899239b7a0a5479f2d1ce760c9b49b87dc /llvm/lib/Target | |
| parent | 0bc3333ff48b71634b8ae4952ddeb830312040ae (diff) | |
| download | bcm5719-llvm-03227509c0a68a57a9de2409c046351d009347a3.tar.gz bcm5719-llvm-03227509c0a68a57a9de2409c046351d009347a3.zip | |
Use the rules in Makefile.rules to build SparcV9GenCodeEmitter.inc instead
of custom rules.
llvm-svn: 18984
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/SparcV9/Makefile | 10 | ||||
| -rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp | 15 |
2 files changed, 11 insertions, 14 deletions
diff --git a/llvm/lib/Target/SparcV9/Makefile b/llvm/lib/Target/SparcV9/Makefile index 0e28b31d85e..f7fe5e9f7de 100644 --- a/llvm/lib/Target/SparcV9/Makefile +++ b/llvm/lib/Target/SparcV9/Makefile @@ -10,8 +10,10 @@ LEVEL = ../../.. 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 @@ SparcV9.burm.cpp: SparcV9.burm $(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 diff --git a/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 3e7ef3ad217..fe8fcb61e56 100644 --- a/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -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 @@ void SparcV9CodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) { } } -#include "SparcV9CodeEmitter.inc" +#include "SparcV9GenCodeEmitter.inc" |

