summaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-06-03 18:56:57 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-06-03 18:56:57 +0000
commit24672c3d12cc8b4a1de80824b0140f3381906840 (patch)
tree6a1eedbfd42dcbd6726746c234b50c26737b72cb /test/Makefile.tests
parentb05497e0ca1ba2e7f57b792cc160e5d1c8579582 (diff)
downloadllvm-24672c3d12cc8b4a1de80824b0140f3381906840.tar.gz
llvm-24672c3d12cc8b4a1de80824b0140f3381906840.tar.bz2
llvm-24672c3d12cc8b4a1de80824b0140f3381906840.tar.xz
Improved how tracing can be used:
-- 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
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index 8ae3465605..91e466912d 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -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