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

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 13 08:51:01 PDT 2002


Changes in directory llvm/test/Programs/MultiSource:

Makefile.multisrc updated: 1.14 -> 1.15

---
Log message:

Build multiple source programs by simply compiling them, assembling them with 
the "dumb" assembler, linking the raw bytecode, then running the bytecode 
through gccas.  This allows us to do timings and get performance data for
gccas on the entire multisource program.



---
Diffs of the changes:

Index: llvm/test/Programs/MultiSource/Makefile.multisrc
diff -u llvm/test/Programs/MultiSource/Makefile.multisrc:1.14 llvm/test/Programs/MultiSource/Makefile.multisrc:1.15
--- llvm/test/Programs/MultiSource/Makefile.multisrc:1.14	Wed Aug 21 18:52:36 2002
+++ llvm/test/Programs/MultiSource/Makefile.multisrc	Fri Sep 13 08:50:48 2002
@@ -24,23 +24,37 @@
 include $(LEVEL)/test/Programs/Makefile.programs
 
 # Figure out what object files we want to build...
-LObjs    := $(sort $(addsuffix .bc, $(basename $(Source))))
+LObjs    := $(sort $(addsuffix .rbc, $(basename $(Source))))
 LObjects := $(addprefix Output/,$(LObjs))
 
 NObjs    := $(sort $(addsuffix .o, $(basename $(Source))))
 NObjects := $(addprefix Output/,$(NObjs))
 
 .PRECIOUS: $(LObjects) $(NObjects) Output/%.linked.bc
+.PRECIOUS: Output/%.linked.rbc Output/%.linked.rll
 
 Output/%.o: %.c Output/.dir
 	$(CC) $(CPPFLAGS) -O $(CFLAGS) -c $< -o $@
 
+# Raw bytecode files are files created by simply linking the output of the GCC
+# frontend without running gccas.
+#
+Output/%.rbc: Output/%.ll $(LAS)
+	$(LAS) -f $< -o $@
+
+
 # Output/*.linked.bc is all of the bytecode files of the program linked together
 # without any libraries linked in...
 #
-Output/%.linked.bc: $(LObjects)
+Output/%.linked.rbc: $(LObjects)
 	$(LLINK) -f $(LObjects) | opt -funcresolve > $@
 
+Output/%.linked.rll: Output/%.linked.rbc $(LDIS)
+	$(LDIS) -f $< -o $@
+
+Output/%.linked.bc: Output/%.linked.rll $(LGCCAS)
+	$(LGCCAS) $< -o $@
+
 # Link the program to the libraries it uses, then perform postlink
 # optimization...
 Output/%.llvm Output/%.llvm.bc: Output/%.linked.bc
@@ -56,7 +70,6 @@
 	-ls -l Output/$(PROG).llvm.bc $(HOME)/LLVMPrograms/$(PROG).llvm.bc
 	-cp $(HOME)/LLVMPrograms/$(PROG).llvm.bc $(HOME)/LLVMPrograms/$(PROG).llvm.old.bc
 	cp Output/$(PROG).llvm.bc $(HOME)/LLVMPrograms
-	
 
 ds: Output/$(PROG).linked.bc
 	$(LANALYZE) -datastructure $< -t





More information about the llvm-commits mailing list