[llvm-commits] CVS: poolalloc/test/TEST.poolalloc.Makefile

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 24 14:19:02 PDT 2003


Changes in directory poolalloc/test:

TEST.poolalloc.Makefile updated: 1.4 -> 1.5

---
Log message:

I have an idea: how about we actually run the pool allocated version of the
code when we say we are going to!  While we're at it, we can link in the
release version of the pool allocator runtime.



---
Diffs of the changes:  (+10 -6)

Index: poolalloc/test/TEST.poolalloc.Makefile
diff -u poolalloc/test/TEST.poolalloc.Makefile:1.4 poolalloc/test/TEST.poolalloc.Makefile:1.5
--- poolalloc/test/TEST.poolalloc.Makefile:1.4	Fri Oct 24 13:15:18 2003
+++ poolalloc/test/TEST.poolalloc.Makefile	Fri Oct 24 14:17:54 2003
@@ -9,9 +9,13 @@
 PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)/
 RELDIR  := $(subst $(PROGDIR),,$(CURDIR))
 
-# Pool allocator shared object and runtime library...
-PA_SO  := $(PROJECT_DIR)/lib/Debug/libpoolalloc.so
-PA_RT  := $(PROJECT_DIR)/lib/Bytecode/libpoolalloc.bc
+# Pool allocator pass shared object
+PA_SO    := $(PROJECT_DIR)/lib/Debug/libpoolalloc.so
+
+# Pool allocator runtime library
+PA_RT    := $(PROJECT_DIR)/lib/Bytecode/libpoolalloc_rt.bc
+PA_RT_O  := $(PROJECT_DIR)/lib/Release/poolalloc_rt.o
+
 
 # Command to run opt with the pool allocator pass loaded
 OPT_PA := $(LOPT) -load $(PA_SO)
@@ -28,13 +32,13 @@
 
 # This rule compiles the new .bc file into a .c file using CBE
 $(PROGRAMS_TO_TEST:%=Output/%.poolalloc.cbe.c): \
-Output/%.poolalloc.cbe.c: Output/%.llvm.bc $(LDIS)
+Output/%.poolalloc.cbe.c: Output/%.$(TEST).transformed.bc $(LDIS)
 	-$(LDIS) -c -f $< -o $@
 
 # This rule compiles the .c file into an executable using $CC
 $(PROGRAMS_TO_TEST:%=Output/%.poolalloc.cbe): \
-Output/%.poolalloc.cbe: Output/%.poolalloc.cbe.c
-	-$(CC) $(CFLAGS) $< $(LLCLIBS) $(LDFLAGS) -o $@
+Output/%.poolalloc.cbe: Output/%.poolalloc.cbe.c $(PA_RT_O)
+	-$(CC) $(CFLAGS) $< $(PA_RT_O) $(LLCLIBS) $(LDFLAGS) -o $@
 
 # This rule runs the generated executable, generating timing information
 $(PROGRAMS_TO_TEST:%=Output/%.poolalloc.out-cbe): \





More information about the llvm-commits mailing list