[llvm-commits] CVS: llvm/lib/Reoptimizer/Trigger/Compile.sh

Brian Gaeke gaeke at cs.uiuc.edu
Mon Aug 18 23:31:01 PDT 2003


Changes in directory llvm/lib/Reoptimizer/Trigger:

Compile.sh added (r1.1)

---
Log message:

I just wanted to check this in somewhere before I lose track of it. This
is a script that shows how to use the OLD reoptimizer (Reoptimizer/Trigger)
on a simple program.  I suppose when the Reoptimizer gets its own
project module, this can go under tools/.


---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/Trigger/Compile.sh
diff -c /dev/null llvm/lib/Reoptimizer/Trigger/Compile.sh:1.1
*** /dev/null	Mon Aug 18 23:30:09 2003
--- llvm/lib/Reoptimizer/Trigger/Compile.sh	Mon Aug 18 23:29:57 2003
***************
*** 0 ****
--- 1,29 ----
+ #!/bin/sh
+ # Sample script for compiling a program consisting of a single C file with
+ # LLVM, and then linking it against the old version of the reoptimizer.
+ #
+ # Created 26-Jun-2003 by brg
+ #
+ 
+ llvm-gcc $1.c -o $1
+ 
+ opt -lowerswitch -paths -emitfuncs $1.bc > $1.run.bc
+ 
+ llc -f $1.run.bc 
+ 
+ LIBS=$HOME/llvm_sparc/lib/Debug
+ GXX=/usr/dcs/software/evaluation/bin/g++
+ $GXX -g -L $LIBS $1.run.s -o $1.run.llc \
+ $LIBS/tracecache.o \
+ $LIBS/mapinfo.o \
+ $LIBS/trigger.o \
+ $LIBS/profpaths.o \
+ $LIBS/bininterface.o \
+ $LIBS/support.o \
+ $LIBS/vmcore.o \
+ $LIBS/transformutils.o \
+ $LIBS/bcreader.o \
+ -lscalaropts -lscalaropts -lanalysis \
+ -lmalloc -lcpc -lm -ldl
+ 
+ exit 0





More information about the llvm-commits mailing list