aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Accomodate new name manglinge done by llvm-upgradeReid Spencer2007-01-061-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32954 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1082:Reid Spencer2007-01-062-59/+122
| | | | | | | | | Solve several related problems by making variable names more unique and dealing with recursive phi nodes. Unfortunately, this doesn't solve the main issue reported in the PR, but its a step in that direction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32953 91177308-0d34-0410-b5e6-96231b3b80d8
* Currently, there is no fix for this.Reid Spencer2007-01-061-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32952 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case for PR1082, an llvm-upgrade bug.Reid Spencer2007-01-061-0/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32951 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an option for getting the C compiler flags, --cflags.Reid Spencer2007-01-062-0/+6
| | | | | | | Patch contributed by Chandler Carruth git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32950 91177308-0d34-0410-b5e6-96231b3b80d8
* this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCastChris Lattner2007-01-061-4/+0
| | | | | | | is only called on integers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32949 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some more code now that there are not multiple different integerChris Lattner2007-01-061-8/+4
| | | | | | | types of the same size git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32948 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate some uses of canLosslesslyBitCastTo, this actually makes the code ↵Chris Lattner2007-01-061-15/+14
| | | | | | | | | stronger, by nuking relational pointer comparisons with casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32947 91177308-0d34-0410-b5e6-96231b3b80d8
* no need to worry about int vs uint any more.Chris Lattner2007-01-061-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946 91177308-0d34-0410-b5e6-96231b3b80d8
* new noteChris Lattner2007-01-061-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32945 91177308-0d34-0410-b5e6-96231b3b80d8
* RegenerateReid Spencer2007-01-063-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32944 91177308-0d34-0410-b5e6-96231b3b80d8
* Test Case for PR1080.Reid Spencer2007-01-061-0/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32943 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32942 91177308-0d34-0410-b5e6-96231b3b80d8
* setSetCCIsExpensive is gone.Evan Cheng2007-01-051-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32941 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand fcopysign to the bitwise sequence if select is marked as expensive.Evan Cheng2007-01-051-4/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32940 91177308-0d34-0410-b5e6-96231b3b80d8
* - 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32939 91177308-0d34-0410-b5e6-96231b3b80d8
* 1) Remove old AnalysisResolver.Devang Patel2007-01-054-62/+24
| | | | | | | 2) Rename AnalysisResolver_New as AnalysisResolver git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32938 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32937 91177308-0d34-0410-b5e6-96231b3b80d8
* Update test case.Evan Cheng2007-01-051-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32936 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1077:Reid Spencer2007-01-051-2/+1
| | | | | | | Remove the XFAIL now that global redefinitions are not permitted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32935 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-01-053-319/+281
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32934 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32933 91177308-0d34-0410-b5e6-96231b3b80d8
* - 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32932 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an example to the trunc instruction to clarify trunc to bool.Reid Spencer2007-01-051-0/+1
| | | | | | | Example provided by Baptiste Lepilleur. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32931 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32930 91177308-0d34-0410-b5e6-96231b3b80d8
* CopyToReg source operand can be a register as well. e.g. Copy from ↵Evan Cheng2007-01-051-2/+6
| | | | | | GlobalBaseReg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32929 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove PassManagerT.hDevang Patel2007-01-051-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32928 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove old pass manager.Devang Patel2007-01-056-1238/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32927 91177308-0d34-0410-b5e6-96231b3b80d8
* This test case needs parameter attributes, manually upgrade and don'tReid Spencer2007-01-051-21/+21
| | | | | | | run llvm-upgrade. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32926 91177308-0d34-0410-b5e6-96231b3b80d8
* Global variables are not renamed by llvm-upgrade any more.Reid Spencer2007-01-055-10/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32925 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for change in parameter attribute syntax.Reid Spencer2007-01-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32924 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for change in parameter attributes syntax.Reid Spencer2007-01-051-32/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32923 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap long RUN: line.Reid Spencer2007-01-051-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32922 91177308-0d34-0410-b5e6-96231b3b80d8
* Globals are not renamed any more.Reid Spencer2007-01-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32921 91177308-0d34-0410-b5e6-96231b3b80d8
* This test case needs zext and sext attributes so manually upgrade it andReid Spencer2007-01-051-13/+13
| | | | | | | don't run llvm-upgrade. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32920 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to parameter attribute syntax.Reid Spencer2007-01-052-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32919 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to parameter attributes syntax.Reid Spencer2007-01-051-13/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32918 91177308-0d34-0410-b5e6-96231b3b80d8
* Globals are not being renamed any more.Reid Spencer2007-01-052-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32917 91177308-0d34-0410-b5e6-96231b3b80d8
* This test case has been translated to 2.0 assembly so don't runReid Spencer2007-01-051-1/+1
| | | | | | | llvm-upgrade on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32916 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix this to check for the correct error message.Reid Spencer2007-01-051-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32915 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32914 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32913 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32912 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32911 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32910 91177308-0d34-0410-b5e6-96231b3b80d8
* 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". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32909 91177308-0d34-0410-b5e6-96231b3b80d8
* RegenerateReid Spencer2007-01-058-6247/+9419
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32908 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to new header file name.Reid Spencer2007-01-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32907 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32906 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-01-053-1170/+1159
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32905 91177308-0d34-0410-b5e6-96231b3b80d8