Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | From Chris' review: use cast instead of dyn_cast with an assert. | Dan Gohman | 2008-02-11 | 1 | -8/+4 | |
| | | | | llvm-svn: 46962 | |||||
* | From Chris' review: fix 80 column violations | Dan Gohman | 2008-02-11 | 1 | -5/+10 | |
| | | | | llvm-svn: 46961 | |||||
* | From Chris' review: change MemOperandSDNode's constructor to pass its | Dan Gohman | 2008-02-11 | 1 | -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 Matyjewicz | 2008-02-11 | 2 | -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 Kremenek | 2008-02-11 | 6 | -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 and | Duncan Sands | 2008-02-11 | 1 | -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 Matyjewicz | 2008-02-11 | 5 | -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 Sands | 2008-02-11 | 4 | -11/+12 | |
| | | | | llvm-svn: 46954 | |||||
* | Determine whether a spill kills the register it's spilling before insertion ↵ | Evan Cheng | 2008-02-11 | 2 | -8/+13 | |
| | | | | | | rather than trying to undo the kill marker afterwards. llvm-svn: 46953 | |||||
* | tweaks from dale. | Chris Lattner | 2008-02-11 | 1 | -2/+2 | |
| | | | | llvm-svn: 46952 | |||||
* | updates from Evan | Chris Lattner | 2008-02-11 | 1 | -2/+4 | |
| | | | | llvm-svn: 46951 | |||||
* | Enable SSE4 codegen and pattern matching. | Nate Begeman | 2008-02-11 | 5 | -25/+242 | |
| | | | | | | Add some notes to the README. llvm-svn: 46949 | |||||
* | additional missing feature | Nate Begeman | 2008-02-11 | 1 | -0/+1 | |
| | | | | llvm-svn: 46948 | |||||
* | corrected some spellings | Gabor Greif | 2008-02-10 | 1 | -3/+3 | |
| | | | | | | maybe c380004 can be hyperlinked too? llvm-svn: 46934 | |||||
* | Various updates from Sam Bishop: | Chris Lattner | 2008-02-10 | 9 | -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 Lattner | 2008-02-10 | 1 | -1/+1 | |
| | | | | | | | This fixes the store case, my previous patch just fixed the load case. rdar://5707076. llvm-svn: 46932 | |||||
* | xmm0 variable blends | Nate Begeman | 2008-02-10 | 1 | -2/+27 | |
| | | | | llvm-svn: 46931 | |||||
* | Rename MRegisterInfo to TargetRegisterInfo. | Dan Gohman | 2008-02-10 | 107 | -596/+614 | |
| | | | | llvm-svn: 46930 | |||||
* | close an li tag | Chris Lattner | 2008-02-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 46929 | |||||
* | Add some Ada info and correct a few buglets. | Duncan Sands | 2008-02-10 | 1 | -11/+60 | |
| | | | | llvm-svn: 46928 | |||||
* | Add truncate and AssertZext result expansion. | Duncan Sands | 2008-02-10 | 3 | -0/+33 | |
| | | | | llvm-svn: 46926 | |||||
* | remove the in progress marker. | Chris Lattner | 2008-02-10 | 1 | -2/+0 | |
| | | | | llvm-svn: 46925 | |||||
* | validation fixes | Chris Lattner | 2008-02-10 | 1 | -1/+3 | |
| | | | | llvm-svn: 46924 | |||||
* | final set of major updates | Chris Lattner | 2008-02-10 | 1 | -54/+83 | |
| | | | | llvm-svn: 46923 | |||||
* | Return "(c1 + c2)" instead of yet another ADD node (which made this a | Bill Wendling | 2008-02-10 | 1 | -1/+1 | |
| | | | | | | no-op). llvm-svn: 46922 | |||||
* | more prose, some organization improvements. | Chris Lattner | 2008-02-10 | 1 | -66/+88 | |
| | | | | llvm-svn: 46921 | |||||
* | random notes | Chris Lattner | 2008-02-10 | 1 | -5/+32 | |
| | | | | llvm-svn: 46920 | |||||
* | add anote | Chris Lattner | 2008-02-10 | 1 | -0/+7 | |
| | | | | llvm-svn: 46918 | |||||
* | Match GCC's behaviour for these sections. | Nick Lewycky | 2008-02-10 | 1 | -2/+2 | |
| | | | | llvm-svn: 46916 | |||||
* | memopv16i8 had wrong alignment requirement, would have broken pabsb | Nate Begeman | 2008-02-09 | 1 | -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 Lattner | 2008-02-09 | 1 | -7/+30 | |
| | | | | llvm-svn: 46914 | |||||
* | scoped_ptr.h was removed. | Chris Lattner | 2008-02-09 | 2 | -24/+0 | |
| | | | | llvm-svn: 46913 | |||||
* | explain that NumElements in alloca and malloc defaults to one | Gabor Greif | 2008-02-09 | 1 | -9/+9 | |
| | | | | llvm-svn: 46912 | |||||
* | Alignment of struct containing vectors depends on | Dale Johannesen | 2008-02-09 | 1 | -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 Matyjewicz | 2008-02-09 | 1 | -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 Matyjewicz | 2008-02-09 | 1 | -6/+10 | |
| | | | | | | comment says it should be). llvm-svn: 46907 | |||||
* | Remove unused hidden option. | Evan Cheng | 2008-02-09 | 1 | -6/+1 | |
| | | | | llvm-svn: 46903 | |||||
* | Skeleton of insert and extract matching, more to come | Nate Begeman | 2008-02-09 | 1 | -2/+62 | |
| | | | | llvm-svn: 46902 | |||||
* | Tablegen support for insert & extract element matching | Nate Begeman | 2008-02-09 | 3 | -1/+38 | |
| | | | | llvm-svn: 46901 | |||||
* | check that terminators only occur at the end of a block. This catches the | Chris Lattner | 2008-02-09 | 1 | -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, and | Dan Gohman | 2008-02-08 | 3 | -7/+20 | |
| | | | | | | begin adding some methods to use it this way. llvm-svn: 46899 | |||||
* | Fix PR 1995. | Devang Patel | 2008-02-08 | 2 | -21/+65 | |
| | | | | llvm-svn: 46898 | |||||
* | Forgot these files. | Evan Cheng | 2008-02-08 | 3 | -4/+4 | |
| | | | | llvm-svn: 46896 | |||||
* | Also print alignment. | Evan Cheng | 2008-02-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 46895 | |||||
* | Add an isSignedIntN, like isIntN but for signed integer values instead of | Dan Gohman | 2008-02-08 | 1 | -2/+13 | |
| | | | | | | unsigned. llvm-svn: 46894 | |||||
* | It's not always safe to fold movsd into xorpd, etc. Check the alignment of ↵ | Evan Cheng | 2008-02-08 | 16 | -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 Johannesen | 2008-02-08 | 1 | -6/+4 | |
| | | | | | | 128-bit vectors need it only when SSE is on. llvm-svn: 46890 | |||||
* | Constified operator<< in APSInt. | Ted Kremenek | 2008-02-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 46882 | |||||
* | Avoid needlessly casting away const qualifiers. | Dan Gohman | 2008-02-08 | 4 | -8/+8 | |
| | | | | llvm-svn: 46877 | |||||
* | Avoid needlessly casting away const qualifiers. | Dan Gohman | 2008-02-08 | 2 | -3/+3 | |
| | | | | llvm-svn: 46876 |