summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* From Chris' review: use cast instead of dyn_cast with an assert.Dan Gohman2008-02-111-8/+4
| | | | llvm-svn: 46962
* From Chris' review: fix 80 column violationsDan Gohman2008-02-111-5/+10
| | | | llvm-svn: 46961
* From Chris' review: change MemOperandSDNode's constructor to pass itsDan Gohman2008-02-111-1/+1
| | | | | | argument by reference, rather than by value. llvm-svn: 46960
* If the LHS of the comparison is a loop-invariant we also want to move it Wojciech Matyjewicz2008-02-112-2/+17
| | | | | | | | to the RHS. This simple change allows to compute loop iteration count for loops with condition similar to the one in the testcase (which seems to be quite common). llvm-svn: 46959
* Added "Profile" method to APFloat for use with FoldingSet.Ted Kremenek2008-02-116-29/+33
| | | | | | | | | | Added member template "Add" to FoldingSetNodeID that allows "adding" arbitrary objects to a profile via dispatch to FoldingSetTrait<T>::Profile(). Removed FoldingSetNodeID::AddAPFloat and FoldingSetNodeID::APInt, as their functionality is now replaced using the above mentioned member template. llvm-svn: 46957
* Add arbitrary integer support to getRegisterType andDuncan Sands2008-02-111-1/+11
| | | | | | | getNumRegisters. This is needed for calling functions with apint parameters or return values. llvm-svn: 46956
* Fix PR1798 - an error in the evaluation of SCEVAddRecExpr at an Wojciech Matyjewicz2008-02-115-64/+114
| | | | | | | | | | | | | | | | | | | | | | | | | arbitrary iteration. The patch: 1) changes SCEVSDivExpr into SCEVUDivExpr, 2) replaces PartialFact() function with BinomialCoefficient(); the computations (essentially, the division) in BinomialCoefficient() are performed with the apprioprate bitwidth necessary to avoid overflow; unsigned division is used instead of the signed one. Computations in BinomialCoefficient() require support from the code generator for APInts. Currently, we use a hack rounding up the neccessary bitwidth to the nearest power of 2. The hack is easy to turn off in future. One remaining issue: we assume the divisor of the binomial coefficient formula can be computed accurately using 16 bits. It means we can handle AddRecs of length up to 9. In future, we should use APInts to evaluate the divisor. Thanks to Nicholas for cooperation! llvm-svn: 46955
* Add a isBigEndian method to complement isLittleEndian.Duncan Sands2008-02-114-11/+12
| | | | llvm-svn: 46954
* Determine whether a spill kills the register it's spilling before insertion ↵Evan Cheng2008-02-112-8/+13
| | | | | | rather than trying to undo the kill marker afterwards. llvm-svn: 46953
* tweaks from dale.Chris Lattner2008-02-111-2/+2
| | | | llvm-svn: 46952
* updates from EvanChris Lattner2008-02-111-2/+4
| | | | llvm-svn: 46951
* Enable SSE4 codegen and pattern matching.Nate Begeman2008-02-115-25/+242
| | | | | | Add some notes to the README. llvm-svn: 46949
* additional missing featureNate Begeman2008-02-111-0/+1
| | | | llvm-svn: 46948
* corrected some spellingsGabor Greif2008-02-101-3/+3
| | | | | | maybe c380004 can be hyperlinked too? llvm-svn: 46934
* Various updates from Sam Bishop:Chris Lattner2008-02-109-75/+87
| | | | | | | | | | | | | | "I have been working my way through the JIT and Kaleidoscope tutorials in my (minuscule) spare time. Thanks again for writing them! I have attached a patch containing some minor changes, ranging from spelling and grammar fixes to adding a "Next: <next tutorial section>" hyperlink to the bottom of each page. Every page has been given the "next link" treatment, but otherwise I'm only half way through the Kaleidoscope tutorial. I will send a follow-on patch if time permits." llvm-svn: 46933
* Fix scalarrepl to not 'miscompile' undefined code, part #2.Chris Lattner2008-02-101-1/+1
| | | | | | | This fixes the store case, my previous patch just fixed the load case. rdar://5707076. llvm-svn: 46932
* xmm0 variable blendsNate Begeman2008-02-101-2/+27
| | | | llvm-svn: 46931
* Rename MRegisterInfo to TargetRegisterInfo.Dan Gohman2008-02-10107-596/+614
| | | | llvm-svn: 46930
* close an li tagChris Lattner2008-02-101-1/+1
| | | | llvm-svn: 46929
* Add some Ada info and correct a few buglets.Duncan Sands2008-02-101-11/+60
| | | | llvm-svn: 46928
* Add truncate and AssertZext result expansion.Duncan Sands2008-02-103-0/+33
| | | | llvm-svn: 46926
* remove the in progress marker.Chris Lattner2008-02-101-2/+0
| | | | llvm-svn: 46925
* validation fixesChris Lattner2008-02-101-1/+3
| | | | llvm-svn: 46924
* final set of major updatesChris Lattner2008-02-101-54/+83
| | | | llvm-svn: 46923
* Return "(c1 + c2)" instead of yet another ADD node (which made this aBill Wendling2008-02-101-1/+1
| | | | | | no-op). llvm-svn: 46922
* more prose, some organization improvements.Chris Lattner2008-02-101-66/+88
| | | | llvm-svn: 46921
* random notesChris Lattner2008-02-101-5/+32
| | | | llvm-svn: 46920
* add anoteChris Lattner2008-02-101-0/+7
| | | | llvm-svn: 46918
* Match GCC's behaviour for these sections.Nick Lewycky2008-02-101-2/+2
| | | | llvm-svn: 46916
* memopv16i8 had wrong alignment requirement, would have broken pabsbNate Begeman2008-02-091-129/+193
| | | | | | | | pabs{b,w,d} are not two address fix extract-to-mem sse4 ops add sse4 vector sign extend nodes llvm-svn: 46915
* add some more notes, still not ready for review :)Chris Lattner2008-02-091-7/+30
| | | | llvm-svn: 46914
* scoped_ptr.h was removed.Chris Lattner2008-02-092-24/+0
| | | | llvm-svn: 46913
* explain that NumElements in alloca and malloc defaults to oneGabor Greif2008-02-091-9/+9
| | | | llvm-svn: 46912
* Alignment of struct containing vectors depends onDale Johannesen2008-02-091-1/+1
| | | | | | | whether SSE is present, on Darwin anyway. Make it explicit. llvm-svn: 46909
* We should check that existing cast operation has the appropriate opcode ↵Wojciech Matyjewicz2008-02-091-19/+21
| | | | | | before we reuse it. llvm-svn: 46908
* Add a check if the initial value of the induction variable is 0 (the method ↵Wojciech Matyjewicz2008-02-091-6/+10
| | | | | | comment says it should be). llvm-svn: 46907
* Remove unused hidden option.Evan Cheng2008-02-091-6/+1
| | | | llvm-svn: 46903
* Skeleton of insert and extract matching, more to comeNate Begeman2008-02-091-2/+62
| | | | llvm-svn: 46902
* Tablegen support for insert & extract element matchingNate Begeman2008-02-093-1/+38
| | | | llvm-svn: 46901
* check that terminators only occur at the end of a block. This catches theChris Lattner2008-02-091-0/+5
| | | | | | | | common problem of putting two terminators in the same block. I can't write a testcase for this because the .ll parser rejects this before the verifier can, but this can occur when generating IR. llvm-svn: 46900
* Change ConstantSDNode to store an APInt instead of a uint64_t, andDan Gohman2008-02-083-7/+20
| | | | | | begin adding some methods to use it this way. llvm-svn: 46899
* Fix PR 1995.Devang Patel2008-02-082-21/+65
| | | | llvm-svn: 46898
* Forgot these files.Evan Cheng2008-02-083-4/+4
| | | | llvm-svn: 46896
* Also print alignment.Evan Cheng2008-02-081-1/+1
| | | | llvm-svn: 46895
* Add an isSignedIntN, like isIntN but for signed integer values instead ofDan Gohman2008-02-081-2/+13
| | | | | | unsigned. llvm-svn: 46894
* It's not always safe to fold movsd into xorpd, etc. Check the alignment of ↵Evan Cheng2008-02-0816-35/+204
| | | | | | the load address first to make sure it's 16 byte aligned. llvm-svn: 46893
* 64-bit (MMX) vectors do not need restrictive alignment.Dale Johannesen2008-02-081-6/+4
| | | | | | 128-bit vectors need it only when SSE is on. llvm-svn: 46890
* Constified operator<< in APSInt.Ted Kremenek2008-02-081-2/+2
| | | | llvm-svn: 46882
* Avoid needlessly casting away const qualifiers.Dan Gohman2008-02-084-8/+8
| | | | llvm-svn: 46877
* Avoid needlessly casting away const qualifiers.Dan Gohman2008-02-082-3/+3
| | | | llvm-svn: 46876
OpenPOWER on IntegriCloud