diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-19 04:49:47 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-19 04:49:47 +0000 |
commit | bae6825e1db794806958d556a86976c5bfa03f7b (patch) | |
tree | 9a1b3a5911bb945a6fccbfdde9b6df81ff71764b /tools/llvmc/ConfigLexer.h | |
parent | 8831db745bb0c3ed7939df475f924f53f43254a2 (diff) | |
download | llvm-bae6825e1db794806958d556a86976c5bfa03f7b.tar.gz llvm-bae6825e1db794806958d556a86976c5bfa03f7b.tar.bz2 llvm-bae6825e1db794806958d556a86976c5bfa03f7b.tar.xz |
Implement many new features for llvmc. This is the first version that will
actually execute actions and it is been shown to optimize a Stacker program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/ConfigLexer.h')
-rw-r--r-- | tools/llvmc/ConfigLexer.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/llvmc/ConfigLexer.h b/tools/llvmc/ConfigLexer.h index fd25589e61..78fc30b8b4 100644 --- a/tools/llvmc/ConfigLexer.h +++ b/tools/llvmc/ConfigLexer.h @@ -22,9 +22,11 @@ struct ConfigLexerInfo { int64_t IntegerVal; std::string StringVal; + bool in_value; + unsigned lineNum; }; -extern ConfigLexerInfo ConfigLexerData; +extern ConfigLexerInfo ConfigLexerState; class InputProvider { public: @@ -57,6 +59,10 @@ enum ConfigLexerTokens { STRING, ///< A quoted string IN_SUBST, ///< The input substitution item @in@ OUT_SUBST, ///< The output substitution item @out@ + STATS_SUBST, ///< The stats substitution item @stats@ + TIME_SUBST, ///< The substitution item @time@ + OPT_SUBST, ///< The substitution item @opt@ + TARGET_SUBST, ///< The substitition item @target@ LANG, ///< The item "lang" (and case variants) PREPROCESSOR, ///< The item "preprocessor" (and case variants) TRANSLATOR, ///< The item "translator" (and case variants) @@ -67,9 +73,10 @@ enum ConfigLexerTokens { REQUIRED, ///< The item "required" (and case variants) COMMAND, ///< The item "command" (and case variants) PREPROCESSES, ///< The item "preprocesses" (and case variants) - GROKS_DASH_O, ///< The item "groks_dash_O" (and case variants) - GROKS_O10N, ///< The item "groks_optimization" (and case variants) + TRANSLATES, ///< The item "translates" (and case variants) OPTIMIZES, ///< The item "optimizes" (and case variants) + GROKS_DASH_O, ///< The item "groks_dash_O" (and case variants) + OUTPUT_IS_ASM,///< The item "outut_is_asm" (and case variants) OPT1, ///< The item "opt1" (and case variants) OPT2, ///< The item "opt2" (and case variants) OPT3, ///< The item "opt3" (and case variants) |