aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ValueSymbolTable.h
Commit message (Collapse)AuthorAgeFilesLines
* implement some fixme's by making "autorenaming" in the value symbol table notChris Lattner2008-06-271-6/+0
| | | | | | | thrash the heap with string stuff (e.g. utostr). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52838 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new version of Module::getFunction that takes a const char* insteadChris Lattner2008-06-271-0/+1
| | | | | | | | of a std::string. This avoids copying the string to the heap in common cases. Patch by Pratik Solanki! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52834 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | | | discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
* better portability for intptr_t.Chris Lattner2007-05-181-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37221 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement aliases. This fixes PR1017 and it's dependent bugs. CFE partAnton Korobeynikov2007-04-251-0/+1
| | | | | | | will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor SymbolTableListTraits to only have a single pointer in it, insteadChris Lattner2007-04-171-13/+6
| | | | | | | | | of two. This shrinkifies Function by 8 bytes (104->96) and Module by 8 bytes (68->60). On a testcase of mine, this reduces the memory used to read a module header from 565680b to 561024, a little over 4K. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36188 91177308-0d34-0410-b5e6-96231b3b80d8
* urr, yeah.Chris Lattner2007-04-171-4/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36187 91177308-0d34-0410-b5e6-96231b3b80d8
* Initialize the symbol table to zero explicitly. This ensures that theChris Lattner2007-04-041-1/+1
| | | | | | | | symbol table does no allocations for prototypes or other lazily deserialized functions, saving significant space and time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35643 91177308-0d34-0410-b5e6-96231b3b80d8
* Start value symbol tables out small (space for 16 elts), not huge (space for ↵Chris Lattner2007-03-261-1/+1
| | | | | | | | | 512). This is particularly useful for the JIT, which lazily deserializes functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35346 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch ValueSymbolTable to use StringMap<Value*> instead of ↵Chris Lattner2007-02-121-18/+15
| | | | | | | | | | std::map<std::string, Value*> as its main datastructure. There are many improvements yet to be made, but this speeds up opt --std-compile-opts on 447.dealII by 7.3%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34193 91177308-0d34-0410-b5e6-96231b3b80d8
* shrink vmcore by moving symbol table stripping support out of VMCore intoChris Lattner2007-02-071-6/+0
| | | | | | | the one IPO pass that uses it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33990 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate ValueSymbolTable::rename, it has no advantage over using ↵Chris Lattner2007-02-071-13/+4
| | | | | | | | | remove+insert. Make insert/remove assert if used incorrectly instead of returning a bool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33988 91177308-0d34-0410-b5e6-96231b3b80d8
* Make SymbolTable::insert, SymbolTable::remove and SymbolTable::rename private.Chris Lattner2007-02-071-3/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33987 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR411:Reid Spencer2007-02-051-3/+9
| | | | | | | | | | | 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
* 4 billion names is enough for anyone. And really fix the build on alpha ↵Andrew Lenharth2006-05-311-1/+1
| | | | | | this time git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28598 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix build breakage on alpha, without causing it on x86. as a bonus, all ↵Andrew Lenharth2006-05-311-1/+1
| | | | | | platforms can invent the same number of unique names now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28596 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR411:Reid Spencer2006-01-101-0/+138
First step in refactoring the SymbolTable is to split it into two classes, one for a symbol table of types and one for a symbol table of Values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25175 91177308-0d34-0410-b5e6-96231b3b80d8