[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Vikram Adve vadve at cs.uiuc.edu
Wed Jun 4 09:26:06 PDT 2003


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.54 -> 1.55

---
Log message:

Modify tracing rules to use opt -trace[m] instead of llc -trace[m].


---
Diffs of the changes:

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.54 llvm/test/Programs/Makefile.programs:1.55
--- llvm/test/Programs/Makefile.programs:1.54	Tue Jun  3 13:56:57 2003
+++ llvm/test/Programs/Makefile.programs	Wed Jun  4 09:24:52 2003
@@ -182,6 +182,13 @@
 Output/%.llvm: Output/%.linked.bc
 	$(LGCCLD) $(STATS) $< -lgcc -lc $(LIBS) crtend.o -o Output/$*.llvm
 
+# Rule to get the tracing version of the llvm.bc file for tracing:
+ifeq ($(DOTRACING), yes)
+$(PROGRAMS_TO_TEST:%=Output/%.llvm.trace.bc): \
+Output/%.llvm.trace.bc: Output/%.llvm.bc
+	$(LOPT) $(TRACEFLAGS) $< -o $@
+endif
+
 # Targets to get the pass arguments that gccas and gccld are using...
 Output/gccas-pass-args: $(LGCCAS)
 	$(LGCCAS) /dev/null -o /dev/null -debug-pass=Arguments > $@.1 2>&1
@@ -229,7 +236,7 @@
 	-$(LLC) $(LLCFLAGS) -f $< -o $@
 
 $(PROGRAMS_TO_TEST:%=Output/%.trace.llc.s): \
-Output/%.trace.llc.s: Output/%.llvm.bc $(LLC)
+Output/%.trace.llc.s: Output/%.llvm.trace.bc $(LLC)
 	-$(LLC) $(LLCFLAGS) -f $< -o $@
 
 # Assemble (and link) an LLVM-linked program using the system assembler...





More information about the llvm-commits mailing list