aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial checkin of the Mach-O emitter. There's plenty of fixmes, but itNate Begeman2006-08-231-3/+0
| | | | | | | does emit linkable .o files in very simple cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29850 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-234-15/+75
| | | | | | | | Final removal of exceptions from lib/System and adjustment of users to accommodate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29846 91177308-0d34-0410-b5e6-96231b3b80d8
* If unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.Devang Patel2006-08-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29844 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-231-1/+4
| | | | | | | | Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29843 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-232-60/+88
| | | | | | | Remove exception throwing from Path::getDirectoryContents and its users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29841 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-233-9/+20
| | | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29840 91177308-0d34-0410-b5e6-96231b3b80d8
* Rearrange order to build more frequently used tools first and make theReid Spencer2006-08-231-4/+11
| | | | | | | triplet ordering (large, small, small) explicit with one triplet per line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29839 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Reid Spencer2006-08-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29838 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-222-7/+27
| | | | | | | Change the Path::make*OnDisk methods exception free and adjust their usage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29836 91177308-0d34-0410-b5e6-96231b3b80d8
* Rearrange the build order to better accommodate parallel build by reducingReid Spencer2006-08-221-3/+4
| | | | | | | | | | memory pressure. This order spaces out large executables with small ones in between so that in a -j2 or -j3 build, it only attempts to build only one large executable at time. If you're doing -j4, you probably have enuogh memory anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29835 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the sys::Path::GetTemporaryDirectory method not throw exceptions andReid Spencer2006-08-221-10/+30
| | | | | | | adjust users of it to compensate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29831 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-219-41/+99
| | | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29791 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR885:Reid Spencer2006-08-212-3/+2
| | | | | | | | Consolidate the LinkAllAnalyses.h and LinkAllPasses.h headers into one so there is no dupliation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29787 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a build failureNate Begeman2006-08-211-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29786 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-214-4/+5
| | | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29785 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure the verify pass gets run after the user's loaded passes as wellReid Spencer2006-08-201-3/+2
| | | | | | | when the verify-each option is given. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29783 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename the -verify option to be -verify-each so that it doesn't conflictReid Spencer2006-08-201-4/+4
| | | | | | | | with the -verify pass option. It is also more accurate in that this option causes a verify option to be run after every pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29782 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert llvm-ld to use the PluginLoader like opt instead of having itsReid Spencer2006-08-201-19/+31
| | | | | | | | | | | one-off (and broken) RunOptimizations function. Also, run some cleanup passes after the user's loaded passes run. This make sure to clean up any cruft left around by thos passes. This patch was inspired by a patch submitted by Bram Adams. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29781 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR797:Reid Spencer2006-08-184-33/+15
| | | | | | | | | | | | | | Rid the Assembly Parser of exceptions. This is a really gross hack but it will do until the Assembly Parser is re-written as a recursive descent. The basic premise is that wherever the old "ThrowException" function was called (new name: GenerateError) we set a flag (TriggerError). Every production checks that flag and calls YYERROR if it is set. Additionally, each call to ThrowException in the grammar is replaced with GEN_ERROR which calls GenerateError and then YYERROR immediately. This prevents the remaining production from continuing after an error condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29763 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR872:Reid Spencer2006-08-188-478/+153
| | | | | | | | | | | | | | | | | | | | | Shrinkify LLVM's footprint by removing the analyze tool and moving its functionality into the opt tool. THis eliminates one of the largest tools from LLVM and doesn't make opt much bigger because it already included most of the analysis passes. To get the old analyze functionality pass the -analyze option to opt. Note that the integeration here is dead simple. The "main" of analyze was just copied to opt and invoked if the -analyze option was given. There may be opportunities for further integration such as removing the distinction between transform passes and analysis passes. To use the analysis functionality, if you previously did this: analyze $FNAME -domset -disable-verify you would now do this: opt -analyze $FNAME -domset -disable-verify Pretty simple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29762 91177308-0d34-0410-b5e6-96231b3b80d8
* fit in 80 colsChris Lattner2006-08-171-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29754 91177308-0d34-0410-b5e6-96231b3b80d8
* minor cleanupsChris Lattner2006-08-171-20/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29753 91177308-0d34-0410-b5e6-96231b3b80d8
* Patches to correct several bugs in llvmc.Reid Spencer2006-08-164-7/+58
| | | | | | | Patches contributed by Bram Adams. Thanks Bram. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29729 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding FindBugs.cpp so the -find-bugs option will work.Patrick Jenkins2006-08-151-0/+119
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29704 91177308-0d34-0410-b5e6-96231b3b80d8
* This commit adds a new feature called find-bugs. The find-bugs option can be ↵Patrick Jenkins2006-08-155-26/+73
| | | | | | invoked on a .bc file from the command like with -find-bugs and a list of passes you wish to test. This procedure takes the set of optimization passes the user specifies, randomizes the passes, runs the passes on the specified .bc file, compiles the program, and finally runs the program checking its output vs the .bc file with no optimizations. This process repeats until either the user kills bugpoint or an error occurs in the optimizations, program complitation, or the running of the program. If an error occurs, bugpoint attempts to diagnose the error by eliminating passes that are not at fault and code that is not needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29703 91177308-0d34-0410-b5e6-96231b3b80d8
* untabifyDevang Patel2006-08-141-15/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29686 91177308-0d34-0410-b5e6-96231b3b80d8
* Use mangler, instead of addUnderscore(), to get mangled name.Devang Patel2006-08-141-14/+20
| | | | | | | Now, LLVMSymbol keeps symbol original name and mangled name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29679 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide indentation of the generated program.Reid Spencer2006-08-141-181/+267
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29678 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't print double newline for --src-root and --obj-root as it tends toReid Spencer2006-08-111-2/+2
| | | | | | | confuse shells that might use this output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29629 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed typo. Thanks, Reid.Anton Korobeynikov2006-08-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29533 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed usage of "sort", which can lead to undeterministic behavior on mingw ↵Anton Korobeynikov2006-08-043-3/+3
| | | | | | & cygwin platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29532 91177308-0d34-0410-b5e6-96231b3b80d8
* Collect references from globals.Devang Patel2006-08-041-5/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29530 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR845:Reid Spencer2006-08-032-4/+2
| | | | | | | | | Enable the makefile check on the result of find-cycles.pl. LLVM is now cycle free and we intend to keep it that way. This patch will fail the build if cycles are found. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29517 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo in the name of expand_dependencies.Reid Spencer2006-08-031-4/+4
| | | | | | | Make the dependency line pattern match handle white space better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29516 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it fit into 80-columns.Devang Patel2006-08-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29503 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Devang Patel2006-08-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29502 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify. Use addprefix.Devang Patel2006-08-031-37/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29501 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that SparcV9 is gone, this logical can be simplified significantly.Chris Lattner2006-08-031-39/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29498 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove ARM for the moment since it is a work in progress.Devang Patel2006-08-031-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29495 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new tool, lto, to do link time optimization. This tool installsDevang Patel2006-08-032-0/+398
| | | | | | | | dynamic library that linker can use to optimize llvm byte codes at link time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29494 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the build on case-sensitive filesystems :(Chris Lattner2006-08-012-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29457 91177308-0d34-0410-b5e6-96231b3b80d8
* no need to check readability hereChris Lattner2006-08-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29449 91177308-0d34-0410-b5e6-96231b3b80d8
* No need to check isWriteable here (which isn't sufficient anyway). Just attemptChris Lattner2006-08-011-1/+2
| | | | | | | to do the operation and if it fails, oh well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29446 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Path::getFileStatusChris Lattner2006-08-011-7/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29445 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Path::getFileStatus to get status-related info.Chris Lattner2006-08-011-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29444 91177308-0d34-0410-b5e6-96231b3b80d8
* Introducing plugable register allocators and instruction schedulers.Jim Laskey2006-08-012-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29434 91177308-0d34-0410-b5e6-96231b3b80d8
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-282-7/+15
| | | | | | | | | instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29395 91177308-0d34-0410-b5e6-96231b3b80d8
* Updating the comments above SplitFunctionsOutOfModule in ExtractFunction.cpp ↵Patrick Jenkins2006-07-281-5/+0
| | | | | | to reflect the changes made to that function. Specifically I am removing the FIXME comment because the issue has been addressed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29385 91177308-0d34-0410-b5e6-96231b3b80d8
* This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ ↵Patrick Jenkins2006-07-281-15/+132
| | | | | | | | | to run through bugpoint in 1091.15 seconds (user + system time). The time it took to run this on my G4 before I made these changes is 1420.82 seconds (user + system time). This is a speedup of about 5.5 minutes. This is faster because SplitFunctionsOutOfModule no longer calls Clone Module and then removes the functions it doesnt want from the module returned. Instead it creates a module and copies over the specified functions, making changes to the new and old module where neccessary. This reduces the memory demand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29379 91177308-0d34-0410-b5e6-96231b3b80d8
* Undo last commit, which was committed accidentally.Reid Spencer2006-07-271-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29369 91177308-0d34-0410-b5e6-96231b3b80d8