[llvm-commits] CVS: llvm-test/TEST.libcalls.report TEST.libcalls.Makefile
Chris Lattner
lattner at cs.uiuc.edu
Mon May 22 18:15:05 PDT 2006
Changes in directory llvm-test:
TEST.libcalls.report added (r1.1)
TEST.libcalls.Makefile updated: 1.2 -> 1.3
---
Log message:
Add a report for the libcalls test and make it work like normal tests. It is
now a useful example for an LLVM optimizer pass.
---
Diffs of the changes: (+32 -2)
TEST.libcalls.Makefile | 11 +++++++++--
TEST.libcalls.report | 23 +++++++++++++++++++++++
2 files changed, 32 insertions(+), 2 deletions(-)
Index: llvm-test/TEST.libcalls.report
diff -c /dev/null llvm-test/TEST.libcalls.report:1.1
*** /dev/null Mon May 22 20:15:01 2006
--- llvm-test/TEST.libcalls.report Mon May 22 20:14:51 2006
***************
*** 0 ****
--- 1,23 ----
+ ##=== TEST.libcalls.report - Report desc for libcalls tests ----*- perl -*-===##
+ #
+ # This file defines a report to be generated for the libcalls test.
+ #
+ ##===----------------------------------------------------------------------===##
+
+ # Sort by name
+ $SortCol = 1;
+ $TrimRepeatedPrefix = 1;
+
+ # These are the columns for the report. The first entry is the header for the
+ # column, the second is the regex to use to match the value. Empty list create
+ # seperators, and closures may be put in for custom processing.
+ (
+ # Name
+ ["Name" , '\'([^\']+)\' Program'],
+ [],
+ ["total", '([0-9]+).*Number of library calls simplified'],
+ [],
+ # Specifics
+ ["#exit", '([0-9]+).*Number of .exit. calls simplified'],
+ []
+ );
Index: llvm-test/TEST.libcalls.Makefile
diff -u llvm-test/TEST.libcalls.Makefile:1.2 llvm-test/TEST.libcalls.Makefile:1.3
--- llvm-test/TEST.libcalls.Makefile:1.2 Sat May 14 13:46:10 2005
+++ llvm-test/TEST.libcalls.Makefile Mon May 22 20:14:51 2006
@@ -7,13 +7,20 @@
# Usage:
# make TEST=libcalls summary (short summary)
# make TEST=libcalls (detailed list with time passes, etc.)
+# make TEST=libcalls report
+# make TEST=libcalls report.html
#
##===----------------------------------------------------------------------===##
-TDIR:=$(patsubst $(PROJ_OBJ_ROOT)/%,%,$(shell pwd))
+CURDIR := $(shell cd .; pwd)
+PROGDIR := $(PROJ_SRC_ROOT)
+RELDIR := $(subst $(PROGDIR),,$(CURDIR))
+
$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
- @echo "======= $(TDIR)/$*' Program"
+ @echo "---------------------------------------------------------------"
+ @echo ">>> ========= '$(RELDIR)/$*' Program"
+ @echo "---------------------------------------------------------------"
@cat $<
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
More information about the llvm-commits
mailing list