aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc2
Commit message (Collapse)AuthorAgeFilesLines
* Make all help strings start in upper case.Mikhail Glushenkov2008-05-301-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51788 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the -opt switch and add a test case for it.Mikhail Glushenkov2008-05-303-8/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51784 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix indentation.Mikhail Glushenkov2008-05-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51782 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a --dry-run option to llvmc2. Patch by Holger Schurig.Mikhail Glushenkov2008-05-302-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51781 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a --save-temps option.Mikhail Glushenkov2008-05-304-7/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51760 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a check for side effect-free options (specified only in the OptionList).Mikhail Glushenkov2008-05-301-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51759 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation update.Mikhail Glushenkov2008-05-301-0/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51758 91177308-0d34-0410-b5e6-96231b3b80d8
* Show argv[0] in error messages (like gcc).Mikhail Glushenkov2008-05-301-4/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51755 91177308-0d34-0410-b5e6-96231b3b80d8
* New feature: OptionList.Mikhail Glushenkov2008-05-302-13/+55
| | | | | | | | | | | | | | | | | | | It can be handy to have all information about options gathered in a single place to provide an overview of all supported options. This patch allows the following: def Options : OptionList<[ (switch_option "E", (help "Help string")), (alias_option "quiet", "q") ... ]>; Tool-specific option properties (like 'append_cmd') have (obviously) no meaning in this context, so the only properties that are allowed are 'help' and 'required'. See usage example in examples/Clang.td. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51754 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation update.Mikhail Glushenkov2008-05-302-66/+120
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51753 91177308-0d34-0410-b5e6-96231b3b80d8
* A small optimization: use static char* array instead of StrVector.Mikhail Glushenkov2008-05-302-15/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51752 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to test if the '-o' option is provided.Mikhail Glushenkov2008-05-301-0/+2
| | | | | | | | | | | The following is now allowed: (case (not_empty "o"), do_something, ...) This didn't work previously because "-o" is built-in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51751 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for option aliases.Mikhail Glushenkov2008-05-301-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51749 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some headers.Mikhail Glushenkov2008-05-306-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51745 91177308-0d34-0410-b5e6-96231b3b80d8
* New tests for the 'case' expression: not_empty, in_language.Mikhail Glushenkov2008-05-307-20/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51744 91177308-0d34-0410-b5e6-96231b3b80d8
* -E should print to stdout.Mikhail Glushenkov2008-05-302-5/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51743 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to have multiple input languages for a single tool.Mikhail Glushenkov2008-05-303-15/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51742 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename StringVector to StrVector (to be consistent with ↵Mikhail Glushenkov2008-05-302-7/+6
| | | | | | LLVMCConfigurationEmitter.cpp). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51741 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor error message fixes.Mikhail Glushenkov2008-05-301-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51740 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation and examples improvementsMikhail Glushenkov2008-05-305-9/+89
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51739 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not generate empty 'if's for the output_suffix property.Mikhail Glushenkov2008-05-301-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51737 91177308-0d34-0410-b5e6-96231b3b80d8
* Update documentation, add examples.Mikhail Glushenkov2008-05-305-77/+241
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51736 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename LLVMC-Tutorial.rst to LLVMC-Reference.rstMikhail Glushenkov2008-05-301-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51735 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to change the output file suffix based on command-line options.Mikhail Glushenkov2008-05-301-5/+2
| | | | | | | | | | | For instance, the following command: llvmc2 -E hello.c now generates a file with the correct suffix (hello.i). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51733 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for user-provided hooks and environment variable reads to the ↵Mikhail Glushenkov2008-05-301-0/+1
| | | | | | | | | | | | | | | cmd_line tool property. Used like this: (cmd_line "$CALL(MyHook) --option -o $ENV(VARIABLE) $CALL(AnotherHook)") Also works with case expressions. Hook declarations are auto-generated, the definitions should be provided by the user (just drop a .cpp file in the tools/llvmc2 directory). Hooks should live in the "hooks" namespace and have type std::string hooks::Hook(void). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51732 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable the response file ('llvmc @file') support.Mikhail Glushenkov2008-05-301-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51731 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the code to the fact that StringSet now lives in llvm/ADT.Mikhail Glushenkov2008-05-303-46/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51730 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to use the generalised 'case' construct in the cmd_line ↵Mikhail Glushenkov2008-05-307-24/+68
| | | | | | property. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51728 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a generalised 'case' construct.Mikhail Glushenkov2008-05-303-24/+33
| | | | | | | Besides assigning edge weights, it will also be used by the cmd_line tool property. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51727 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1338: rename include/llvm/ADT/ilist and friends to end with ".h"Anton Korobeynikov2008-05-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51687 91177308-0d34-0410-b5e6-96231b3b80d8
* Filter option names to escape symbols not allowed as C++ identifiers.Mikhail Glushenkov2008-05-121-3/+3
| | | | | | | | Makes it possible to use options with names like "Wa,". Also fixes the -Wall option handling as a side-effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50973 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to choose between different compilation graph definitions ↵Mikhail Glushenkov2008-05-121-1/+2
| | | | | | at compile-time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50972 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some error messages; Make LLVMC pass through the exit code of a failed tool.Mikhail Glushenkov2008-05-123-9/+47
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50971 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Example.td to Graph.td.Mikhail Glushenkov2008-05-092-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50910 91177308-0d34-0410-b5e6-96231b3b80d8
* Reapply 50867: A small refactoring (extract method) + some comment fixes.Mikhail Glushenkov2008-05-091-1/+2
| | | | | | | Fixed the build breakage, sorry for that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50895 91177308-0d34-0410-b5e6-96231b3b80d8
* Revertin 50867 since it was breaking the build.Tanya Lattner2008-05-081-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50871 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -E and -S optionsMikhail Glushenkov2008-05-081-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50868 91177308-0d34-0410-b5e6-96231b3b80d8
* A small refactoring (extract method) + some comment fixes.Mikhail Glushenkov2008-05-081-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50867 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Doxygen-style comments.Mikhail Glushenkov2008-05-076-47/+61
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50833 91177308-0d34-0410-b5e6-96231b3b80d8
* Change from llvm::SmallSet<std::string> to llvm::StringMap<char>.Mikhail Glushenkov2008-05-062-4/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50766 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new edge property combinator: weight.Mikhail Glushenkov2008-05-062-5/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50765 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a help string for the -c optionMikhail Glushenkov2008-05-061-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50764 91177308-0d34-0410-b5e6-96231b3b80d8
* Update documentation to reflect the current state of affairs.Mikhail Glushenkov2008-05-061-61/+157
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50763 91177308-0d34-0410-b5e6-96231b3b80d8
* Some cosmetic changes (change some comments, move code around a bit).Mikhail Glushenkov2008-05-062-43/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50762 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactoring: split the function CompilationGraph::Build() into two parts.Mikhail Glushenkov2008-05-062-10/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50760 91177308-0d34-0410-b5e6-96231b3b80d8
* Use edge weights to choose the right linker based on input language names.Mikhail Glushenkov2008-05-064-15/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50759 91177308-0d34-0410-b5e6-96231b3b80d8
* Add weights to graph edges. Choose between edges based on their weight.Mikhail Glushenkov2008-05-062-23/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50757 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the UnpackValues() function.Mikhail Glushenkov2008-05-063-27/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50756 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a --linker command-line option, make all tests pass.Mikhail Glushenkov2008-05-062-14/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50755 91177308-0d34-0410-b5e6-96231b3b80d8
* Naming fix: LLVMCCConfigurationEmitter -> LLVMCConfigurationEmitter.Mikhail Glushenkov2008-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50754 91177308-0d34-0410-b5e6-96231b3b80d8