[llvm-commits] CVS: llvm/test/Programs/TEST.vtl.Makefile
John Criswell
criswell at cs.uiuc.edu
Mon Mar 1 11:46:02 PST 2004
Changes in directory llvm/test/Programs:
TEST.vtl.Makefile updated: 1.1 -> 1.2
---
Log message:
Switched over to Pentium 4 events.
Added code to run pool allocation tests as well.
Updated comment.
---
Diffs of the changes: (+18 -6)
Index: llvm/test/Programs/TEST.vtl.Makefile
diff -u llvm/test/Programs/TEST.vtl.Makefile:1.1 llvm/test/Programs/TEST.vtl.Makefile:1.2
--- llvm/test/Programs/TEST.vtl.Makefile:1.1 Tue Feb 24 15:34:32 2004
+++ llvm/test/Programs/TEST.vtl.Makefile Mon Mar 1 11:45:32 2004
@@ -1,7 +1,6 @@
-##===- test/Programs/TEST.example.Makefile -----------------*- Makefile -*-===##
+##===- test/Programs/TEST.vtl.Makefile ---------------------*- Makefile -*-===##
#
-# Example to show a custom test. This test just prints the size of the bytecode
-# file for each program.
+# Makefile for getting performance metrics using Intel's VTune.
#
##===----------------------------------------------------------------------===##
@@ -17,7 +16,7 @@
P4_EVENTS := "-ec en='2nd Level Cache Read Misses' en='2nd-Level Cache Read References'"
P3_EVENTS := "-ec en='L2 Cache Request Misses (highly correlated)'"
-EVENTS := $(P3_EVENTS)
+EVENTS := $(P4_EVENTS)
#
# Generate events for LLC
@@ -31,8 +30,22 @@
#-$(VERB) $(VTL) view > $@
#$(VERB) $(VTL) delete $* -f
+test:: $(PROGRAMS_TO_TEST:%=test.$(TEST).pa.%)
+
#
-# Generate events for CBE
+# Generate events for Pool Allocated CBE
+#
+$(PROGRAMS_TO_TEST:%=test.$(TEST).pa.%): \
+test.$(TEST).pa.%: Output/%.poolalloc.cbe
+ @echo "========================================="
+ @echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ $(VERB) $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ -$(VERB) $(VTL) run $*
+ -$(VERB) $(VTL) view > $@
+ $(VERB) $(VTL) delete $* -f
+
+#
+# Generate events for Pool Allocated CBE
#
$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.cbe
@@ -42,5 +55,4 @@
-$(VERB) $(VTL) run $*
-$(VERB) $(VTL) view > $@
$(VERB) $(VTL) delete $* -f
-
More information about the llvm-commits
mailing list