1 # Stacker Configuration File For llvmc
3 ##########################################################
5 ##########################################################
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 \
21 ##########################################################
22 # Pre-processor definitions
23 ##########################################################
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
30 ##########################################################
31 # Translator definitions
32 ##########################################################
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% \
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
43 # The translator is required to run.
44 translator.required=true
46 # stkrc doesn't do any optimization, it just translates
47 translator.optimizes=no
49 # stkrc doesn't handle the -On options
50 translator.groks_dash_O=no
52 ##########################################################
53 # Optimizer definitions
54 ##########################################################
56 # For optimization, we use the LLVM "opt" program
57 optimizer.command=opt %in% -o %out% %opt% %time% %stats% \
60 # opt doesn't (yet) grok -On
61 optimizer.groks_dash_O=no
63 # opt doesn't translate
64 optimizer.translates = no
66 # opt doesn't preprocess
67 optimizer.preprocesses=no
69 ##########################################################
70 # Assembler definitions
71 ##########################################################
72 assembler.command=llc %in% -o %out% %target% \
73 "-regalloc=linearscan" %time% %stats%
75 ##########################################################
77 ##########################################################
78 linker.libs=stkr_runtime