Shorten lines so this file can be used as the documentation example
[oota-llvm.git] / tools / llvmc / st
1 # Stacker Configuration File For llvmc
2
3 ##########################################################
4 # Language definitions
5 ##########################################################
6   lang.name=Stacker 
7   lang.opt1=-simplifycfg -instcombine -mem2reg
8   lang.opt2=-simplifycfg -instcombine -mem2reg -load-vn \
9     -gcse -dse -scalarrepl -sccp 
10   lang.opt3=-simplifycfg -instcombine -mem2reg -load-vn \
11     -gcse -dse -scalarrepl -sccp -branch-combine -adce \
12     -globaldce -inline -licm 
13   lang.opt4=-simplifycfg -instcombine -mem2reg -load-vn \
14     -gcse -dse -scalarrepl -sccp -ipconstprop \
15     -branch-combine -adce -globaldce -inline -licm 
16   lang.opt5=-simplifycfg -instcombine -mem2reg --load-vn \
17     -gcse -dse scalarrepl -sccp -ipconstprop \
18     -branch-combine -adce -globaldce -inline -licm \
19     -block-placement
20
21 ##########################################################
22 # Pre-processor definitions
23 ##########################################################
24
25   # Stacker doesn't have a preprocessor but the following
26   # allows the -E option to be supported
27   preprocessor.command=cp %in% %out%
28   preprocessor.required=false
29
30 ##########################################################
31 # Translator definitions
32 ##########################################################
33
34   # To compile stacker source, we just run the stacker
35   # compiler with a default stack size of 2048 entries.
36   translator.command=stkrc -s 2048 %in% -o %out% %time% \
37     %stats% %args%
38
39   # stkrc doesn't preprocess but we set this to true so
40   # that we don't run the cp command by default.
41   translator.preprocesses=true
42
43   # The translator is required to run.
44   translator.required=true
45
46   # stkrc doesn't do any optimization, it just translates
47   translator.optimizes=no
48
49   # stkrc doesn't handle the -On options
50   translator.groks_dash_O=no
51
52 ##########################################################
53 # Optimizer definitions
54 ##########################################################
55   
56   # For optimization, we use the LLVM "opt" program
57   optimizer.command=opt %in% -o %out% %opt% %time% %stats% \
58     %args%
59
60   # opt doesn't (yet) grok -On
61   optimizer.groks_dash_O=no
62
63   # opt doesn't translate
64   optimizer.translates = no
65
66   # opt doesn't preprocess
67   optimizer.preprocesses=no
68
69 ##########################################################
70 # Assembler definitions
71 ##########################################################
72   assembler.command=llc %in% -o %out% %target% \
73     "-regalloc=linearscan" %time% %stats%
74
75 ##########################################################
76 # Linker definitions
77 ##########################################################
78   linker.libs=stkr_runtime
79   linker.paths=