aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update this to work with recent asmprinter changeChris Lattner2007-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33143 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't add or sub zero to sp.Lauro Ramos Venancio2007-01-122-6/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33142 91177308-0d34-0410-b5e6-96231b3b80d8
* Build constants using instructions mov/orr or mvn/eor.Lauro Ramos Venancio2007-01-127-92/+196
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33141 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-01-123-660/+641
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33140 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove support for upgrading NOT. The llvm-upgrade lexer didn't recognizeReid Spencer2007-01-121-6/+1
| | | | | | | it either. NOT is just plain illegal now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33139 91177308-0d34-0410-b5e6-96231b3b80d8
* s/addPassToManager/add/gDevang Patel2007-01-122-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33138 91177308-0d34-0410-b5e6-96231b3b80d8
* RegenerateAnton Korobeynikov2007-01-123-4656/+6108
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33137 91177308-0d34-0410-b5e6-96231b3b80d8
* * PIC codegen for X86/Linux has been implementedAnton Korobeynikov2007-01-1231-168/+597
| | | | | | | | | * PIC-aware internal structures in X86 Codegen have been refactored * Visibility (default/weak) has been added * Docs fixes (external weak linkage, visibility, formatting) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33136 91177308-0d34-0410-b5e6-96231b3b80d8
* Move PMTopLevelManager, PMDataManager and FPPassManger classes intoDevang Patel2007-01-122-323/+357
| | | | | | | | | new PassManagers.h header. This opens door for implementing CGPassManager in IPA library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33135 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a bunch of duplicated code. Among other things, this fixesChris Lattner2007-01-121-93/+50
| | | | | | | constant folding of signed comparisons of bool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33134 91177308-0d34-0410-b5e6-96231b3b80d8
* unbreak i1 constants with the cpp writer, eliminate special case.Chris Lattner2007-01-121-6/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33133 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate redundant checkChris Lattner2007-01-121-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33132 91177308-0d34-0410-b5e6-96231b3b80d8
* regenerateChris Lattner2007-01-123-4326/+3197
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33131 91177308-0d34-0410-b5e6-96231b3b80d8
* This production is dead, the lexer can never return 'NOT'Chris Lattner2007-01-121-14/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33130 91177308-0d34-0410-b5e6-96231b3b80d8
* Branch conditions must be i1Chris Lattner2007-01-121-3/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33129 91177308-0d34-0410-b5e6-96231b3b80d8
* don't discriminate against boolChris Lattner2007-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33128 91177308-0d34-0410-b5e6-96231b3b80d8
* remove unneeded special casesChris Lattner2007-01-122-14/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33127 91177308-0d34-0410-b5e6-96231b3b80d8
* '==' is not a legal test operator on BSD. Use '='.Jeff Cohen2007-01-122-12/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33126 91177308-0d34-0410-b5e6-96231b3b80d8
* GEP operands can't be boolsChris Lattner2007-01-121-6/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33125 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify codeChris Lattner2007-01-121-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33123 91177308-0d34-0410-b5e6-96231b3b80d8
* Make a couple organizational changes. Type no longer derives from ValueReid Spencer2007-01-121-108/+117
| | | | | | | | | | (hasn't for ages) so move it up one level in the table of contents. Type needs to be understood before Value so move it before Value. Make the descriptions of types stand out a little more. Add references to the doxygen for the Type class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33122 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead code.Devang Patel2007-01-121-225/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33121 91177308-0d34-0410-b5e6-96231b3b80d8
* Update documentation for arbitrary precision integers:Reid Spencer2007-01-121-27/+57
| | | | | | | | | | 1. int -> i32 2. Describe the IntegerType class. 3. Correct the description of Type and its primitive type subclasses. 4. Document OpaqueType and PackedType a little better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33120 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Reid Spencer2007-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33118 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-01-122-79/+79
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33117 91177308-0d34-0410-b5e6-96231b3b80d8
* Integer type names need 1 or more digits, not zero or more.Reid Spencer2007-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33116 91177308-0d34-0410-b5e6-96231b3b80d8
* Always write 1 bit integers as i1 not "bool".Reid Spencer2007-01-121-5/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33115 91177308-0d34-0410-b5e6-96231b3b80d8
* Comment.Evan Cheng2007-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33114 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1064:Reid Spencer2007-01-1241-3388/+4029
| | | | | | | | | | | | | | | | | | | | | | | | Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33113 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix persistent conflict madness by removing these from cvs.Chris Lattner2007-01-123-8061/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33111 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement review feedback for the ConstantBool->ConstantInt merge. ChrisReid Spencer2007-01-1227-159/+175
| | | | | | | | | recommended that getBoolValue be replaced with getZExtValue and that get(bool) be replaced by get(const Type*, uint64_t). This implements those changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33110 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for changes in the IR. The ConstantIntegral, ConstantBool, andReid Spencer2007-01-121-3/+6
| | | | | | | ConstantInt classes were merged into just ConstantInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33107 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for changes in the assembly syntax. bool is replaced with i1.Reid Spencer2007-01-121-31/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33106 91177308-0d34-0410-b5e6-96231b3b80d8
* Store default libgcc routine names and allow them to be redefined by target.Evan Cheng2007-01-123-83/+313
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33105 91177308-0d34-0410-b5e6-96231b3b80d8
* If we know that it's a constant being casted, propagate through the castNick Lewycky2007-01-121-1/+10
| | | | | | | | instruction. Doesn't work the other way though (can't recover bits that have been truncated). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33104 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up logic after ConstantBool removal.Nick Lewycky2007-01-121-20/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33096 91177308-0d34-0410-b5e6-96231b3b80d8
* Start using PMStack. Now each pass is responsibe for assingingDevang Patel2007-01-111-28/+23
| | | | | | | | | a pass manager for itself. There is some opportunity to remove some dead code from PassManager.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33087 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't remove the find_rule label from FLEX output. It is needed by someReid Spencer2007-01-111-1/+0
| | | | | | | | versions of FLEX even through we don't use REJECT. Thanks to Jeff Cohen for tracking this down. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33085 91177308-0d34-0410-b5e6-96231b3b80d8
* Use getPassManagerType() instead of dynamic_cast.Devang Patel2007-01-111-18/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33078 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename BoolTy as Int1Ty. Patch by Sheng Zhou.Reid Spencer2007-01-1146-542/+542
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unnecessary boolean type check.Zhou Sheng2007-01-111-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33075 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug in ConstantInt::Inverted().Zhou Sheng2007-01-111-3/+3
| | | | | | | Modified comment of that method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33074 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1043:Zhou Sheng2007-01-1143-1824/+1930
| | | | | | | | Merge ConstantIntegral and ConstantBool into ConstantInt. Remove ConstantIntegral and ConstantBool from LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33073 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed indentation.Zhou Sheng2007-01-111-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33072 91177308-0d34-0410-b5e6-96231b3b80d8
* Shut up a warning about signed/unsigned.Reid Spencer2007-01-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33071 91177308-0d34-0410-b5e6-96231b3b80d8
* Put in some needed \ at the end of lines!!!Reid Spencer2007-01-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33070 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some logic furtherChris Lattner2007-01-111-11/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33069 91177308-0d34-0410-b5e6-96231b3b80d8
* Recommit my previous patch with a bugfix: printInfoComment works on bothChris Lattner2007-01-111-63/+67
| | | | | | | local and global values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33068 91177308-0d34-0410-b5e6-96231b3b80d8
* Quiet compiler warning. The only reason the function is marked virtualNick Lewycky2007-01-111-0/+2
| | | | | | | is so that it can be called from inside a debugger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33067 91177308-0d34-0410-b5e6-96231b3b80d8
* New predicate simplifier!Nick Lewycky2007-01-112-974/+1174
| | | | | | | Please do not enable, there is still some known miscompile problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33066 91177308-0d34-0410-b5e6-96231b3b80d8