[llvm-commits] CVS: llvm/test/DSGraphs/generate_report.pl Makefile Makefile.DSGraphs

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 6 19:52:01 PST 2002


Changes in directory llvm/test/DSGraphs:

generate_report.pl added (r1.1)
Makefile updated: 1.3 -> 1.4
Makefile.DSGraphs updated: 1.6 -> 1.7

---
Log message:

Changes neccesary to run an automated summary script to gather DS analysis
numbers from all benchmarks


---
Diffs of the changes:

Index: llvm/test/DSGraphs/Makefile
diff -u llvm/test/DSGraphs/Makefile:1.3 llvm/test/DSGraphs/Makefile:1.4
--- llvm/test/DSGraphs/Makefile:1.3	Sun Nov  3 12:42:28 2002
+++ llvm/test/DSGraphs/Makefile	Wed Nov  6 19:51:16 2002
@@ -47,5 +47,15 @@
 
 include ../Makefile.tests
 
+clean::
+	rm -f report.raw.out
+
 dummylib.o: dummylib.c $(LCC1)
 	$(LCC) $< -c
+
+report.raw.out: $(LANALYZE)
+	$(MAKE) clean
+	gmake all 2>&1 | tee report.raw.out	
+
+report: report.raw.out
+	./generate_report.pl report.raw.out 2>&1 | tee report.txt


Index: llvm/test/DSGraphs/Makefile.DSGraphs
diff -u llvm/test/DSGraphs/Makefile.DSGraphs:1.6 llvm/test/DSGraphs/Makefile.DSGraphs:1.7
--- llvm/test/DSGraphs/Makefile.DSGraphs:1.6	Wed Nov  6 17:41:11 2002
+++ llvm/test/DSGraphs/Makefile.DSGraphs	Wed Nov  6 19:51:16 2002
@@ -1,4 +1,4 @@
-## $Id: Makefile.DSGraphs,v 1.6 2002/11/06 23:41:11 lattner Exp $
+## $Id: Makefile.DSGraphs,v 1.7 2002/11/07 01:51:16 lattner Exp $
 ##---------------------------------------------------------------------------- 
 ## Common makefile rules for testing DSGraph analysis.
 ## 
@@ -24,14 +24,18 @@
 
 .PRECIOUS: %.lib.bc
 
-%.lib.bc: %.bc ../dummylib.o
+%.lib.bc: %.bc ../dummylib.o $(LANALYZE)
 	link $< ../dummylib.o | opt -internalize -funcresolve -globaldce > $@
 
+
+ANALYZE_OPTS = -stats -time-passes -only-print-main-ds
+
 %.ps: %.lib.bc
 	@echo "---------------------------------------------------------------"
 	@echo ">>> ========= " $<
 	@echo "---------------------------------------------------------------"
-	-analyze -$(PASS)datastructure -stats -time-passes $<  | tee $<.analyze$(PASS).out 2>&1
+	-time analyze -$(PASS)datastructure $(ANALYZE_OPTS) $<  | \
+                 tee $<.analyze$(PASS).out 2>&1
 	-dot -Tps < $(PASS).main.dot > $@
 
 clean::





More information about the llvm-commits mailing list