[llvm-commits] CVS: llvm/projects/Stacker/tools/stkrc/st Makefile

Chris Lattner lattner at cs.uiuc.edu
Wed May 18 17:54:21 PDT 2005



Changes in directory llvm/projects/Stacker/tools/stkrc:

st added (r1.1)
Makefile updated: 1.6 -> 1.7
---
Log message:

Add an llvmc specification file for the "st" suffix. This allows Stacker
programs to benefit from the optimization capabilities of the llvmc.


---
Diffs of the changes:  (+65 -1)

 Makefile |    3 ++-
 st       |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletion(-)


Index: llvm/projects/Stacker/tools/stkrc/st
diff -c /dev/null llvm/projects/Stacker/tools/stkrc/st:1.1
*** /dev/null	Wed May 18 19:54:20 2005
--- llvm/projects/Stacker/tools/stkrc/st	Wed May 18 19:54:10 2005
***************
*** 0 ****
--- 1,63 ----
+ # Stacker configuration file for llvmc
+ 
+ ##########################################################
+ # Language definitions
+ ##########################################################
+   lang.name=Stacker 
+   lang.opt1=-O1
+   lang.opt2=-O2
+   lang.opt3=-O3
+   lang.opt4=-O4
+   lang.opt5=-O5
+ 
+ ##########################################################
+ # Pre-processor definitions
+ ##########################################################
+ 
+   # Stacker doesn't have a preprocessor but the following
+   # allows the -E option to be supported
+   preprocessor.command=cp %in% %out%
+   preprocessor.required=false
+ 
+ ##########################################################
+ # Translator definitions
+ ##########################################################
+ 
+   # To compile stacker source, we just run the stacker
+   # compiler with a default stack size of 2048 entries.
+   translator.command=%bindir%/stkrc -s 2048 %in% -f -o %out% %opt% \
+     %time% %stats% %args%
+ 
+   # stkrc doesn't preprocess but we set this to true so
+   # that we don't run the cp command by default.
+   translator.preprocesses=true
+ 
+   # The translator is required to run.
+   translator.required=false
+ 
+   # stkrc doesn't handle the -On options
+   translator.output=bytecode
+ 
+ ##########################################################
+ # Optimizer definitions
+ ##########################################################
+   
+   # For optimization, we use the LLVM "opt" program
+   optimizer.command=%bindir%/stkrc -s 2048 %in% -f -o %out% %opt% \
+     %time% %stats% %args%
+ 
+   optimizer.required = yes
+ 
+   # opt doesn't translate
+   optimizer.translates = yes
+ 
+   # opt doesn't preprocess
+   optimizer.preprocesses=yes
+ 
+   # opt produces bytecode
+   optimizer.output = bc
+ 
+ ##########################################################
+ # Assembler definitions
+ ##########################################################
+   assembler.command=%bindir%/llc %in% -o %out% %target% %time% %stats%


Index: llvm/projects/Stacker/tools/stkrc/Makefile
diff -u llvm/projects/Stacker/tools/stkrc/Makefile:1.6 llvm/projects/Stacker/tools/stkrc/Makefile:1.7
--- llvm/projects/Stacker/tools/stkrc/Makefile:1.6	Thu Nov 25 14:22:07 2004
+++ llvm/projects/Stacker/tools/stkrc/Makefile	Wed May 18 19:54:10 2005
@@ -12,7 +12,8 @@
 LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
 	   LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
 	   LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a 
-
+CONFIG_FILES = st
+EXTRA_DIST = st
 USEDLIBS=stkr_compiler 
 
 






More information about the llvm-commits mailing list