aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto
Commit message (Collapse)AuthorAgeFilesLines
* Switching TargetMachineRegistry to use the new generic Registry.Gordon Henriksen2007-10-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43094 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a sys::Path API error caught by a gcc 4.2 warning.Reid Spencer2007-07-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39995 91177308-0d34-0410-b5e6-96231b3b80d8
* Here is the bulk of the sanitizing.Gabor Greif2007-07-052-4/+4
| | | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37913 91177308-0d34-0410-b5e6-96231b3b80d8
* switch tools to bitcode from bytecodeChris Lattner2007-05-062-22/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36872 91177308-0d34-0410-b5e6-96231b3b80d8
* bitcodifyChris Lattner2007-05-062-7/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36838 91177308-0d34-0410-b5e6-96231b3b80d8
* Now LICM is a LoopPass.Devang Patel2007-03-071-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35001 91177308-0d34-0410-b5e6-96231b3b80d8
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-1/+1
| | | | | | | is especially needed for bugpoint. This partly implements PR688 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34349 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid assert() in lto. Let linker handle all failures. Use LTO_WRITE_FAILUREBill Wendling2007-02-081-9/+4
| | | | | | | instead of LTO_UNKNOWN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34036 91177308-0d34-0410-b5e6-96231b3b80d8
* The new version of how to add passes to emit files. We explicitly call aBill Wendling2007-02-081-2/+26
| | | | | | | function to add the file writers between calls to add the passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34035 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR411:Reid Spencer2007-02-051-7/+0
| | | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33918 91177308-0d34-0410-b5e6-96231b3b80d8
* Add printVersion(). Linker can use it to print LLVM version number.Devang Patel2007-02-011-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33738 91177308-0d34-0410-b5e6-96231b3b80d8
* Include Makefile.config before testing OS.Devang Patel2007-02-011-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33735 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-3/+3
| | | | | | | confusion with external linkage types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
* default to emiting an uncompressed .bc fileChris Lattner2007-01-211-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33420 91177308-0d34-0410-b5e6-96231b3b80d8
* Modules are consumed when they are merged together by Linker.Devang Patel2007-01-081-0/+2
| | | | | | | | Clear modules vector so that destructure does not try to delete these modules again. Patch by Chandler Carruth. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33017 91177308-0d34-0410-b5e6-96231b3b80d8
* Build libLLVMlto on non-Darwin architectures. Resolves PR1055: ↵Chandler Carruth2007-01-082-3/+10
| | | | | | http://llvm.org/PR1055 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33006 91177308-0d34-0410-b5e6-96231b3b80d8
* Add C wrappers for the LTO library (PR1081). Patch by Chandler Carruth!Chris Lattner2007-01-061-0/+66
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32966 91177308-0d34-0410-b5e6-96231b3b80d8
* fix typoChris Lattner2007-01-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32965 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-6/+6
| | | | | | | now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-8/+10
| | | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
* Save temp. bc files when saveTemps flag is true. Use final output fileDevang Patel2006-10-261-11/+24
| | | | | | | | | name supplied by linker to construct temp bc file names. Remove tabs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31205 91177308-0d34-0410-b5e6-96231b3b80d8
* Supply alignment info to linker through LLVMSymbol.Devang Patel2006-10-251-6/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31181 91177308-0d34-0410-b5e6-96231b3b80d8
* Instead of hard coding global prefix, use TargetAsmInfo.Devang Patel2006-10-241-31/+55
| | | | | | | Add LTO destructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31168 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo. Add more comment. Avoid extra hash_map search.Devang Patel2006-10-231-6/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31144 91177308-0d34-0410-b5e6-96231b3b80d8
* Add removeModule().Devang Patel2006-10-231-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31142 91177308-0d34-0410-b5e6-96231b3b80d8
* Use FindProgramByName instead of FindExecutable.Devang Patel2006-10-091-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30846 91177308-0d34-0410-b5e6-96231b3b80d8
* Do error checking.Devang Patel2006-10-091-1/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30842 91177308-0d34-0410-b5e6-96231b3b80d8
* Use GetTemporaryDirectory. Fix http://llvm.org/bugs/show_bug.cgi?id=894Devang Patel2006-10-091-2/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30838 91177308-0d34-0410-b5e6-96231b3b80d8
* Use abstract class to facilitate dlopen() interface.Devang Patel2006-09-211-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30569 91177308-0d34-0410-b5e6-96231b3b80d8
* Add comment.Devang Patel2006-09-141-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30315 91177308-0d34-0410-b5e6-96231b3b80d8
* GlobalValue with InternalLinkage may have operands with ExternalLinkageDevang Patel2006-09-141-1/+1
| | | | | | | type. Do not ignore these operands while finding external references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30310 91177308-0d34-0410-b5e6-96231b3b80d8
* Using addPassesToEmitWholeFile is not a good idea here.Devang Patel2006-09-071-1/+14
| | | | | | | Use FunctionPassManager to do the job. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30160 91177308-0d34-0410-b5e6-96231b3b80d8
* Add linker into list of LINK_COMPONENTS.Devang Patel2006-09-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30159 91177308-0d34-0410-b5e6-96231b3b80d8
* Use addPassesToEmitWholeFile() instead of addPassesToEmitFile()Devang Patel2006-09-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30153 91177308-0d34-0410-b5e6-96231b3b80d8
* Add getTargetTriple() that linker can use to query target architecture.Devang Patel2006-09-061-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30132 91177308-0d34-0410-b5e6-96231b3b80d8
* Keep track of all modules crated using a name to module map.Devang Patel2006-09-061-1/+18
| | | | | | | Add private member function getMoudle(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30130 91177308-0d34-0410-b5e6-96231b3b80d8
* Instead of demangling symbol name by hand, use original name, which wasDevang Patel2006-09-061-2/+4
| | | | | | | used to mangle symbol name, directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30124 91177308-0d34-0410-b5e6-96231b3b80d8
* Extract target triplet from optimized module.Devang Patel2006-09-061-1/+4
| | | | | | | Untabify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30123 91177308-0d34-0410-b5e6-96231b3b80d8
* Use LINK_COMPONENTS to specify *components* to link against instead ofChris Lattner2006-09-041-6/+2
| | | | | | | using USED_LIBS to specify *libraries* to link against. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30090 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/+5
| | | | | | | | 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
* For PR797:Reid Spencer2006-08-211-1/+1
| | | | | | | | | 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
* 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
* 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
* 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
* 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