aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* I'm gonna be picky and say we don't really need that trailing slash "lib/"Misha Brukman2003-11-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10196 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we ONLY add a `-load' switch to the JIT command line if the file isMisha Brukman2003-11-241-1/+2
| | | | | | | verified as having an ELF header. This fixes PR151. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10195 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not DESTROY programs by default. No wonder bugpoint was not being useful ↵Chris Lattner2003-11-231-11/+7
| | | | | | all this time! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10175 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert the previous patch since it causes lots of miscompilations. :( :(Chris Lattner2003-11-221-4/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10172 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not crash when dealing with invoke and unwind instructions!Chris Lattner2003-11-221-4/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10160 91177308-0d34-0410-b5e6-96231b3b80d8
* Use new interfacesChris Lattner2003-11-221-6/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10159 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorder passes a bit. In particular, it makes sense to run globaldce ↵Chris Lattner2003-11-211-2/+4
| | | | | | | | | IMMEDIATELY after funcresolve. Also, run the mem2reg pass _early_ so that IPCP and DAE actually do stuff. Run instcombine and simplify cfg after this to cleanup the intraprocedural messes we create. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10134 91177308-0d34-0410-b5e6-96231b3b80d8
* When writing out the runner script, add -load=<lib> lines to pull in all theMisha Brukman2003-11-201-1/+18
| | | | | | | shared objects automagically, so it doesn't have to be done by hand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10114 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to search only for native shared object, and expose theMisha Brukman2003-11-202-7/+9
| | | | | | | functionality to the rest of gccld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10113 91177308-0d34-0410-b5e6-96231b3b80d8
* For consistency, removed space between function name and left paren in functionMisha Brukman2003-11-201-15/+15
| | | | | | | call, i.e. [ addPass (...) ] => [ addPass(...) ] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10105 91177308-0d34-0410-b5e6-96231b3b80d8
* * Doxygenified comments, simplifying them and shortening in the processMisha Brukman2003-11-201-67/+43
| | | | | | | * Eliminated extra space git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10104 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak the "-" as filename hack.Brian Gaeke2003-11-191-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10099 91177308-0d34-0410-b5e6-96231b3b80d8
* Also print an error msg. for files we cannot currently deal with.Brian Gaeke2003-11-191-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10097 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR134, by checking FileOpenable() on each input file before analyzing itsBrian Gaeke2003-11-191-1/+10
| | | | | | | type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10096 91177308-0d34-0410-b5e6-96231b3b80d8
* Only use -Wl,-R. if HAVE_LINK_R.Brian Gaeke2003-11-181-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10066 91177308-0d34-0410-b5e6-96231b3b80d8
* Include Support/FileUtilities.h.Brian Gaeke2003-11-161-13/+24
| | | | | | | | | | | | Print module identifier in DumpSymbolNamesFromModule(). In DumpSymbolNamesFromFile(), check whether it is an archive or a bytecode file, and call the corresponding reader function (ParseBytecodeFile or ReadArchiveFile). Unconditionally set MultipleFiles for archives. Fixes PR117. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10044 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a -verify option to verify the results of gccld passes.Brian Gaeke2003-11-161-43/+63
| | | | | | | Add a -disable-opt option to turn off gccld optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10040 91177308-0d34-0410-b5e6-96231b3b80d8
* When we find a module we want, in an archive, in verbose mode,Brian Gaeke2003-11-161-6/+13
| | | | | | | | | print out the module's identifier (which should now contain the name of both the archive and the module.) Wrap some lines at 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10039 91177308-0d34-0410-b5e6-96231b3b80d8
* As the comments indicate, this is a temporary, repulsive, hackChris Lattner2003-11-131-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9982 91177308-0d34-0410-b5e6-96231b3b80d8
* Restore the -llvm optionChris Lattner2003-11-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9915 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-1138-6/+133
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Move IsArchive, IsBytecode to FileUtilities. Fix up some method comments.Brian Gaeke2003-11-111-60/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9902 91177308-0d34-0410-b5e6-96231b3b80d8
* 'Tis quite silly to check for a cached version of the entire executable. ThatMisha Brukman2003-11-111-16/+0
| | | | | | | | amounts to checking for a completely-native version. We'll cache on a function-by-function basis instead (in the JIT's CodeEmitter). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9894 91177308-0d34-0410-b5e6-96231b3b80d8
* This version of Linker.cpp works a lot better, but it's a little messy. Sorry.Brian Gaeke2003-11-111-20/+28
| | | | | | | | | Use FileOpenable() instead of FileExists(). Create IsBytecode() predicate -- like IsArchive(), but for bytecode files. Use IsBytecode() before trying to load any file as a bytecode file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9893 91177308-0d34-0410-b5e6-96231b3b80d8
* The caching will not live in LLEE's execve() handler; that's suboptimal.Misha Brukman2003-11-111-8/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9890 91177308-0d34-0410-b5e6-96231b3b80d8
* Give gccld more gutsChris Lattner2003-11-092-2/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9835 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new command line optionChris Lattner2003-11-061-2/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9754 91177308-0d34-0410-b5e6-96231b3b80d8
* Give this header file an Emacs mode-line.Brian Gaeke2003-11-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9749 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not assume the first file is a bytecode file. Instead, construct a dummyBrian Gaeke2003-11-051-5/+3
| | | | | | | | | Module and link things into that. Also, fix a typo in an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9748 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten and correct some function-header comments.Brian Gaeke2003-11-051-53/+28
| | | | | | | | | | | | | | | Make "verbose" output MUCH nicer. Now it tells you when you are linking a bytecode file, or an archive, and whether it's because you called it by name, or because you gave it a -l option, and it says "Trying" before it takes action and prints a message in the past tense afterwards. Make LinkFiles not skip the first file in Files. Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is unset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9747 91177308-0d34-0410-b5e6-96231b3b80d8
* I hate it when bugpoint is all ready to give me a bytecode file, then crashesChris Lattner2003-11-054-25/+35
| | | | | | | | | | | | in final cleanups. Then you had to run the whole mess again with -disable-final-cleanups. This makes bugpoint run the cleanups in a protected environment so that if they crash, bugpoint itself doesn't crash. This makes things much happier, implements a FIXME, and gets rid of YABPO (yet another bugpoint option). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9743 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify the performFinalCleanups interfaceChris Lattner2003-11-054-13/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9740 91177308-0d34-0410-b5e6-96231b3b80d8
* Make -r work, fixing PR 91Chris Lattner2003-11-051-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9724 91177308-0d34-0410-b5e6-96231b3b80d8
* If linking a library, do not link other libraries, like libc, into it!Chris Lattner2003-11-031-1/+4
| | | | | | | This fixes lots of annoying warnings and error messages git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9677 91177308-0d34-0410-b5e6-96231b3b80d8
* never print zero executions blocksChris Lattner2003-10-311-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify codeChris Lattner2003-10-311-7/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9625 91177308-0d34-0410-b5e6-96231b3b80d8
* Add percentage infoChris Lattner2003-10-311-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9624 91177308-0d34-0410-b5e6-96231b3b80d8
* Hrm, some of my counters are wrapping around 32 bitsChris Lattner2003-10-311-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9623 91177308-0d34-0410-b5e6-96231b3b80d8
* If only have function profile, don't print out "not executed" for all of the ↵Chris Lattner2003-10-301-0/+1
| | | | | | blocks :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9622 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the ability to print out llvm code when the -annotated-llvm option is givenChris Lattner2003-10-301-5/+56
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9621 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the ability to synthesize function counts from block count informationChris Lattner2003-10-292-3/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9595 91177308-0d34-0410-b5e6-96231b3b80d8
* Print the top 20 most frequently executed blocks. Fix sort predicate problemChris Lattner2003-10-291-6/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9594 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup output a bitChris Lattner2003-10-281-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9567 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the ability for users to specify a specific argv[0] to pass into theChris Lattner2003-10-281-7/+16
| | | | | | | program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9565 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out command lines used to run the programsChris Lattner2003-10-282-1/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9562 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix extract to use the right TargetData, like Bugpoint does.Brian Gaeke2003-10-282-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9561 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for reading block frequencies. Fix bug in attribution of countsChris Lattner2003-10-283-2/+48
| | | | | | | to functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9559 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide an accessor for getting function count information. Print a simpleChris Lattner2003-10-283-11/+78
| | | | | | | report git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9557 91177308-0d34-0410-b5e6-96231b3b80d8
* Read in the bytecode and profile information, but don't do anything withChris Lattner2003-10-283-1/+175
| | | | | | | it yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9556 91177308-0d34-0410-b5e6-96231b3b80d8
* Build the llvm-prof directoryChris Lattner2003-10-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9552 91177308-0d34-0410-b5e6-96231b3b80d8