summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCastChris Lattner2007-01-061-4/+0
| | | | | | is only called on integers. llvm-svn: 32949
* simplify some more code now that there are not multiple different integerChris Lattner2007-01-061-8/+4
| | | | | | types of the same size llvm-svn: 32948
* eliminate some uses of canLosslesslyBitCastTo, this actually makes the code ↵Chris Lattner2007-01-061-15/+14
| | | | | | | | stronger, by nuking relational pointer comparisons with casts. llvm-svn: 32947
* no need to worry about int vs uint any more.Chris Lattner2007-01-061-2/+1
| | | | llvm-svn: 32946
* new noteChris Lattner2007-01-061-0/+5
| | | | llvm-svn: 32945
* RegenerateReid Spencer2007-01-063-6/+6
| | | | llvm-svn: 32944
* Test Case for PR1080.Reid Spencer2007-01-061-0/+24
| | | | llvm-svn: 32943
* For PR1080:Reid Spencer2007-01-061-2/+2
| | | | | | | | Emit the correct syntax for icmp and fcmp constant expressions. The predicate goes outside the parentheses not inside. This was a change made in the assembler without the corresponding change made in llvm-upgrade. llvm-svn: 32942
* setSetCCIsExpensive is gone.Evan Cheng2007-01-051-2/+0
| | | | llvm-svn: 32941
* Expand fcopysign to the bitwise sequence if select is marked as expensive.Evan Cheng2007-01-051-4/+6
| | | | llvm-svn: 32940
* - Remove isSetCCExpensive() etc. These are no longer used.Evan Cheng2007-01-051-10/+8
| | | | | | | - Add isSelectExpensive() etc. It's used to tell codegen that select is expensive for a given target, avoid using it if possible. Currently it's only used to expand FCOPYSIGN. llvm-svn: 32939
* 1) Remove old AnalysisResolver.Devang Patel2007-01-054-62/+24
| | | | | | 2) Rename AnalysisResolver_New as AnalysisResolver llvm-svn: 32938
* Fix dependencies. The lexer depends on the grammar for the UpgradeParser.hReid Spencer2007-01-051-2/+1
| | | | | | | file so make it depend on the .y file as well. This ensures that in parallel builds the lexer is built after bison runs. llvm-svn: 32937
* Update test case.Evan Cheng2007-01-051-2/+0
| | | | llvm-svn: 32936
* For PR1077:Reid Spencer2007-01-051-2/+1
| | | | | | Remove the XFAIL now that global redefinitions are not permitted. llvm-svn: 32935
* Regenerate.Reid Spencer2007-01-053-319/+281
| | | | llvm-svn: 32934
* For PR1077:Reid Spencer2007-01-051-26/+7
| | | | | | | | Disallow merging of dupliate global variables. It is now illegal to declare or define two global variables of the same name and same type. llvm-gcc3 is dead in 2.0 and llvm-gcc4 doesn't have that problem nor need the hack. llvm-svn: 32933
* - FCOPYSIGN custom lowering bug. Clear the sign bit of operand 0 first beforeEvan Cheng2007-01-053-21/+39
| | | | | | | | or'ing in the sign bit of operand 1. - Tweaking: rather than left shift the sign bit, fp_extend operand 1 first before taking its sign bit if its type is smaller than that of operand 0. llvm-svn: 32932
* Add an example to the trunc instruction to clarify trunc to bool.Reid Spencer2007-01-051-0/+1
| | | | | | Example provided by Baptiste Lepilleur. llvm-svn: 32931
* Bug in ExpandFCOPYSIGNToBitwiseOps(). Clear the old sign bit of operand 0Evan Cheng2007-01-051-4/+14
| | | | | | before or'ing in the sign bit of operand 1. llvm-svn: 32930
* CopyToReg source operand can be a register as well. e.g. Copy from ↵Evan Cheng2007-01-051-2/+6
| | | | | | GlobalBaseReg. llvm-svn: 32929
* Remove PassManagerT.hDevang Patel2007-01-051-0/+0
| | | | llvm-svn: 32928
* Remove old pass manager.Devang Patel2007-01-056-1238/+5
| | | | llvm-svn: 32927
* This test case needs parameter attributes, manually upgrade and don'tReid Spencer2007-01-051-21/+21
| | | | | | run llvm-upgrade. llvm-svn: 32926
* Global variables are not renamed by llvm-upgrade any more.Reid Spencer2007-01-055-10/+10
| | | | llvm-svn: 32925
* Update for change in parameter attribute syntax.Reid Spencer2007-01-051-1/+1
| | | | llvm-svn: 32924
* Update for change in parameter attributes syntax.Reid Spencer2007-01-051-32/+32
| | | | llvm-svn: 32923
* Wrap long RUN: line.Reid Spencer2007-01-051-2/+4
| | | | llvm-svn: 32922
* Globals are not renamed any more.Reid Spencer2007-01-051-1/+1
| | | | llvm-svn: 32921
* This test case needs zext and sext attributes so manually upgrade it andReid Spencer2007-01-051-13/+13
| | | | | | don't run llvm-upgrade. llvm-svn: 32920
* Changes to parameter attribute syntax.Reid Spencer2007-01-052-2/+2
| | | | llvm-svn: 32919
* Changes to parameter attributes syntax.Reid Spencer2007-01-051-13/+13
| | | | llvm-svn: 32918
* Globals are not being renamed any more.Reid Spencer2007-01-052-2/+2
| | | | llvm-svn: 32917
* This test case has been translated to 2.0 assembly so don't runReid Spencer2007-01-051-1/+1
| | | | | | llvm-upgrade on it. llvm-svn: 32916
* Fix this to check for the correct error message.Reid Spencer2007-01-051-1/+2
| | | | llvm-svn: 32915
* This tests for something that will become illegal soon. The test/FeatureReid Spencer2007-01-051-4/+0
| | | | | | suite has a test for renaming of global variables. llvm-svn: 32914
* Beef up this test case a little by introducing a global variable nameReid Spencer2007-01-051-2/+4
| | | | | | | conflict after upgrade resulting from collapsed type planes. The test now checks to make sure llvm-upgrade produces appropriate warning messages. llvm-svn: 32913
* Make this test that we can drop the implementation keyword for llvm-as.Reid Spencer2007-01-051-3/+3
| | | | | | llvm-upgrade is irrelevant for this test case. llvm-svn: 32912
* Fix the test case for the change in parameter attribute syntax. The @ isReid Spencer2007-01-051-6/+6
| | | | | | | no longer needed and the @(...) syntax has been dropped in favor of a simple space separated list of attribute names. llvm-svn: 32911
* For PR1077:Reid Spencer2007-01-053-4/+15
| | | | | | | | | | | Split this test case into three cases. globalredefinition.ll just tests that a global can be forward referenced. globalredefinition2.ll tests that llvm-upgrade will warn about renaming duplicate global variables. globalredefinition3.ll tests that llvm-as will generate an error on duplicate global variables. This last test is currently XFAIL because the restriction is not implemented yet. llvm-svn: 32910
* For PR1077:Reid Spencer2007-01-051-12/+0
| | | | | | | Global variable definitions with the same name and same type are no longer valid so don't attempt to test for this "feature". llvm-svn: 32909
* RegenerateReid Spencer2007-01-058-6247/+9419
| | | | llvm-svn: 32908
* Adjust to new header file name.Reid Spencer2007-01-051-1/+1
| | | | llvm-svn: 32907
* Major update of llvm-upgrade:Reid Spencer2007-01-053-238/+534
| | | | | | | | | | | | | | | | | | | 1. Completely revise the type system so that types are handled as const objects and not created multiple times, cloned, or otherwise copied. This gets around memory issues, saves memory, and also emulates LLVM's no-two-types-of-the-same-shape-created semantics. 2. Adjust the handling of global names. Basically, we cannot rename them for a variety of reasons: linking, forward references, etc. 3. Detect global names that have name conflicts as the result of collapsed type planes or redefinitions that llvm-as no longer accepts. These will produce warnings on stderr and one of the globals will be renamed. 4. Rename ParserInternals.h as UpgradeInternals.h so it doesn't conflict in the debugger with ParserInternals.h from lib/AsmParser. 5. Move the guts of the TypeInfo class into the grammar so we aren't implementing large functions in a header file. This also helps with debugging a bit. llvm-svn: 32906
* Regenerate.Reid Spencer2007-01-053-1170/+1159
| | | | llvm-svn: 32905
* Change the syntax for parameter attributes:Reid Spencer2007-01-054-76/+84
| | | | | | | | | | | | | | | | | | | 1. The @ sign is no longer necessary. 2. We now support "function attributes" as parameter attribute 0. 3. Instead of locating the return type attributes after the type of a function result, they are now located after the function header's closing paranthesis and before any alignment or section options. 4. The way has been prepared for a new "noreturn" function attribute but there is no support for recognizing it in the lexer nor doing anything with it if it does get set. 5. The FunctionType::getParamAttrsText method now has support for returning multiple attributes. This required a change in its interface. I'm unhappy that this change leads to 6 new shift/reduce conflicts, but in each case bison's decision to choose the shift is correct so there shouldn't be any damage from these conflicts. llvm-svn: 32904
* Give the assembler some input.Reid Spencer2007-01-051-3/+4
| | | | llvm-svn: 32903
* TypoEvan Cheng2007-01-051-1/+1
| | | | llvm-svn: 32902
* Add a test case for SSE fcopysign using SSE bitwise operations.Evan Cheng2007-01-051-0/+18
| | | | llvm-svn: 32901
* With SSE2, expand FCOPYSIGN to a series of SSE bitwise operations.Evan Cheng2007-01-053-8/+93
| | | | llvm-svn: 32900
OpenPOWER on IntegriCloud