[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 30 12:56:01 PDT 2003


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.78 -> 1.79

---
Log message:

Make it easier to debug the jit and LLC on test programs


---
Diffs of the changes:

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.78 llvm/test/Programs/Makefile.programs:1.79
--- llvm/test/Programs/Makefile.programs:1.78	Fri Jul 25 17:39:50 2003
+++ llvm/test/Programs/Makefile.programs	Wed Jul 30 12:55:27 2003
@@ -248,22 +248,35 @@
 Output/gccas-pass-args: $(LGCCAS)
 	$(LGCCAS) /dev/null -o /dev/null -debug-pass=Arguments > $@.1 2>&1
 	sed 's/Pass Arguments: //' < $@.1 > $@
-Output/gccld-pass-args: $(LGCCLD)
+Output/gccld-pass-args: $(TOOLS)/gccld
 	$(LGCCLD) /dev/null -o /dev/null -debug-pass=Arguments > $@.1 2>&1
 	sed 's/Pass Arguments: //' < $@.1 > $@
 
 
+# Specify stdin, reference output, and command line options for the program...
+BUGPOINT_OPTIONS += -input=$(STDIN_FILENAME) -output=Output/$*.out-nat
+BUGPOINT_OPTIONS += --args -- $(RUN_OPTIONS)
+
+
 # Rules to bugpoint the GCCAS or GCCLD command...
 $(PROGRAMS_TO_TEST:%=Output/%.bugpoint-gccas): \
 Output/%.bugpoint-gccas: Output/%.linked.rll $(LBUGPOINT) \
                          Output/gccas-pass-args Output/%.out-nat
-	$(LBUGPOINT) $< `cat Output/gccas-pass-args` $(BUGPOINT_OPTIONS) \
-                     -input=$(STDIN_FILENAME) -output=Output/$*.out-nat
+	$(LBUGPOINT) $< `cat Output/gccas-pass-args` $(BUGPOINT_OPTIONS)
+
 $(PROGRAMS_TO_TEST:%=Output/%.bugpoint-gccld): \
 Output/%.bugpoint-gccld: Output/%.linked.bc $(LBUGPOINT) \
                          Output/gccld-pass-args Output/%.out-nat
-	$(LBUGPOINT) $< `cat Output/gccld-pass-args` $(BUGPOINT_OPTIONS) \
-                     -input=$(STDIN_FILENAME) -output=Output/$*.out-nat
+	$(LBUGPOINT) $< `cat Output/gccld-pass-args` $(BUGPOINT_OPTIONS)
+
+$(PROGRAMS_TO_TEST:%=Output/%.bugpoint-llc): \
+Output/%.bugpoint-llc: Output/%.linked.bc $(LBUGPOINT) Output/%.out-nat
+	$(LBUGPOINT) $< -run-llc -mode=codegen $(BUGPOINT_OPTIONS)
+
+$(PROGRAMS_TO_TEST:%=Output/%.bugpoint-jit): \
+Output/%.bugpoint-jit: Output/%.llvm.bc $(LBUGPOINT) Output/%.out-nat
+	$(LBUGPOINT) $< -run-jit -mode=codegen $(BUGPOINT_OPTIONS)
+
 #
 # Rules to compile the program for the C Back End
 #





More information about the llvm-commits mailing list