summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix comment typo.Duncan Sands2008-12-081-1/+1
| | | | llvm-svn: 60697
* Factor out the code for sign-extending/truncating gep indicesDan Gohman2008-12-084-26/+57
| | | | | | | | | and use it in x86 address mode folding. Also, make getRegForValue return 0 for illegal types even if it has a ValueMap for them, because Argument values are put in the ValueMap. This fixes PR3181. llvm-svn: 60696
* add another level of caching for non-local pointer queries, keepingChris Lattner2008-12-082-8/+34
| | | | | | | | | track of whether the CachedNonLocalPointerInfo for a block is specific to a block. If so, just return it without any pred scanning. This is good for a 6% speedup on GVN (when it uses this lookup method, which it doesn't right now). llvm-svn: 60695
* consistencyChris Lattner2008-12-081-2/+2
| | | | llvm-svn: 60694
* introduce a new RoundUpAlignment helper function, use it to Chris Lattner2008-12-082-37/+40
| | | | | | | remove some more 64-bit divs and rems from the StructLayout ctor. llvm-svn: 60692
* Make ConstantAggregateZero::get return a ConstantAggregateZero*,Dan Gohman2008-12-082-2/+2
| | | | | | as suggested in PR3182. llvm-svn: 60691
* Update CPP backend for PrintModulePass API changes.Dan Gohman2008-12-081-4/+4
| | | | llvm-svn: 60690
* Perform cheap checks first.Evan Cheng2008-12-081-1/+3
| | | | llvm-svn: 60689
* Speed up getABITypeSize by turning a i64 mul and div into anChris Lattner2008-12-081-2/+6
| | | | | | | | | AND. This is speedup on any reasonable target, but particularly on 32-bit targets where this often turns into a libcall like udivdi3. We know that alignments are a power of two but the compiler doesn't. llvm-svn: 60688
* Some minor optimizations for isObjectSmallerThan.Chris Lattner2008-12-081-7/+12
| | | | llvm-svn: 60687
* Clarify a comment.Dan Gohman2008-12-081-1/+1
| | | | llvm-svn: 60685
* Move createVirtualRegister out-of-line.Dan Gohman2008-12-082-13/+19
| | | | llvm-svn: 60684
* Clarify some comments.Dan Gohman2008-12-081-2/+2
| | | | llvm-svn: 60683
* Generalize bugpoint's concept of a "safe" backend, and add optionsDan Gohman2008-12-085-63/+155
| | | | | | | | | | | | | | to allow the "safe" backend to be run with a different path, and/or with different command-line options. This enables the following use cases: - bugpoint llc against an llc command from a different build - bugpoint llc against the same llc with different command-line options - and more... Also, document the existing "custom" interpreter options. llvm-svn: 60681
* Fixes for Visual Studio users. Patch by OvermindDL1 on llvm-dev!Nick Lewycky2008-12-083-16/+47
| | | | llvm-svn: 60679
* Use bool instead of int, now that it no longer evokes a warning.Dan Gohman2008-12-071-1/+1
| | | | llvm-svn: 60678
* Use intptr_t instead of unsigned here, which is more appropriateDan Gohman2008-12-071-1/+1
| | | | | | | in a really obscure way, but more importantly has the side effect of avoiding a GCC warning in the case that IntType is bool. llvm-svn: 60677
* add an assert. the cast<> below would catch this but a message is moreChris Lattner2008-12-071-0/+2
| | | | | | useful. llvm-svn: 60674
* factor some code better.Chris Lattner2008-12-071-17/+17
| | | | llvm-svn: 60673
* factor some code, fixing some fixme's.Chris Lattner2008-12-071-32/+23
| | | | llvm-svn: 60672
* fix a typo duncan noticed!Chris Lattner2008-12-071-1/+1
| | | | llvm-svn: 60671
* CMake: Added Tool.cpp to tools/llvmc/driver.Oscar Fuentes2008-12-071-0/+1
| | | | llvm-svn: 60670
* Man page update.Mikhail Glushenkov2008-12-071-0/+12
| | | | llvm-svn: 60669
* Describe recent changes in the documentation.Mikhail Glushenkov2008-12-071-173/+243
| | | | llvm-svn: 60668
* Make 'extern' an option property.Mikhail Glushenkov2008-12-074-56/+35
| | | | | | Makes (forward) work better. llvm-svn: 60667
* Plugin updates: support more options.Mikhail Glushenkov2008-12-072-33/+74
| | | | llvm-svn: 60666
* Join tools couldn't be used in the middle of the toolchain.Mikhail Glushenkov2008-12-071-5/+4
| | | | llvm-svn: 60665
* Better error message.Mikhail Glushenkov2008-12-071-1/+6
| | | | llvm-svn: 60664
* Re-apply Cedric's changes.Mikhail Glushenkov2008-12-071-24/+24
| | | | | | | Use B instead of Beg (for consistency), but NodeA and NodeB instead of A and B. llvm-svn: 60663
* Add some clarifying comments.Mikhail Glushenkov2008-12-071-1/+2
| | | | llvm-svn: 60662
* Enable the Clang plugin by default.Mikhail Glushenkov2008-12-071-1/+1
| | | | | | | This will eventually replace `ccc`. The command `llvmc -clang` now uses the Clang toolchain instead of `llvm-gcc`. llvm-svn: 60661
* Update plugins to use (actions).Mikhail Glushenkov2008-12-072-9/+16
| | | | llvm-svn: 60660
* Try to guess when the auto-generated cl::Sink option should be marked 'extern'.Mikhail Glushenkov2008-12-071-5/+20
| | | | | | | This would be much easier to do if the CommandLine library didn't use global state. Global state is evil. llvm-svn: 60659
* Add a (progn)-like construct for (actions). Implemented as a DAG list.Mikhail Glushenkov2008-12-071-10/+37
| | | | llvm-svn: 60658
* Add tests for tblgen's LLVMC backend.Mikhail Glushenkov2008-12-077-0/+59
| | | | llvm-svn: 60657
* Use (actions) instead of option properties, support external options.Mikhail Glushenkov2008-12-077-1097/+1070
| | | | | | | Also includes a major refactoring. See documentation for more information. llvm-svn: 60656
* add support for caching pointer dependence queries. Nothing uses this yetChris Lattner2008-12-072-25/+233
| | | | | | so it "can't" break anything. That said, it does appear to work. llvm-svn: 60654
* fix a bug I introduced in simplifycfg handling single entry phi Chris Lattner2008-12-072-1/+13
| | | | | | | nodes. FoldSingleEntryPHINodes deletes the PHI, so there is no need to delete it afterward. llvm-svn: 60653
* Switch to top-down mode and fix a crasher this exposed caused by an error in theOwen Anderson2008-12-071-1/+11
| | | | | | live interval updating. llvm-svn: 60652
* Fix typo, psuedo -> pseudo.Nick Lewycky2008-12-072-35/+35
| | | | llvm-svn: 60651
* Some internal refactoring to make it easier to cache results.Chris Lattner2008-12-072-21/+34
| | | | llvm-svn: 60650
* Introduce a new MemDep::getNonLocalPointerDependencyChris Lattner2008-12-072-13/+94
| | | | | | | | | method. This will eventually take over load/store dep queries from getNonLocalDependency. For now it works fine, but is incredibly slow because it does no caching. Lets not switch GVN to use it until that is fixed :) llvm-svn: 60649
* push the "pointer case" up the analysis stack a bit. This causes Chris Lattner2008-12-072-51/+89
| | | | | | | duplication of logic (in 2 places) to determine what pointer a load/store touches. This will be addressed in a future commit. llvm-svn: 60648
* make clients have to know how to call getCallSiteDependencyFromChris Lattner2008-12-071-2/+13
| | | | | | instead of making getDependencyFrom do it. llvm-svn: 60647
* rename some variables for consistencyChris Lattner2008-12-071-6/+6
| | | | llvm-svn: 60644
* I love how using out of scope variables is not an error with GCC, no really ↵Chris Lattner2008-12-071-3/+3
| | | | | | I do. llvm-svn: 60643
* Rename getCallSiteDependency -> getCallSiteDependencyFrom toChris Lattner2008-12-072-9/+8
| | | | | | | | emphasize the scanning and make it more similar to getDependencyFrom llvm-svn: 60642
* a memdep query on a volatile load/store will always returnChris Lattner2008-12-071-11/+10
| | | | | | | | | clobber with the current implementation. Instead of returning a "precise clobber" just return a fuzzy one. This doesn't matter to any clients anyway and should speed up analysis time very very slightly. llvm-svn: 60641
* don't bother touching volatile stores, they will just return clobber onChris Lattner2008-12-071-0/+5
| | | | | | everything interesting anyway. llvm-svn: 60640
* remove the ability to get memdep info for vaarg. I don't think theChris Lattner2008-12-071-6/+9
| | | | | | original impl was correct and noone actually makes the query anyway. llvm-svn: 60639
OpenPOWER on IntegriCloud