| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Make stripPointerCasts and getUnderlyingObject | Duncan Sands | 2008-12-29 | 1 | -26/+39 |
| | | | | | | | non-recursive. llvm-svn: 61479 | ||||
| * | These messages should always be emitted when NDEBUG is unset, not when | Chris Lattner | 2008-12-13 | 1 | -2/+2 |
| | | | | | | | NDEBUG is unset and -debug is passed. llvm-svn: 60986 | ||||
| * | Comment typeo fix, thanks Duncan! | Chris Lattner | 2008-12-02 | 1 | -1/+1 |
| | | | | | llvm-svn: 60429 | ||||
| * | add a little helper function that does PHI translation. | Chris Lattner | 2008-12-02 | 1 | -0/+13 |
| | | | | | llvm-svn: 60405 | ||||
| * | Factorize code: remove variants of "strip off | Duncan Sands | 2008-10-01 | 1 | -8/+21 |
| | | | | | | | | | | | | pointer bitcasts and GEP's", and centralize the logic in Value::getUnderlyingObject. The difference with stripPointerCasts is that stripPointerCasts only strips GEPs if all indices are zero, while getUnderlyingObject strips GEPs no matter what the indices are. llvm-svn: 56922 | ||||
| * | Make pointer parameter const for isUsedInBasicBlock. | Bill Wendling | 2008-09-25 | 1 | -1/+1 |
| | | | | | llvm-svn: 56625 | ||||
| * | backing out my last commit, it was not intended to go on the trunk | Gabor Greif | 2008-09-19 | 1 | -2/+2 |
| | | | | | llvm-svn: 56349 | ||||
| * | first shot at removing Use::Val | Gabor Greif | 2008-09-19 | 1 | -2/+2 |
| | | | | | | | untested, Use::swap() is definitely not done yet llvm-svn: 56348 | ||||
| * | Rename instance variables, parameter argument names to eliminate a bunch of ↵ | Evan Cheng | 2008-07-24 | 1 | -5/+5 |
| | | | | | | | compilation warnings with -Wshadow. llvm-svn: 53970 | ||||
| * | fix some warnings when assertions are disabled. | Chris Lattner | 2008-06-21 | 1 | -1/+1 |
| | | | | | llvm-svn: 52587 | ||||
| * | Do not speculatively execute an instruction by hoisting it to its ↵ | Evan Cheng | 2008-06-12 | 1 | -0/+11 |
| | | | | | | | predecessor BB if any of its operands are defined but not used in BB. The transformation will prevent the operand from being sunk into the use block. llvm-svn: 52244 | ||||
| * | Move the operator new and operator delete out of line. This fixes an issue with | Nate Begeman | 2008-05-15 | 1 | -0/+19 |
| | | | | | | | | operator new() referring to the static initTags function, which has to be in the same linkage unit as any file including User.h. llvm-svn: 51136 | ||||
| * | Turn StripPointerCast() into a method | Anton Korobeynikov | 2008-05-07 | 1 | -28/+24 |
| | | | | | llvm-svn: 50836 | ||||
| * | Make StripPointerCast a common function (should we mak it method of Value ↵ | Anton Korobeynikov | 2008-05-06 | 1 | -0/+28 |
| | | | | | | | instead?) llvm-svn: 50775 | ||||
| * | fix a bug in my previous patch, a classic =/== bug. | Chris Lattner | 2008-04-30 | 1 | -1/+1 |
| | | | | | llvm-svn: 50483 | ||||
| * | add a method for comparing to see if a value has a specified name. | Chris Lattner | 2008-04-30 | 1 | -0/+7 |
| | | | | | llvm-svn: 50465 | ||||
| * | Print the name, not a pointer. | Nick Lewycky | 2008-03-01 | 1 | -1/+1 |
| | | | | | llvm-svn: 47796 | ||||
| * | Let invoke return aggregate value. | Devang Patel | 2008-02-21 | 1 | -1/+1 |
| | | | | | llvm-svn: 47425 | ||||
| * | Let function call return aggregate. | Devang Patel | 2008-02-21 | 1 | -1/+6 |
| | | | | | | | Now, we have very first multiple return value testcase! llvm-svn: 47424 | ||||
| * | Unbreak build with gcc 4.3: provide missed includes and silence most ↵ | Anton Korobeynikov | 2008-02-20 | 1 | -1/+1 |
| | | | | | | | annoying warnings. llvm-svn: 47367 | ||||
| * | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | | llvm-svn: 45418 | ||||
| * | Reverting dtor devirtualization patch. | Gordon Henriksen | 2007-12-10 | 1 | -200/+8 |
| | | | | | | | | _sabre_: it has a major problem: by the time ~Value is run, all of the "parts" of the derived classes have been destroyed _sabre_: the vtable lives to fight another day llvm-svn: 44760 | ||||
| * | fix some warnings. | Chris Lattner | 2007-12-10 | 1 | -15/+12 |
| | | | | | llvm-svn: 44756 | ||||
| * | Fix a big problem in the recent dtor refactoring work, now it passes ↵ | Chris Lattner | 2007-12-10 | 1 | -50/+14 |
| | | | | | | | 2007-11-19-InlineAsm.ll llvm-svn: 44755 | ||||
| * | Devirtualizing Value destructor (PR889). Patch by Pawel Kunio! | Gordon Henriksen | 2007-12-09 | 1 | -8/+239 |
| | | | | | llvm-svn: 44747 | ||||
| * | Use empty() member functions when that's what's being tested for instead | Dan Gohman | 2007-10-03 | 1 | -2/+2 |
| | | | | | | | of comparing begin() and end(). llvm-svn: 42585 | ||||
| * | Make Value::getNameLen not crash on an empty name, fixing PR1712. | Chris Lattner | 2007-09-28 | 1 | -1/+1 |
| | | | | | llvm-svn: 42444 | ||||
| * | simplify code, improve a comment. | Chris Lattner | 2007-08-21 | 1 | -6/+6 |
| | | | | | llvm-svn: 41205 | ||||
| * | add Value::getNameStart/getNameLen() accessors. | Chris Lattner | 2007-08-10 | 1 | -0/+15 |
| | | | | | llvm-svn: 40989 | ||||
| * | Fix a nasty memory leak, caused by my revamp of the value symbol table. | Chris Lattner | 2007-03-20 | 1 | -0/+5 |
| | | | | | llvm-svn: 35195 | ||||
| * | Unbreak VC++ build. | Jeff Cohen | 2007-03-05 | 1 | -1/+1 |
| | | | | | llvm-svn: 34917 | ||||
| * | rewrite Value::takeName to take advantage of the new symtab stuff. This | Chris Lattner | 2007-02-15 | 1 | -6/+55 |
| | | | | | | | | causes it to require no allocations and no symtab lookups in the common case. This speeds up instcombine 9.2% on 447.dealII. llvm-svn: 34324 | ||||
| * | Add a new Value::getNameStr method, which is preferred over getName. | Chris Lattner | 2007-02-15 | 1 | -1/+1 |
| | | | | | llvm-svn: 34310 | ||||
| * | add a setName variant that takes a null-terminated string. This can be | Chris Lattner | 2007-02-13 | 1 | -0/+4 |
| | | | | | | | used to avoid std::string allocations in common cases. llvm-svn: 34232 | ||||
| * | Add new setName accessor which doesn't require creating a string. | Chris Lattner | 2007-02-12 | 1 | -20/+28 |
| | | | | | llvm-svn: 34197 | ||||
| * | Switch ValueSymbolTable to use StringMap<Value*> instead of ↵ | Chris Lattner | 2007-02-12 | 1 | -19/+50 |
| | | | | | | | | | | 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%. llvm-svn: 34193 | ||||
| * | fix uninitialized variable | Chris Lattner | 2007-02-11 | 1 | -0/+1 |
| | | | | | llvm-svn: 34182 | ||||
| * | add an optimization for the case where the src has no name | Chris Lattner | 2007-02-11 | 1 | -0/+6 |
| | | | | | llvm-svn: 34174 | ||||
| * | add a helper method: Value::takeName | Chris Lattner | 2007-02-11 | 1 | -12/+26 |
| | | | | | llvm-svn: 34171 | ||||
| * | eliminate ValueSymbolTable::rename, it has no advantage over using ↵ | Chris Lattner | 2007-02-07 | 1 | -1/+3 |
| | | | | | | | | | remove+insert. Make insert/remove assert if used incorrectly instead of returning a bool. llvm-svn: 33988 | ||||
| * | For PR411: | Reid Spencer | 2007-02-05 | 1 | -6/+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. llvm-svn: 33918 | ||||
| * | For PR411: | Reid Spencer | 2007-01-06 | 1 | -4/+4 |
| | | | | | | | | | | Take an incremental step towards type plane elimination. This change separates types from values in the symbol tables by finally making use of the TypeSymbolTable class. This yields more natural interfaces for dealing with types and unclutters the SymbolTable class. llvm-svn: 32956 | ||||
| * | Removed iostream #includes. Replaced std::cerr with DOUT. | Bill Wendling | 2006-11-17 | 1 | -4/+4 |
| | | | | | llvm-svn: 31814 | ||||
| * | Change the signature of replaceUsesOfWithOnConstant. The bool was always | Chris Lattner | 2005-10-04 | 1 | -1/+1 |
| | | | | | | | | true dynamically. Finally, pass the Use* that replaceAllUsesWith has into the method for future use. llvm-svn: 23626 | ||||
| * | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -6/+6 |
| | | | | | llvm-svn: 21427 | ||||
| * | This fixes PR531, a crash when running the CBE on a bytecode file. | Chris Lattner | 2005-03-06 | 1 | -4/+14 |
| | | | | | | | | | | | | | | | | | | | The problem is that Function::renameLocalSymbols is iterating through the symbol table planes, occasionally calling setName to rename a value (which used to do a symbol table remove/insert pair). The problem is that if there is only a single value in a particular type plane that the remove will nuke the symbol table plane, and the insert will create and insert a new one. This hoses Function::renameLocalSymbols because it has an iterator to the old plane, under the (very reasonable) assumption that simply renaming a value won't cause the type plane to disappear. This patch fixes the bug by making the rename operation a single atomic operation, which has a side effect of making the whole thing faster too. :) llvm-svn: 20469 | ||||
| * | remove all of the various setName implementations, consolidating them into | Chris Lattner | 2005-03-05 | 1 | -3/+28 |
| | | | | | | | Value::setName, which is no longer virtual. llvm-svn: 20464 | ||||
| * | new method | Chris Lattner | 2005-02-23 | 1 | -0/+13 |
| | | | | | llvm-svn: 20288 | ||||
| * | Initialize new field. | Chris Lattner | 2005-02-05 | 1 | -1/+2 |
| | | | | | llvm-svn: 20044 | ||||
| * | Updates for new use list changes. | Chris Lattner | 2005-02-01 | 1 | -6/+23 |
| | | | | | llvm-svn: 19961 | ||||

