blob: 7c8d1ab8b189699697af26c0cf19231b9bc0d2db [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 Spencer53aa7932004-08-20 22:53:11 +00008 lang.opt2=-simplifycfg -instcombine -mem2reg -load-vn -gcse -dse -scalarrepl -sccp
9 lang.opt3=-simplifycfg -instcombine -mem2reg -load-vn -gcse -dse -scalarrepl -sccp \
Reid Spencerbae68252004-08-19 04:49:47 +000010 -branch-combine -adce -globaldce -inline -licm -pre
Reid Spencer53aa7932004-08-20 22:53:11 +000011 lang.opt4=-simplifycfg -instcombine -mem2reg -load-vn -gcse -dse -scalarrepl -sccp \
Reid Spencerbae68252004-08-19 04:49:47 +000012 -ipconstprop -branch-combine -adce -globaldce -inline -licm -pre
Reid Spencer53aa7932004-08-20 22:53:11 +000013 lang.opt5=-simplifycfg -instcombine -mem2reg --load-vn -gcse -dse scalarrepl -sccp \
Reid Spencerbae68252004-08-19 04:49:47 +000014 -ipconstprop -branch-combine -adce -globaldce -inline -licm -pre \
15 -block-placement
16
17##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000018# Pre-processor definitions
Reid Spencerbae68252004-08-19 04:49:47 +000019##########################################################
20
21 # Stacker doesn't have a preprocessor but the following
22 # allows the -E option to be supported
Reid Spencer53aa7932004-08-20 22:53:11 +000023 preprocessor.command=cp %in% %out%
Reid Spencerbae68252004-08-19 04:49:47 +000024 preprocessor.required=false
Reid Spencer936f5c72004-08-15 08:16:12 +000025
Reid Spencerbae68252004-08-19 04:49:47 +000026##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000027# Translator definitions
Reid Spencerbae68252004-08-19 04:49:47 +000028##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000029
Reid Spencerbae68252004-08-19 04:49:47 +000030 # To compile stacker source, we just run the stacker
31 # compiler with a default stack size of 2048 entries.
Reid Spencer53aa7932004-08-20 22:53:11 +000032 translator.command=stkrc -s 2048 %in% -o %out% %time% %stats%
Reid Spencerbae68252004-08-19 04:49:47 +000033
34 # stkrc doesn't preprocess but we set this to true so
35 # that we don't run the cp command by default.
36 translator.preprocesses=true
37
38 # The translator is required to run.
39 translator.required=true
40
41 # stkrc doesn't do any optimization, it just translates
42 translator.optimizes=no
43
44 # stkrc doesn't handle the -On options
45 translator.groks_dash_O=no
46
47##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000048# Optimizer definitions
Reid Spencerbae68252004-08-19 04:49:47 +000049##########################################################
50
51 # For optimization, we use the LLVM "opt" program
Reid Spencer53aa7932004-08-20 22:53:11 +000052 optimizer.command=opt %in% -o %out% %opt% %time% %stats%
Reid Spencer936f5c72004-08-15 08:16:12 +000053
Reid Spencerbae68252004-08-19 04:49:47 +000054 # opt doesn't (yet) grok -On
55 optimizer.groks_dash_O=no
56
57 # opt doesn't translate
58 optimizer.translates = no
59
60 # opt doesn't preprocess
61 optimizer.preprocesses=no
62
63##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000064# Assembler definitions
Reid Spencerbae68252004-08-19 04:49:47 +000065##########################################################
Reid Spencer53aa7932004-08-20 22:53:11 +000066 assembler.command=llc %in% -o %out% %target% "-regalloc=linearscan" \
67 %time% %stats%
Reid Spencer936f5c72004-08-15 08:16:12 +000068
Reid Spencerbae68252004-08-19 04:49:47 +000069##########################################################
Reid Spencer936f5c72004-08-15 08:16:12 +000070# Linker definitions
Reid Spencerbae68252004-08-19 04:49:47 +000071##########################################################
Reid Spencer53aa7932004-08-20 22:53:11 +000072 linker.libs=stkr_runtime
73 linker.paths=