blob: 93d5c5b286c2e7d1cdb8ccd7cd77ac57acfc927e [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
8 lang.opt2=-simplifycfg -instcombine -mem2reg -scalarrepl -sccp
9 lang.opt3=-simplifycfg -instcombine -mem2reg -scalarrepl -sccp \
10 -branch-combine -adce -globaldce -inline -licm -pre
11 lang.opt4=-simplifycfg -instcombine -mem2reg -scalarrepl -sccp \
12 -ipconstprop -branch-combine -adce -globaldce -inline -licm -pre
13 lang.opt5=-simplifycfg -instcombine -mem2reg -scalarrepl -sccp \
14 -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 Spencer936f5c72004-08-15 08:16:12 +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.
32 translator.command=stkrc -s 2048 @in@ -o @out@ @time@ @stats@
33
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
52 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##########################################################
66 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##########################################################
72 linker.command=gccld @in@ -o @out@ -lstkr_runtime