Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make all help strings start in upper case. | Mikhail Glushenkov | 2008-05-30 | 1 | -4/+4 |
| | | | | llvm-svn: 51788 | ||||
* | Fix the -opt switch and add a test case for it. | Mikhail Glushenkov | 2008-05-30 | 3 | -8/+15 |
| | | | | llvm-svn: 51784 | ||||
* | Fix indentation. | Mikhail Glushenkov | 2008-05-30 | 1 | -1/+1 |
| | | | | llvm-svn: 51782 | ||||
* | Add a --dry-run option to llvmc2. Patch by Holger Schurig. | Mikhail Glushenkov | 2008-05-30 | 2 | -2/+8 |
| | | | | llvm-svn: 51781 | ||||
* | Add a --save-temps option. | Mikhail Glushenkov | 2008-05-30 | 4 | -7/+25 |
| | | | | llvm-svn: 51760 | ||||
* | Add a check for side effect-free options (specified only in the OptionList). | Mikhail Glushenkov | 2008-05-30 | 1 | -0/+3 |
| | | | | llvm-svn: 51759 | ||||
* | Documentation update. | Mikhail Glushenkov | 2008-05-30 | 1 | -0/+27 |
| | | | | llvm-svn: 51758 | ||||
* | Show argv[0] in error messages (like gcc). | Mikhail Glushenkov | 2008-05-30 | 1 | -4/+3 |
| | | | | llvm-svn: 51755 | ||||
* | New feature: OptionList. | Mikhail Glushenkov | 2008-05-30 | 2 | -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. llvm-svn: 51754 | ||||
* | Documentation update. | Mikhail Glushenkov | 2008-05-30 | 2 | -66/+120 |
| | | | | llvm-svn: 51753 | ||||
* | A small optimization: use static char* array instead of StrVector. | Mikhail Glushenkov | 2008-05-30 | 2 | -15/+16 |
| | | | | llvm-svn: 51752 | ||||
* | Make it possible to test if the '-o' option is provided. | Mikhail Glushenkov | 2008-05-30 | 1 | -0/+2 |
| | | | | | | | | | | The following is now allowed: (case (not_empty "o"), do_something, ...) This didn't work previously because "-o" is built-in. llvm-svn: 51751 | ||||
* | Add support for option aliases. | Mikhail Glushenkov | 2008-05-30 | 1 | -1/+2 |
| | | | | llvm-svn: 51749 | ||||
* | Fix some headers. | Mikhail Glushenkov | 2008-05-30 | 6 | -6/+6 |
| | | | | llvm-svn: 51745 | ||||
* | New tests for the 'case' expression: not_empty, in_language. | Mikhail Glushenkov | 2008-05-30 | 7 | -20/+30 |
| | | | | llvm-svn: 51744 | ||||
* | -E should print to stdout. | Mikhail Glushenkov | 2008-05-30 | 2 | -5/+6 |
| | | | | llvm-svn: 51743 | ||||
* | Make it possible to have multiple input languages for a single tool. | Mikhail Glushenkov | 2008-05-30 | 3 | -15/+26 |
| | | | | llvm-svn: 51742 | ||||
* | Rename StringVector to StrVector (to be consistent with ↵ | Mikhail Glushenkov | 2008-05-30 | 2 | -7/+6 |
| | | | | | | LLVMCConfigurationEmitter.cpp). llvm-svn: 51741 | ||||
* | Minor error message fixes. | Mikhail Glushenkov | 2008-05-30 | 1 | -3/+4 |
| | | | | llvm-svn: 51740 | ||||
* | Documentation and examples improvements | Mikhail Glushenkov | 2008-05-30 | 5 | -9/+89 |
| | | | | llvm-svn: 51739 | ||||
* | Do not generate empty 'if's for the output_suffix property. | Mikhail Glushenkov | 2008-05-30 | 1 | -2/+2 |
| | | | | llvm-svn: 51737 | ||||
* | Update documentation, add examples. | Mikhail Glushenkov | 2008-05-30 | 5 | -77/+241 |
| | | | | llvm-svn: 51736 | ||||
* | Rename LLVMC-Tutorial.rst to LLVMC-Reference.rst | Mikhail Glushenkov | 2008-05-30 | 1 | -0/+0 |
| | | | | llvm-svn: 51735 | ||||
* | Make it possible to change the output file suffix based on command-line options. | Mikhail Glushenkov | 2008-05-30 | 1 | -5/+2 |
| | | | | | | | | | | For instance, the following command: llvmc2 -E hello.c now generates a file with the correct suffix (hello.i). llvm-svn: 51733 | ||||
* | Add support for user-provided hooks and environment variable reads to the ↵ | Mikhail Glushenkov | 2008-05-30 | 1 | -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). llvm-svn: 51732 | ||||
* | Enable the response file ('llvmc @file') support. | Mikhail Glushenkov | 2008-05-30 | 1 | -2/+2 |
| | | | | llvm-svn: 51731 | ||||
* | Update the code to the fact that StringSet now lives in llvm/ADT. | Mikhail Glushenkov | 2008-05-30 | 3 | -46/+7 |
| | | | | llvm-svn: 51730 | ||||
* | Make it possible to use the generalised 'case' construct in the cmd_line ↵ | Mikhail Glushenkov | 2008-05-30 | 7 | -24/+68 |
| | | | | | | property. llvm-svn: 51728 | ||||
* | Add a generalised 'case' construct. | Mikhail Glushenkov | 2008-05-30 | 3 | -24/+33 |
| | | | | | | Besides assigning edge weights, it will also be used by the cmd_line tool property. llvm-svn: 51727 | ||||
* | remove the StripSymbolsPass. This should not be done by default in ↵ | Nick Kledzik | 2008-05-30 | 1 | -5/+0 |
| | | | | | | libLTO.dylib. The linker will remove the symbol names if needed after LTO is done llvm-svn: 51722 | ||||
* | For PR1338: rename include/llvm/ADT/ilist and friends to end with ".h" | Anton Korobeynikov | 2008-05-29 | 1 | -1/+1 |
| | | | | llvm-svn: 51687 | ||||
* | Re-enable the newly simplified ADCE. This fixes a regression on | Owen Anderson | 2008-05-29 | 1 | -1/+1 |
| | | | | | | Dhrystone introduced by its removal. llvm-svn: 51669 | ||||
* | use space insted of tabs | Nick Kledzik | 2008-05-28 | 1 | -13/+13 |
| | | | | llvm-svn: 51623 | ||||
* | fix infinite recursion if a global's initializer references the global | Nick Kledzik | 2008-05-27 | 1 | -2/+7 |
| | | | | llvm-svn: 51617 | ||||
* | Add instcombine after global optimizations. | Devang Patel | 2008-05-27 | 1 | -0/+6 |
| | | | | llvm-svn: 51611 | ||||
* | Use IPSCCPPass instead of IPConstantPropagationPass. | Devang Patel | 2008-05-27 | 1 | -3/+5 |
| | | | | llvm-svn: 51605 | ||||
* | Remove ADCE from the optimization pipeline. | Owen Anderson | 2008-05-27 | 1 | -1/+1 |
| | | | | llvm-svn: 51581 | ||||
* | Add #includes to make some dependencies explicit. | Dan Gohman | 2008-05-23 | 1 | -0/+1 |
| | | | | llvm-svn: 51496 | ||||
* | Make LTO expect common and weak to be represented differently. | Dale Johannesen | 2008-05-23 | 1 | -11/+1 |
| | | | | | | Reading .bc files from before that change will no longer work. llvm-svn: 51457 | ||||
* | Rename -no-lazy to -disable-lazy-compilation. | Evan Cheng | 2008-05-21 | 1 | -1/+1 |
| | | | | llvm-svn: 51386 | ||||
* | Add CommonLinkage, in a way that preserves the | Dale Johannesen | 2008-05-16 | 1 | -0/+3 |
| | | | | | | behavior on old .bc files. llvm-svn: 51210 | ||||
* | Add CommonLinkage to lto (treated same as weak AFAICT) | Dale Johannesen | 2008-05-16 | 2 | -1/+4 |
| | | | | | | and llvm-nm (prints as C). llvm-svn: 51209 | ||||
* | Re-enable tail duplication pass (now with default threshold down to 1 ↵ | Evan Cheng | 2008-05-16 | 1 | -0/+1 |
| | | | | | | instruction). llvm-svn: 51184 | ||||
* | Fix a bunch of 80col violations that arose from the Create API change. Tweak ↵ | Gabor Greif | 2008-05-15 | 1 | -7/+11 |
| | | | | | | makefile targets to find these better. llvm-svn: 51143 | ||||
* | Remove tail duplication pass. | Evan Cheng | 2008-05-15 | 1 | -1/+0 |
| | | | | llvm-svn: 51139 | ||||
* | Recover nestedloop regression reported by nightly tester. | Devang Patel | 2008-05-14 | 1 | -0/+2 |
| | | | | llvm-svn: 51110 | ||||
* | Do not run instruction combiner in middle of loop optimization passes. | Devang Patel | 2008-05-14 | 1 | -1/+0 |
| | | | | llvm-svn: 51084 | ||||
* | Filter option names to escape symbols not allowed as C++ identifiers. | Mikhail Glushenkov | 2008-05-12 | 1 | -3/+3 |
| | | | | | | | Makes it possible to use options with names like "Wa,". Also fixes the -Wall option handling as a side-effect. llvm-svn: 50973 | ||||
* | Make it possible to choose between different compilation graph definitions ↵ | Mikhail Glushenkov | 2008-05-12 | 1 | -1/+2 |
| | | | | | | at compile-time. llvm-svn: 50972 | ||||
* | Fix some error messages; Make LLVMC pass through the exit code of a failed tool. | Mikhail Glushenkov | 2008-05-12 | 3 | -9/+47 |
| | | | | llvm-svn: 50971 |