Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename BoolTy as Int1Ty. Patch by Sheng Zhou. | Reid Spencer | 2007-01-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 33076 | |||||
* | For PR950: | Reid Spencer | 2006-12-31 | 1 | -12/+8 | |
| | | | | | | | | | | | | | | | | | | Three changes: 1. Convert signed integer types to signless versions. 2. Implement the @sext and @zext parameter attributes. Previously the type of an function parameter was used to determine whether it should be sign extended or zero extended before the call. This information is now communicated via the function type's parameter attributes. 3. The interface to LowerCallTo had to be changed in order to accommodate the parameter attribute information. Although it would have been convenient to pass in the FunctionType itself, there isn't always one present in the caller. Consequently, a signedness indication for the result type and for each parameter was provided for in the interface to this method. All implementations were changed to make the adjustment necessary. llvm-svn: 32788 | |||||
* | Packed Structures | Andrew Lenharth | 2006-12-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 32361 | |||||
* | Move getPreferredAlignmentLog from AsmPrinter to TargetData | Devang Patel | 2006-10-24 | 1 | -0/+23 | |
| | | | | llvm-svn: 31171 | |||||
* | For PR950: | Reid Spencer | 2006-10-20 | 1 | -2/+2 | |
| | | | | | | | | This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. llvm-svn: 31063 | |||||
* | Don't pass target name into TargetData anymore, it is never used or needed. | Chris Lattner | 2006-06-16 | 1 | -1/+1 | |
| | | | | | | | Remove explicit casts to std::string now that there is no overload resolution issues in the TargetData ctors. llvm-svn: 28830 | |||||
* | Remove ctor with each piece specifyable (which causes overload ambiguities), | Chris Lattner | 2006-06-16 | 1 | -32/+1 | |
| | | | | | | add a new init method. llvm-svn: 28828 | |||||
* | Make TargetData strings less redundant. | Owen Anderson | 2006-05-20 | 1 | -7/+0 | |
| | | | | llvm-svn: 28423 | |||||
* | Fix a parsing bug that caused 7 llvm-test regressions on PPC last night. | Chris Lattner | 2006-05-20 | 1 | -7/+7 | |
| | | | | | | I'm suprised it didn't cause more! llvm-svn: 28421 | |||||
* | Make all of the TargetMachine subclasses use the new string TargetData methods. | Owen Anderson | 2006-05-20 | 1 | -1/+5 | |
| | | | | | | This is part of the on-going work on PR 761. llvm-svn: 28414 | |||||
* | Fix a stupid bug when parsing TargetData strings. | Owen Anderson | 2006-05-17 | 1 | -1/+3 | |
| | | | | llvm-svn: 28373 | |||||
* | Add a method to generate a string representation from a TargetData. | Owen Anderson | 2006-05-12 | 1 | -0/+21 | |
| | | | | | | This continues the work on PR 761. llvm-svn: 28239 | |||||
* | Fix some tabbing issues. | Owen Anderson | 2006-05-12 | 1 | -29/+29 | |
| | | | | llvm-svn: 28237 | |||||
* | Add a new constructor to TargetData that builds a TargetData from its | Owen Anderson | 2006-05-12 | 1 | -0/+65 | |
| | | | | | | | | string representation. This is part of PR 761. llvm-svn: 28234 | |||||
* | revert previous patch | Chris Lattner | 2006-04-03 | 1 | -1/+1 | |
| | | | | llvm-svn: 27383 | |||||
* | Align vectors to the size in bytes, not bits. | Chris Lattner | 2006-04-03 | 1 | -1/+1 | |
| | | | | llvm-svn: 27376 | |||||
* | TargetData.cpp::getTypeInfo() was returning alignment of element type as the | Evan Cheng | 2006-03-31 | 1 | -0/+3 | |
| | | | | | | | | | alignment of a packed type. This is obviously wrong. Added a workaround that returns the size of the packed type as its alignment. The correct fix would be to return a target dependent alignment value provided via TargetLowering (or some other interface). llvm-svn: 27319 | |||||
* | Implement a new InvalidateStructLayoutInfo method and add some comments | Chris Lattner | 2006-01-14 | 1 | -0/+18 | |
| | | | | llvm-svn: 25304 | |||||
* | Update to use the new MathExtras.h support for log2 computation. | Chris Lattner | 2005-08-02 | 1 | -1/+1 | |
| | | | | | | Patch contributed by Jim Laskey! llvm-svn: 22594 | |||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -5/+5 | |
| | | | | llvm-svn: 21422 | |||||
* | add a StructLayout::getElementContainingOffset method. | Chris Lattner | 2005-03-13 | 1 | -0/+17 | |
| | | | | llvm-svn: 20579 | |||||
* | Initial support for packed types, contributed by Morten Ofstad | Chris Lattner | 2004-12-01 | 1 | -0/+7 | |
| | | | | llvm-svn: 18406 | |||||
* | Fix this function to not say that longs have 8-byte alignment on X86/PPC. | Chris Lattner | 2004-11-02 | 1 | -1/+1 | |
| | | | | | | | | | This method is really a gross hack, but at least we can make it work on the targets we support right now. This bug fix stops a crash in a testcase reduced from 176.gcc llvm-svn: 17443 | |||||
* | 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 | |||||
* | Add a new helper method to get log2(type alignment) | Chris Lattner | 2004-08-17 | 1 | -0/+7 | |
| | | | | llvm-svn: 15887 | |||||
* | * Add BoolAlignment to TargetData, default is 1 byte, size 1 byte | Misha Brukman | 2004-07-23 | 1 | -6/+8 | |
| | | | | | | * Convert tabs to spaces llvm-svn: 15120 | |||||
* | Nuke a clearly bogus assertion | Chris Lattner | 2004-07-15 | 1 | -2/+0 | |
| | | | | llvm-svn: 14854 | |||||
* | Fix use-before-def thinko | Brian Gaeke | 2004-07-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 14570 | |||||
* | Handle targets where alignment can be bigger than the size of the data. | Chris Lattner | 2004-07-01 | 1 | -4/+4 | |
| | | | | | | Contributed by Vladimir Prus! llvm-svn: 14534 | |||||
* | Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() | Chris Lattner | 2004-06-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 14201 | |||||
* | Fix typo. | Brian Gaeke | 2004-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 12953 | |||||
* | Support getelementptr instructions which use uint's to index into structure | Chris Lattner | 2004-04-05 | 1 | -11/+13 | |
| | | | | | | | types and can have arbitrary 32- and 64-bit integer types indexing into sequential types. llvm-svn: 12653 | |||||
* | Use a map instead of annotations | Chris Lattner | 2004-02-26 | 1 | -23/+36 | |
| | | | | llvm-svn: 11875 | |||||
* | Adjust to the changed StructType interface. In particular, ↵ | Chris Lattner | 2004-02-09 | 1 | -4/+3 | |
| | | | | | | getElementTypes() is gone. llvm-svn: 11228 | |||||
* | finegrainify namespacification | Chris Lattner | 2003-12-22 | 1 | -3/+13 | |
| | | | | | | add new getIntPtrType() method llvm-svn: 10579 | |||||
* | Put all LLVM code into the llvm namespace, as per bug 109. | Brian Gaeke | 2003-11-11 | 1 | -1/+4 | |
| | | | | llvm-svn: 9903 | |||||
* | Added LLVM project notice to the top of every C++ source file. | John Criswell | 2003-10-20 | 1 | -0/+7 | |
| | | | | | | Header files will be on the way. llvm-svn: 9298 | |||||
* | Add support for 'any' pointer size and endianness | Chris Lattner | 2003-08-24 | 1 | -2/+2 | |
| | | | | llvm-svn: 8120 | |||||
* | Spell `necessary' correctly. | Misha Brukman | 2003-08-18 | 1 | -2/+2 | |
| | | | | llvm-svn: 7944 | |||||
* | Remove redundant const qualifiers from cast<> expressions | Chris Lattner | 2003-07-23 | 1 | -2/+2 | |
| | | | | llvm-svn: 7253 | |||||
* | No really, you _cannot use_ getelementptr on an unsized type: that makes | Chris Lattner | 2003-06-04 | 1 | -5/+1 | |
| | | | | | | no sense. llvm-svn: 6595 | |||||
* | Undo one of those last fixes -- it was incorrect. | Vikram S. Adve | 2003-06-04 | 1 | -3/+5 | |
| | | | | llvm-svn: 6593 | |||||
* | Minor cleanups | Chris Lattner | 2003-06-02 | 1 | -6/+3 | |
| | | | | llvm-svn: 6535 | |||||
* | * Fix divide by zero error with empty structs | Chris Lattner | 2003-05-21 | 1 | -5/+3 | |
| | | | | | | * Empty structs should have ALIGNMENT 1, not SIZE 1. llvm-svn: 6263 | |||||
* | Remove two fields from TargetData which are target specific. | Chris Lattner | 2003-04-26 | 1 | -6/+1 | |
| | | | | llvm-svn: 5963 | |||||
* | Whoops, 32 bit targets have _4_ byte pointers, not _32_ byte pointers! | Chris Lattner | 2003-04-25 | 1 | -2/+4 | |
| | | | | llvm-svn: 5937 | |||||
* | Allow for easy detection of when a "default" TargetData is created by the | Chris Lattner | 2003-04-25 | 1 | -0/+7 | |
| | | | | | | passmanager, which is never the right thing to do. llvm-svn: 5922 | |||||
* | add a new targetdata ctor to create a target data appropriate to the module | Chris Lattner | 2003-04-24 | 1 | -0/+18 | |
| | | | | llvm-svn: 5903 | |||||
* | Remove wierd case that can never happen | Chris Lattner | 2003-02-25 | 1 | -3/+0 | |
| | | | | llvm-svn: 5623 | |||||
* | * Privatize the TargetName | Chris Lattner | 2002-10-29 | 1 | -1/+2 | |
| | | | | | | | * Move optSizeForSubWordData to TargetData * Remove unused fields llvm-svn: 4417 |