aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Type.h
Commit message (Collapse)AuthorAgeFilesLines
* How could this ever have worked?Chris Lattner2006-04-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27409 91177308-0d34-0410-b5e6-96231b3b80d8
* add a new Type::getIntegralTypeMask() method, which is useful for clients thatChris Lattner2006-02-071-0/+9
| | | | | | | want to do bitwise inspection of integer types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26032 91177308-0d34-0410-b5e6-96231b3b80d8
* i love xmas!!!! *;D*Duraid Madina2005-12-261-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25016 91177308-0d34-0410-b5e6-96231b3b80d8
* Shrink derived types by 8 bytes each by not having to have 2 vtables pointersChris Lattner2005-11-131-1/+4
| | | | | | | and other MI overhead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24344 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor some code, moving methods and data around. This gets rid of someChris Lattner2005-11-131-21/+33
| | | | | | | virtual methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24342 91177308-0d34-0410-b5e6-96231b3b80d8
* Shrink the Type class from 32 to 28 bytes on Darwin (which has silly 32-bitChris Lattner2005-11-121-1/+1
| | | | | | | bools). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24326 91177308-0d34-0410-b5e6-96231b3b80d8
* remove a dead methodChris Lattner2005-11-121-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24325 91177308-0d34-0410-b5e6-96231b3b80d8
* add a method, remove a dead #includeChris Lattner2005-04-231-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21482 91177308-0d34-0410-b5e6-96231b3b80d8
* Add method to return the type this type will be promoted to if it isAlkis Evlogimenos2005-04-231-0/+14
| | | | | | | passed through a variable argument function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21462 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove trailing whitespaceMisha Brukman2005-04-211-27/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21408 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix problems compiling with G++ 4.x.x with -pedantic. Thanks toChris Lattner2005-03-071-1/+1
| | | | | | | Vladimir Merzliakov for the patch! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20513 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that type does not derive from Value, these do not need to be virtual.Chris Lattner2005-03-021-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20393 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling, patch contributed by Gabor GreifChris Lattner2005-02-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20342 91177308-0d34-0410-b5e6-96231b3b80d8
* `primitive' has no `a'Misha Brukman2005-01-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19808 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not return true from isSized for things without a size (like functions andChris Lattner2005-01-241-1/+10
| | | | | | | | labels) even though they are concrete. This fixes the DSA regressions from last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19807 91177308-0d34-0410-b5e6-96231b3b80d8
* This giant patch speeds up Type::isSized(). Before, this would have to searchChris Lattner2005-01-241-2/+1
| | | | | | | | | | | | | | | large nested types over and over again to determine if they are sized or not. Now, isSized() is able to make snap decisions about all concrete types, which are a common occurance (and includes all primitives). On 177.mesa, this speeds up DSE from 39.5s -> 21.3s and GCSE from 13.2s -> 11.3s, reducing gccas time from 80s -> 61s (this is a debug build). DSE and GCSE are still too slow on this testcase, but this is a simple improvement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19800 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a size_type typedef to LLVM containers to make Visual Studio shut upReid Spencer2004-12-131-1/+2
| | | | | | | (and possibly to make LLVM more x86 64bit friendly). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18891 91177308-0d34-0410-b5e6-96231b3b80d8
* Add static functions to clear singleton maps. Patch contributed byChris Lattner2004-11-191-1/+7
| | | | | | | Morten Ofstad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17994 91177308-0d34-0410-b5e6-96231b3b80d8
* On second thought, OpaqueType is not really a good first-class type.Misha Brukman2004-10-121-5/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16941 91177308-0d34-0410-b5e6-96231b3b80d8
* Add commentChris Lattner2004-10-121-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16937 91177308-0d34-0410-b5e6-96231b3b80d8
* Opaque types are considered to be first-class.Misha Brukman2004-10-121-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16936 91177308-0d34-0410-b5e6-96231b3b80d8
* Change signature of this method againChris Lattner2004-10-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16810 91177308-0d34-0410-b5e6-96231b3b80d8
* Undoxyfy internal method.Misha Brukman2004-10-061-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16774 91177308-0d34-0410-b5e6-96231b3b80d8
* Doxygen-ify commentsMisha Brukman2004-10-061-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16773 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename method, change comment, add argumentChris Lattner2004-10-061-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16771 91177308-0d34-0410-b5e6-96231b3b80d8
* Use class instead of struct for defining classes. This unbreaks theAlkis Evlogimenos2004-09-281-1/+2
| | | | | | | build on windows. Patch contributed by Paolo Invernizzi! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16531 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes For Bug 352Reid Spencer2004-09-011-3/+3
| | | | | | | | | 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/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
* Packed types, brought to you by Brad JonesBrian Gaeke2004-08-201-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15938 91177308-0d34-0410-b5e6-96231b3b80d8
* Final fix for PR341: eliminate operator<<(ostream, Value*). Clients shouldChris Lattner2004-07-151-1/+0
| | | | | | | | now send references to ostreams instead of pointers. Sending pointers to ostreams will print their addresses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14849 91177308-0d34-0410-b5e6-96231b3b80d8
* Yeah, how about those 'primative' types huh?Chris Lattner2004-07-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14836 91177308-0d34-0410-b5e6-96231b3b80d8
* Make PATypeHolder and friends return non-const pointers to the types theyChris Lattner2004-07-141-2/+2
| | | | | | | | hold. Because types are basically immutable anyway, they should not be referenced as "const Type*" everywhere. Just "Type*" should suffice! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14824 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed unneeded forward declChris Lattner2004-07-091-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14727 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused methodChris Lattner2004-07-091-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14726 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate the UID field in the Type class, bringing it down to 28 bytes.Chris Lattner2004-07-081-11/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14709 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling of `equivalent'Misha Brukman2004-07-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14697 91177308-0d34-0410-b5e6-96231b3b80d8
* isSigned/isUnsigned/isInteger methods do not need to be virtualChris Lattner2004-07-081-7/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14694 91177308-0d34-0410-b5e6-96231b3b80d8
* Update comment.Chris Lattner2004-07-081-4/+4
| | | | | | | | Remove unused forward decl of Value.h Make Type 32 bytes instead of 36 bytes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14692 91177308-0d34-0410-b5e6-96231b3b80d8
* Make Type have no base classes. Previously it inherited Value. AlsoReid Spencer2004-07-041-15/+17
| | | | | | | | | removed the TypeTyID and TypeTy members so that the notion of the "Type Type" is no longer present in LLVM. Various other adjustments resulting from these changes were also made. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14592 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Type::isSized() to realize that "{ opaque }" is not sizedChris Lattner2004-07-021-2/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14585 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()Chris Lattner2004-06-171-11/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14201 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide the correct patch for bug 345. The solution is to add a setTypeNameReid Spencer2004-05-261-4/+5
| | | | | | | | | function to llvmAsmParser.y and then use it in the one place in the grammar that needs it. Also had to make Type::setName public because setTypeName needs it in order to retain compatibility with setValueName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13795 91177308-0d34-0410-b5e6-96231b3b80d8
* Give Type its own dump() method in preparation for Type != Value.Reid Spencer2004-05-251-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13746 91177308-0d34-0410-b5e6-96231b3b80d8
* Add two methods which have been needed for a long time: ↵Chris Lattner2004-03-261-1/+10
| | | | | | Type::get(Un)signedVersion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12522 91177308-0d34-0410-b5e6-96231b3b80d8
* Add two missing pieces from last checkinChris Lattner2004-02-171-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11513 91177308-0d34-0410-b5e6-96231b3b80d8
* Rearrange code to eliminate warningsChris Lattner2004-02-171-1/+89
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11512 91177308-0d34-0410-b5e6-96231b3b80d8
* Doxygenify comment.Misha Brukman2004-02-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11292 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that all of the derived types have disciplined interfaces, we can eliminateChris Lattner2004-02-091-51/+19
| | | | | | | | all of the ad-hoc storage of contained types. This allows getContainedType to not be virtual, and allows us to entirely delete the TypeIterator class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11230 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Tighten up what we consider to be first class types.Chris Lattner2003-10-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608 91177308-0d34-0410-b5e6-96231b3b80d8
* Added LLVM copyright header (for lack of a better term).John Criswell2003-10-201-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9304 91177308-0d34-0410-b5e6-96231b3b80d8