blob: e9a72ef5da6a4574606d6d719e1eca1b82818951 [file] [log] [blame]
Reid Spencerbae68252004-08-19 04:49:47 +00001# Stacker Configuration File For llvmc
Reid Spencer936f5c72004-08-15 08:16:12 +00002
Reid Spencerbae68252004-08-19 04:49:47 +00003##########################################################
4# Language definitions
5##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +00006 lang.name=Stacker
Reid Spencerbae68252004-08-19 04:49:47 +00007 lang.opt1=-simplifycfg -instcombine -mem2reg
Reid Spencerb50acbc2004-08-22 18:01:19 +00008 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
Reid Spencerbae68252004-08-19 04:49:47 +000020
21##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000022# Pre-processor definitions
Reid Spencerbae68252004-08-19 04:49:47 +000023##########################################################
24
25 # Stacker doesn't have a preprocessor but the following
26 # allows the -E option to be supported
Reid Spencer53aa7932004-08-20 22:53:11 +000027 preprocessor.command=cp %in% %out%
Reid Spencerbae68252004-08-19 04:49:47 +000028 preprocessor.required=false
Reid Spencer936f5c72004-08-15 08:16:12 +000029
Reid Spencerbae68252004-08-19 04:49:47 +000030##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000031# Translator definitions
Reid Spencerbae68252004-08-19 04:49:47 +000032##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000033
Reid Spencerbae68252004-08-19 04:49:47 +000034 # To compile stacker source, we just run the stacker
35 # compiler with a default stack size of 2048 entries.
Reid Spencerb50acbc2004-08-22 18:01:19 +000036 translator.command=stkrc -s 2048 %in% -o %out% %time% \
37 %stats% %args%
Reid Spencerbae68252004-08-19 04:49:47 +000038
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##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000053# Optimizer definitions
Reid Spencerbae68252004-08-19 04:49:47 +000054##########################################################
55
56 # For optimization, we use the LLVM "opt" program
Reid Spencerb50acbc2004-08-22 18:01:19 +000057 optimizer.command=opt %in% -o %out% %opt% %time% %stats% \
58 %args%
Reid Spencer936f5c72004-08-15 08:16:12 +000059
Reid Spencerbae68252004-08-19 04:49:47 +000060 # 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##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000070# Assembler definitions
Reid Spencerbae68252004-08-19 04:49:47 +000071##########################################################
Reid Spencerb50acbc2004-08-22 18:01:19 +000072 assembler.command=llc %in% -o %out% %target% \
73 "-regalloc=linearscan" %time% %stats%
Reid Spencer936f5c72004-08-15 08:16:12 +000074
Reid Spencerbae68252004-08-19 04:49:47 +000075##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000076# Linker definitions
Reid Spencerbae68252004-08-19 04:49:47 +000077##########################################################
Reid Spencer53aa7932004-08-20 22:53:11 +000078 linker.libs=stkr_runtime
79 linker.paths=