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

llvm-svn: 6585
This commit is contained in:
Vikram S. Adve 2003-06-03 18:56:57 +00:00
parent 9109b41a00
commit de9d6a41b6
1 changed files with 10 additions and 4 deletions

View 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