aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a section on the target datalayout syntax and describe the defaultsReid Spencer2007-02-191-2/+79
| | | | | | | and rules used by LLVM to construct the target's layout rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34433 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify some code by moving variable declarations into the only block thatReid Spencer2007-02-191-12/+6
| | | | | | | uses them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34432 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement support for non-standard integer bit widths of any size. TheReid Spencer2007-02-192-16/+39
| | | | | | | | | | | | | | rules alignment is to pick the alignment that corresponds to the smallest specified alignment that is larger than the bit width of the type or the largest specified integer alignment if none are larger than the bitwidth of the type. For the byte size, the size returned is the next larger multiple of the alignment for that type (using the above rule). This patch also changes bit widths from "short" to "uint32_t" to ensure there are enough bits to specify any bit width that LLVM can handle (currently 2^23); 16-bits isn't enough. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34431 91177308-0d34-0410-b5e6-96231b3b80d8
* Added test case for PR1207.Evan Cheng2007-02-191-0/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34429 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-apply my liveintervalanalysis changes. Now with PR1207 fixes.Evan Cheng2007-02-1923-104/+334
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34428 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix test case.Evan Cheng2007-02-191-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34427 91177308-0d34-0410-b5e6-96231b3b80d8
* this passes nowChris Lattner2007-02-191-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34426 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-gcc issue fixed, revert reversal :)Chris Lattner2007-02-192-34/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34425 91177308-0d34-0410-b5e6-96231b3b80d8
* remove warningChris Lattner2007-02-191-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34424 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily reverting the patch. It's breaking llvm-gcc build.Evan Cheng2007-02-192-15/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34423 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a FIXME for unwritten code.Reid Spencer2007-02-191-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34422 91177308-0d34-0410-b5e6-96231b3b80d8
* Corrected typo.Bill Wendling2007-02-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34421 91177308-0d34-0410-b5e6-96231b3b80d8
* Some minor tweaks and grammar cleanup.Reid Spencer2007-02-191-13/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34420 91177308-0d34-0410-b5e6-96231b3b80d8
* remove dead methodsChris Lattner2007-02-195-4324/+3230
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34419 91177308-0d34-0410-b5e6-96231b3b80d8
* remove use of deprecated apisChris Lattner2007-02-191-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34418 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate use of deprecated apisChris Lattner2007-02-193-5/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34417 91177308-0d34-0410-b5e6-96231b3b80d8
* remove use of deprecated apiChris Lattner2007-02-194-4433/+3307
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34416 91177308-0d34-0410-b5e6-96231b3b80d8
* add alternate version of constant ctors that don't take a vector. For nowChris Lattner2007-02-191-3/+19
| | | | | | | this offers no performance advantage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34415 91177308-0d34-0410-b5e6-96231b3b80d8
* fix validationChris Lattner2007-02-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34414 91177308-0d34-0410-b5e6-96231b3b80d8
* more wording changes and some minor additionsChris Lattner2007-02-191-41/+60
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34413 91177308-0d34-0410-b5e6-96231b3b80d8
* add the definite articleChris Lattner2007-02-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34412 91177308-0d34-0410-b5e6-96231b3b80d8
* rename section to Copyright, License, and PatentsChris Lattner2007-02-191-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34411 91177308-0d34-0410-b5e6-96231b3b80d8
* wording changesChris Lattner2007-02-191-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34410 91177308-0d34-0410-b5e6-96231b3b80d8
* add strong words about patentsChris Lattner2007-02-191-3/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34409 91177308-0d34-0410-b5e6-96231b3b80d8
* incremental changes to own section, protosection on patentsChris Lattner2007-02-191-14/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34408 91177308-0d34-0410-b5e6-96231b3b80d8
* fix TOC, clarify bullet in incremental devChris Lattner2007-02-191-10/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34407 91177308-0d34-0410-b5e6-96231b3b80d8
* refactor the top-level 'patches' section into a subsection of General Policies.Chris Lattner2007-02-191-77/+36
| | | | | | | | Much of its content is now in other parts of the doc, and this brings it up immediately after 'stay informed' and right before 'code reviews'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34406 91177308-0d34-0410-b5e6-96231b3b80d8
* minor changesChris Lattner2007-02-191-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34405 91177308-0d34-0410-b5e6-96231b3b80d8
* remove terminology section (this is not a legal document)Chris Lattner2007-02-191-56/+32
| | | | | | | move testcases above quality. Mention that a testcase is part of quality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34404 91177308-0d34-0410-b5e6-96231b3b80d8
* Transmogrify 'Starting New Work' into 'Making a Major Change', addChris Lattner2007-02-191-29/+41
| | | | | | | incremental development as a subsection of it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34403 91177308-0d34-0410-b5e6-96231b3b80d8
* A bunch of editting. I'm still not done with the 'patches' section.Chris Lattner2007-02-191-201/+223
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34401 91177308-0d34-0410-b5e6-96231b3b80d8
* clarify the 'developed by' lineChris Lattner2007-02-191-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34400 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1207:Reid Spencer2007-02-1923-333/+104
| | | | | | | | Revert patches that caused the problem. Evan, please investigate and reapply when you've discovered the problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34399 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some new constants.Reid Spencer2007-02-191-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34398 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Fix some indentation and variable names in the get{Min,Max}Value methods.Reid Spencer2007-02-181-8/+24
| | | | | | | | | 2. Implement toString for power-of-2 radix without using divide and always printing full words. This allows hex/binary to look at the bit respresentation of the APInt as well as avoid bugs in divide. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34396 91177308-0d34-0410-b5e6-96231b3b80d8
* fix commentChris Lattner2007-02-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34395 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify pass, delete dead gvar protos as well.Chris Lattner2007-02-181-16/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34394 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove broken links to gccas and gccld.Reid Spencer2007-02-181-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34393 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Use APINT_WORD_SIZE instead of sizeof(uint64_t)Reid Spencer2007-02-181-42/+59
| | | | | | | | 2. Teach slt about signedness. 3. Teach roundToDouble to properly sign extend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34391 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. "unsigned" -> "uint32_t" to gaurantee its bit width on all platforms.Reid Spencer2007-02-181-56/+47
| | | | | | | | | | | Size matters in this case. 2. Remove the unused whichByte private function, which was also broken. 3. Remove the non-const overload of the getWord function, getWord() is never used as an lvalue. 4. Rename some local variables for clarity (e.g. API -> Result). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34390 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Remove dead code (lshift function).Reid Spencer2007-02-181-227/+218
| | | | | | | | | | | | | 2. Consolidate memory allocation into just two inline functions. 3. Convert "unsigned" to uint32_t to gaurantee its size. 4. Eliminate magic constants and replace with symbolic equivalent. 5. Improve code documentation slightly. 6. Simplify the logical operator code because bitwidths must be the same. 7. Fix indentation per coding standards. 8. Use exit-early style to reduce indentation in several functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34389 91177308-0d34-0410-b5e6-96231b3b80d8
* Make add_1 exit early if carry is 0.Reid Spencer2007-02-181-36/+23
| | | | | | | | Fix line breaks and 80 cols violation. Simplify operator^= since bitwidths must be the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34388 91177308-0d34-0410-b5e6-96231b3b80d8
* avoid collision with /usr/bin/sample if this ever gets installed.Chris Lattner2007-02-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34387 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement signed output for toString.Reid Spencer2007-02-182-45/+76
| | | | | | | Fix bugs in countLeadingZeros and countTrailingZeros. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34386 91177308-0d34-0410-b5e6-96231b3b80d8
* temporarily revert Devang's most recent patch, which caused a largeChris Lattner2007-02-172-21/+4
| | | | | | | compile-time regression in LLC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34385 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some bugs in division logic.Reid Spencer2007-02-171-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34384 91177308-0d34-0410-b5e6-96231b3b80d8
* - Changes how function livein's are handled, they now have a start index of 0.Evan Cheng2007-02-172-56/+150
| | | | | | | | | - When coalescing a copy MI, if its destination is "dead", propagate the property to the source MI's destination if there are no intervening uses. - Detect dead function live-in's and remove them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34383 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not add livein's to entry MBB twice.Evan Cheng2007-02-171-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34382 91177308-0d34-0410-b5e6-96231b3b80d8
* Added removeLiveIn.Evan Cheng2007-02-171-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34381 91177308-0d34-0410-b5e6-96231b3b80d8
* Added findRegisterDefOperand().Evan Cheng2007-02-172-0/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34380 91177308-0d34-0410-b5e6-96231b3b80d8