[llvm-commits] CVS: llvm/projects/Stacker/test/Makefile

Reid Spencer reid at x10sys.com
Sat Sep 4 13:14:04 PDT 2004



Changes in directory llvm/projects/Stacker/test:

Makefile updated: 1.4 -> 1.5
---
Log message:

Convert makefile to use standard LLVM macros for tool names
Utilize new stkrc -O4 option for optimization during translation.


---
Diffs of the changes:  (+13 -22)

Index: llvm/projects/Stacker/test/Makefile
diff -u llvm/projects/Stacker/test/Makefile:1.4 llvm/projects/Stacker/test/Makefile:1.5
--- llvm/projects/Stacker/test/Makefile:1.4	Tue May 11 02:42:58 2004
+++ llvm/projects/Stacker/test/Makefile	Sat Sep  4 15:13:54 2004
@@ -1,16 +1,16 @@
-##===- projects/sample/Makefile ----------------------------*- Makefile -*-===##
+##===- projects/Stacker/test/Makefile ----------------------*- Makefile -*-===##
 #
-# This is a sample Makefile for a project that uses LLVM.
+# This is the makefile that tests the various facilities of the Stacker language
 #
 ##===----------------------------------------------------------------------===##
 
 #
 # Indicates our relative path to the top of the project's root directory.
 #
-LEVEL = ../../..
+LEVEL = ../
 
 #
-# Directories that needs to be built.
+# Directories that need to be built.
 #
 DIRS =
 
@@ -31,10 +31,7 @@
 TESTS = $(LOGIC_TESTS) $(ARITHMETIC_TESTS) $(BITWISE_TESTS) $(STACK_TESTS) \
 	$(MEMORY_TESTS) $(CONTROL_TESTS) $(IO_TESTS)
 
-LLC_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/llc
-OPT_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/opt
 STKRC_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/stkrc
-LLVMDIS_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/llvm-dis
 
 all :: test_each
 
@@ -42,27 +39,21 @@
 	@$(ECHO) "Running Tests..."
 	$(VERB) LD_LIBRARY_PATH=$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) $(BUILD_SRC_DIR)/runtests $(BUILD_OBJ_DIR) $(TESTS) 
 
-% : %.s testing.s
-	@$(ECHO) "Compiling and Linking $< to $*"
-	$(VERB)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) testing.s -lstkr_runtime -o $* $*.s
+%.bc : %.st Makefile
+	@$(ECHO) "Compiling And Optimizing $< to $*.bc"
+	$(VERB)$(STKRC_EXEC) -f -O4 -s 2048 -o $*.bc $(BUILD_SRC_DIR)/$*.st
 
 %.s : %.bc
-	@$(ECHO) "Compiling $< to $*.s"
-	$(VERB)$(LLC_EXEC) -f -o $*.s $<
+	@$(ECHO) "Assembling $< to $*.s"
+	$(VERB)$(LLC) -f -o $*.s $*.bc
 
-ifdef OPTIMIZE
-%.bc : %.st $(STKRC_EXEC)
-	@$(ECHO) "Compiling and Optimizing $< to $*.bc"
-	$(VERB)$(STKRC_EXEC) -e -o - $< | opt -stats -q -f -o $*.bc -adce -branch-combine -cee -constmerge -constprop -dce -die -gcse -globaldce -instcombine -pre
-else
-%.bc : %.st $(STKRC_EXEC)
-	@$(ECHO) "Compiling $< to $*.bc"
-	$(VERB)$(STKRC_EXEC) -e -f -o $*.bc $< 
-endif
+% : %.s testing.s
+	@$(ECHO) "Linking $*"
+	$(VERB)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) testing.s -lstkr_runtime -o $* $*.s
 
 %.ll : %.bc
 	@$(ECHO) "Disassembling $< to $*.ll"
-	$(VERB)$(LLVMDIS_EXEC) -dis -o $*.ll $<
+	$(VERB)$(LDIS) -dis -o $*.ll $<
 
 TESTS_LL = $(TESTS:%=%.ll)
 TESTS_BC = $(TESTS:%=%.bc)






More information about the llvm-commits mailing list