Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added support for the extractelement operation. | Robert Bocchino | 2006-01-10 | 1 | -0/+38 | |
| | | | | llvm-svn: 25181 | |||||
* | Fix an assertion to allow constant folding of packed values | Chris Lattner | 2006-01-04 | 1 | -3/+4 | |
| | | | | llvm-svn: 25071 | |||||
* | Revert previous patch. Additional tests fail. | Reid Spencer | 2005-12-22 | 1 | -3/+0 | |
| | | | | llvm-svn: 24968 | |||||
* | Fix PR409: | Reid Spencer | 2005-12-22 | 1 | -0/+3 | |
| | | | | | | | | Implement the suggested check to ensure that out-of-range float constants don't get accepted by LLVM accidentally. Adjust the supporting test cases as well. llvm-svn: 24963 | |||||
* | add a hack to work around broken VC++ scoping rules. Thx to JeffC for pointing | Chris Lattner | 2005-10-07 | 1 | -13/+13 | |
| | | | | | | this out to me llvm-svn: 23655 | |||||
* | refactor a bit of code. | Chris Lattner | 2005-10-04 | 1 | -29/+35 | |
| | | | | | | | | When moving constant entries in 'Map' if the entry is the representative constant for the abstractypemap, make sure to update it as well. This fixes the bcreader failures from last night on several C++ apps. llvm-svn: 23628 | |||||
* | Minor speedup to avoid array searches given a Use*. This speeds up bc reading | Chris Lattner | 2005-10-04 | 1 | -23/+39 | |
| | | | | | | of the python test from 1:00 to 54s. llvm-svn: 23627 | |||||
* | Change the signature of replaceUsesOfWithOnConstant. The bool was always | Chris Lattner | 2005-10-04 | 1 | -32/+12 | |
| | | | | | | | true dynamically. Finally, pass the Use* that replaceAllUsesWith has into the method for future use. llvm-svn: 23626 | |||||
* | For large constants (e.g. arrays and structs with many elements) just | Chris Lattner | 2005-10-04 | 1 | -23/+56 | |
| | | | | | | | | | | | creating the keys and doing comparisons to index into 'Map' takes a lot of time. For these large constants, keep an inverse map so that 'remove' and move operations are much faster. This speeds up a release build of the bc reader on Eric's nasty python bytecode file from 1:39 to 1:00s. llvm-svn: 23624 | |||||
* | minor cleanup/fastpath for the bcreader. This speeds up the bcreader | Chris Lattner | 2005-10-04 | 1 | -2/+23 | |
| | | | | | | from 1:41 -> 1:39 on the large python .bc file in a release build. llvm-svn: 23623 | |||||
* | implement the struct version of the array speedup, speeding up the | Chris Lattner | 2005-10-04 | 1 | -9/+49 | |
| | | | | | | testcase a bit more from 1:48 -> 1.40. llvm-svn: 23619 | |||||
* | Change ConstantArray::replaceUsesOfWithOnConstant to attempt to update | Chris Lattner | 2005-10-03 | 1 | -8/+58 | |
| | | | | | | | | | | | | | constant arrays in place instead of reallocating them and replaceAllUsesOf'ing the result. This speeds up a release build of the bcreader from: 136.987u 120.866s 4:24.38 to 49.790u 49.890s 1:40.14 ... a 2.6x speedup parsing a large python bc file. llvm-svn: 23614 | |||||
* | move some methods, no other changes | Chris Lattner | 2005-10-03 | 1 | -130/+132 | |
| | | | | llvm-svn: 23613 | |||||
* | minor microoptimizations | Chris Lattner | 2005-10-03 | 1 | -14/+21 | |
| | | | | llvm-svn: 23612 | |||||
* | Split SimpleConstantVal up into its components, so each Constant subclass ↵ | Chris Lattner | 2005-09-27 | 1 | -10/+14 | |
| | | | | | | | | | | getsa different enum value. This allows 'classof' for these to be really simple,not needing to call getType() anymore. This speeds up isa/dyncast/etc for constants, and also makes them smaller. For example, the text section of a release build of InstCombine.cpp shrinks from 230037 bytes to 216363 bytes, a 6% reduction. llvm-svn: 23467 | |||||
* | Move code dependency for MathExtras.h out of Constants.h. | Jim Laskey | 2005-08-17 | 1 | -0/+9 | |
| | | | | llvm-svn: 22840 | |||||
* | Culling out use of unions for converting FP to bits and vice versa. | Jim Laskey | 2005-08-17 | 1 | -24/+5 | |
| | | | | llvm-svn: 22838 | |||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -31/+31 | |
| | | | | llvm-svn: 21427 | |||||
* | Add new function getPtrPtrFromArrayPtr(). | Alkis Evlogimenos | 2005-03-19 | 1 | -0/+7 | |
| | | | | llvm-svn: 20684 | |||||
* | Fix a typo in an assertion comment. | Reid Spencer | 2005-03-09 | 1 | -1/+1 | |
| | | | | | | Patch contributed by Vladimir Merzliakov. llvm-svn: 20529 | |||||
* | remove all of the various setName implementations, consolidating them into | Chris Lattner | 2005-03-05 | 1 | -4/+0 | |
| | | | | | | Value::setName, which is no longer virtual. llvm-svn: 20464 | |||||
* | Constants never get names. | Chris Lattner | 2005-03-05 | 1 | -5/+2 | |
| | | | | llvm-svn: 20459 | |||||
* | Adjust to changes in User class. Aggregate constants now must explicitly | Chris Lattner | 2005-01-29 | 1 | -46/+81 | |
| | | | | | | manage their operands. llvm-svn: 19890 | |||||
* | Fix grammar | Misha Brukman | 2005-01-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 19854 | |||||
* | Allow getZeroExtend and getSignExtend to work with boolean inputs. | Chris Lattner | 2005-01-01 | 1 | -5/+13 | |
| | | | | llvm-svn: 19210 | |||||
* | Change this method to return ulong, not uint, for 64-bit targets. | Chris Lattner | 2004-12-13 | 1 | -5/+4 | |
| | | | | llvm-svn: 18906 | |||||
* | Revert the recent patches to "fix" ConstantFP::isValueValidForType. None | Reid Spencer | 2004-12-07 | 1 | -5/+1 | |
| | | | | | | of them seem to work everywhere. llvm-svn: 18598 | |||||
* | Provide a missing header file. | Reid Spencer | 2004-12-07 | 1 | -0/+1 | |
| | | | | llvm-svn: 18597 | |||||
* | Fix some comments. | Reid Spencer | 2004-12-07 | 1 | -1/+2 | |
| | | | | llvm-svn: 18596 | |||||
* | Fix check for valid floats. Also use and HUGE_VALF instead | Alkis Evlogimenos | 2004-12-07 | 1 | -10/+1 | |
| | | | | | | of std::numeric_limits, because they work in more platforms. llvm-svn: 18593 | |||||
* | For PR409: \ | Reid Spencer | 2004-12-06 | 1 | -0/+11 | |
| | | | | | | | Test the range of float constants to ensure we are not attempting to create a \ float constant using a double value that is out of range for a float llvm-svn: 18585 | |||||
* | Add hooks to free all memory allocated by the singleton factories in these | Chris Lattner | 2004-11-19 | 1 | -0/+36 | |
| | | | | | | files. Patch contributed by Morten Ofstad! llvm-svn: 17995 | |||||
* | Gep indices must be of int, uint, long or ulong type. | Alkis Evlogimenos | 2004-10-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 17313 | |||||
* | Make this actually work. | Alkis Evlogimenos | 2004-10-24 | 1 | -2/+2 | |
| | | | | llvm-svn: 17199 | |||||
* | Add ConstantExpr::getSizeOf(Type*). | Alkis Evlogimenos | 2004-10-24 | 1 | -0/+9 | |
| | | | | llvm-svn: 17196 | |||||
* | Implement UndefValue class | Chris Lattner | 2004-10-16 | 1 | -0/+45 | |
| | | | | llvm-svn: 17040 | |||||
* | Allow creation of GEP constantexprs with a vector of value* operands as | Chris Lattner | 2004-10-11 | 1 | -10/+19 | |
| | | | | | | | well as a vector of constant*'s. It turns out that this is more efficient and all of the clients want to do that, so we should cater to them. llvm-svn: 16923 | |||||
* | When creating constant arrays check that the initializer vector is the | Alkis Evlogimenos | 2004-09-15 | 1 | -0/+2 | |
| | | | | | | same size as the one in the array type. llvm-svn: 16354 | |||||
* | Add assertion descriptiosn on type mismatches when creating | Alkis Evlogimenos | 2004-09-10 | 1 | -6/+8 | |
| | | | | | | ConstantArray and ConstantPacked objects. llvm-svn: 16261 | |||||
* | Changes For Bug 352 | Reid Spencer | 2004-09-01 | 1 | -1/+1 | |
| | | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137 | |||||
* | Packed types, brought to you by Brad Jones | Brian Gaeke | 2004-08-20 | 1 | -0/+92 | |
| | | | | llvm-svn: 15938 | |||||
* | Check constant expression validity more strictly | Chris Lattner | 2004-08-17 | 1 | -0/+31 | |
| | | | | llvm-svn: 15883 | |||||
* | Add a hack to work around a problem my changes exposed | Chris Lattner | 2004-08-04 | 1 | -0/+7 | |
| | | | | llvm-svn: 15509 | |||||
* | Fix a latent bug exposed by my recent changes | Chris Lattner | 2004-08-04 | 1 | -1/+9 | |
| | | | | llvm-svn: 15498 | |||||
* | Stop using getValues(). | Alkis Evlogimenos | 2004-08-04 | 1 | -6/+6 | |
| | | | | llvm-svn: 15482 | |||||
* | Implement a FIXME, by not searching linearly through a map to remove an | Chris Lattner | 2004-08-04 | 1 | -8/+34 | |
| | | | | | | element. This speeds up the bytecode reader from 12.86s to 8.72s on 252.eon. llvm-svn: 15463 | |||||
* | Fix #includes of i*.h => Instructions.h as per PR403. | Misha Brukman | 2004-07-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 15334 | |||||
* | classof implementations are now inlined | Chris Lattner | 2004-07-19 | 1 | -42/+5 | |
| | | | | llvm-svn: 14987 | |||||
* | bug 122: | Reid Spencer | 2004-07-17 | 1 | -57/+5 | |
| | | | | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Minimize redundant isa<GlobalValue> usage - Correct isa<Constant> for GlobalValue subclass - Delete ConstantPointerRef member function implementations llvm-svn: 14928 | |||||
* | implement new helper method | Chris Lattner | 2004-07-12 | 1 | -0/+8 | |
| | | | | llvm-svn: 14776 |