summaryrefslogtreecommitdiff
path: root/tools/llvmc
Commit message (Collapse)AuthorAge
* Convert llvmc to use the lib/System interface instead of directlyReid Spencer2004-08-29
| | | | | | | using Unix operating system calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16089 91177308-0d34-0410-b5e6-96231b3b80d8
* License file for llvmc.Reid Spencer2004-08-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16045 91177308-0d34-0410-b5e6-96231b3b80d8
* Insert declarations for two new functions that support the dependentReid Spencer2004-08-24
| | | | | | | libraries feature. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16043 91177308-0d34-0410-b5e6-96231b3b80d8
* Run the compilation actions before we attempt linking work.Reid Spencer2004-08-24
| | | | | | | | Correctly implement the dependent libraries feature so that linked bytecode files automatically include any dependent libraries they specify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16042 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the directory specified by LLVM_LIB_SEARCH_PATH to the list ofReid Spencer2004-08-24
| | | | | | | directories to be searched during linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16041 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of error messages from CommandLine because -time-passes wasReid Spencer2004-08-24
| | | | | | | | defined twice. We make use of the new TimePassesIsEnabled global boolean value from Pass.h to access the value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16033 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjustments for changes in the configuration language.Reid Spencer2004-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16026 91177308-0d34-0410-b5e6-96231b3b80d8
* - Unify format of output messagesReid Spencer2004-08-24
| | | | | | | | - All errors throw std::string - Default output file name to a.out (if we're linking) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16025 91177308-0d34-0410-b5e6-96231b3b80d8
* Link with bcreader and vmcore.Reid Spencer2004-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16024 91177308-0d34-0410-b5e6-96231b3b80d8
* - Implement the %args% substitutionReid Spencer2004-08-24
| | | | | | | | | | | | | | - Implement parsing of the .output={bytecode|assembly} item. - Drop parsing support for translator.optimizes, translator.groks_dash_O, optimizer.groks_dash_O, translator.output_is_asm, optimizer.output_is_asm - Add parsing support for translator.output and optimizer.output - Add optimizer.required parsing support - Add linker.libs and linker.libpaths parsing support - Fix error messages to list correct set of tokens expected. - Rename FileReadable -> FileIsReadable (changed in CompilerDriver.cpp) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16023 91177308-0d34-0410-b5e6-96231b3b80d8
* - Alphabetize the list of token enumerators.Reid Spencer2004-08-24
| | | | | | | - Drop old tokens, insert new tokens git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16022 91177308-0d34-0410-b5e6-96231b3b80d8
* - Rename and rearrange for clarityReid Spencer2004-08-24
| | | | | | | | | | | - Drop name tokens not used any more (GROKS_DASH_O) - Rename OUTPUT_IS_ASM as OUTPUT and allow "bytecode" and "assembly" as values of it. - Simplify handleContext (now handleNameContext) arguments and ensure that it returns OPTION tokens exactly as scanned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16021 91177308-0d34-0410-b5e6-96231b3b80d8
* - Remove unused GetSuffix functionReid Spencer2004-08-24
| | | | | | | | | | | | | - Renamed FileReadable -> FileIsReadable - Remove support for GROKS_DASH_O; deferr it to %opts% substitution - Require a -o option except in case of linking where it defaults to a.out - Fix problem processing *.o and *.bc files. - Ignore optimization phase if -emit-raw-code - Correct the assembly generation phase to support -emit-native-code - Implement dependent library lookup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16020 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unneeded flags.Reid Spencer2004-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16019 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide support for retaining the version number found in a config file.Reid Spencer2004-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15995 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the VERSION token.Reid Spencer2004-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15994 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for version numbers.Reid Spencer2004-08-22
| | | | | | | Allow CRLF as a line terminator (as well as plain LF) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15993 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten lines so this file can be used as the documentation exampleReid Spencer2004-08-22
| | | | | | | directly. Remove -pre (experimental pass). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15992 91177308-0d34-0410-b5e6-96231b3b80d8
* Change @ -> % in config files. @name@ might be needed for config files toReid Spencer2004-08-20
| | | | | | | | themselves be configured via autoconf so its not a good substitition syntax for llvmc. Furthermore % is more llvmish :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15957 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the correct search for configuration files. llvmc will now tryReid Spencer2004-08-20
| | | | | | | | | | | | the following in this order: 1. -config-dir=/path/to/configs 2. LLVM_CONFIG_DIR=/path/to/configs 3. ~/.llvm/etc 4. $prefix/etc 5. /etc/llvm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15950 91177308-0d34-0410-b5e6-96231b3b80d8
* Add CONFIG_FILES so the language specific config files can be installed.Reid Spencer2004-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15949 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Assembly support.Reid Spencer2004-08-20
| | | | | | | Consolidate platform-specific code into "sys" namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15947 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually let it compile after file name changes.Reid Spencer2004-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15931 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved ConfigData -> ConfigurationReid Spencer2004-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15927 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement many new features for llvmc. This is the first version that willReid Spencer2004-08-19
| | | | | | | 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
* Back out dependencies on lib/System/Path.hReid Spencer2004-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15815 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix definitions to match tool's actual capabilities.Reid Spencer2004-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15814 91177308-0d34-0410-b5e6-96231b3b80d8
* More Functionality:Reid Spencer2004-08-15
| | | | | | | | | | | - cleaned up lexical scanner - added support for "lang.optN" configuration items - added temporary file support (ala lib/System) - corrected logic for deciding which phases to run - consolidated the Action and ActionPattern classes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15765 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial configuration files (to be installed) for ll (LLVM Assembly) andReid Spencer2004-08-15
| | | | | | | st (Stacker) source files. These versions for testing/review only. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15764 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted to use flex for tokenizing input so we can use an easier toReid Spencer2004-08-14
| | | | | | | | understand recursive descent parser, we can easily handle more syntax variety, and we can more easily change the configuration items accepted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15732 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix header commentary.Reid Spencer2004-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15729 91177308-0d34-0410-b5e6-96231b3b80d8
* Additional functionality. This version handles option parsing and parameterReid Spencer2004-08-13
| | | | | | | | subsitution correctly for at least .ll and .st files. There's still a long way to go (i.e. this isn't worth of review yet). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15728 91177308-0d34-0410-b5e6-96231b3b80d8
* First version of a utility internal to llvmc that handles the parsing andReid Spencer2004-08-13
| | | | | | | construction of configuration data for compiler front ends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15727 91177308-0d34-0410-b5e6-96231b3b80d8
* Move CompilerDriver.h here.Reid Spencer2004-08-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15609 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial makefile for the LLVM Compiler Driver.Reid Spencer2004-08-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15608 91177308-0d34-0410-b5e6-96231b3b80d8
* First "do nothing" version of the LLVM Compiler Driver. This version justReid Spencer2004-08-10
processes command line arguments and allows --help to be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15607 91177308-0d34-0410-b5e6-96231b3b80d8