Improved how tracing can be used:
authorVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 3 Jun 2003 18:56:57 +0000 (18:56 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 3 Jun 2003 18:56:57 +0000 (18:56 +0000)
-- added new targets %.trace-out-llc and %.trace-out-cbe
-- either TRACE=yes or TRACEM=yes is still needed and chooses how to trace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6585 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.tests

index 8ae3465605cf39d75e49db8ff2451ddffed4694e..91e466912d48f09fbbac35028744b448c4a5c2a6 100644 (file)
@@ -63,15 +63,21 @@ TESTRUNR = $(LEVEL)/test/TestRunner.sh
 NATGCC  = /usr/dcs/software/supported/bin/gcc
 CP     = /bin/cp -f
 
+## If TRACE or TRACEM is "yes", set the appropriate llc flag (-trace or -tracem)
+## mark that tracing on, and set the TRACELIBS variable.
 ifeq ($(TRACE), yes)
-    LLCFLAGS += -trace basicblock
-    LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64
+    LLCFLAGS += -trace
+    DOTRACING = yes
 else
     ifeq ($(TRACEM), yes)
-       LLCFLAGS += -trace function
-       LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64
+       LLCFLAGS += -tracem
+       DOTRACING = yes
     endif
 endif
+ifeq ($(DOTRACING), yes)
+    TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr64
+endif
+
 
 LLCLIBS := $(LLCLIBS) -lm