summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Added getOpcodeAfterMemoryUnfold(). It doesn't unfold an instruction, but ↵Evan Cheng2007-10-1815-30/+58
| | | | | | | | only returns the opcode of the instruction post unfolding. - Fix some copy+paste bugs. llvm-svn: 43153
* Add a FIXME to an assert.Steve Naroff2007-10-182-2/+3
| | | | | | Change a dyn_cast_or_null back to cast (which is more efficient). llvm-svn: 43152
* Patch to rewrite ivar tables metadata for classes defined.Fariborz Jahanian2007-10-183-5/+70
| | | | llvm-svn: 43151
* Use SmallVectorImpl instead of SmallVector with hardcoded size in MRegister ↵Evan Cheng2007-10-1815-68/+68
| | | | | | public interface. llvm-svn: 43150
* remove dead #includeChris Lattner2007-10-181-1/+0
| | | | llvm-svn: 43149
* Try again.Devang Patel2007-10-181-3/+36
| | | | | | | Instead of loading small global string from memory, use integer constant. llvm-svn: 43148
* Allow GVN to eliminate redundant calls to functions without side effects.Owen Anderson2007-10-181-5/+65
| | | | llvm-svn: 43147
* Add an uppercase conversion utility function.Christopher Lamb2007-10-181-0/+8
| | | | llvm-svn: 43146
* Fix a misnamed parameter.Christopher Lamb2007-10-181-1/+1
| | | | llvm-svn: 43145
* Fix a typoChristopher Lamb2007-10-181-1/+1
| | | | llvm-svn: 43144
* First patch toward rewriting of objective-c's meta data.Fariborz Jahanian2007-10-181-0/+72
| | | | llvm-svn: 43143
* Tweak a recent fix to UsualArithmeticConversions (made by Chris - r43113). ↵Steve Naroff2007-10-181-4/+6
| | | | | | The benefit of this tweak is it guarantees the entire routine operates on unqualified types (which I believe is a bit clearer). llvm-svn: 43142
* Fix PR1735 and Transforms/DeadArgElim/2007-10-18-VarargsReturn.ll byChris Lattner2007-10-182-3/+15
| | | | | | fixing some obviously broken code :( llvm-svn: 43141
* Fix the command line.Bill Wendling2007-10-181-1/+1
| | | | llvm-svn: 43140
* Added StmtIterator.cpp and StmtIterator.h to the XCode project.Ted Kremenek2007-10-181-0/+7
| | | | llvm-svn: 43139
* Refactored StmtIterator into classes StmtIteratorBase (non-templated)Ted Kremenek2007-10-182-70/+88
| | | | | | | | | | and StmtIteratorImpl (templated), which StmtIterator and ConstStmtIterator now succintly subclass. Implemented iteration over the initializers in DeclStmts. This is not thoroughly tested, so there may be bugs. llvm-svn: 43138
* Replaced virtual method call to child_begin() in child_end() byTed Kremenek2007-10-181-1/+1
| | | | | | directly inlining its logic. llvm-svn: 43137
* Fix test.Devang Patel2007-10-181-1/+1
| | | | llvm-svn: 43136
* this doesn't need dynamic_cast.Chris Lattner2007-10-181-1/+1
| | | | llvm-svn: 43133
* Fixed broken build.Ted Kremenek2007-10-181-2/+25
| | | | llvm-svn: 43132
* remove dead fileChris Lattner2007-10-181-76/+0
| | | | llvm-svn: 43131
* Reduce reliance on rtti infoChris Lattner2007-10-181-2/+1
| | | | llvm-svn: 43130
* fix typoChris Lattner2007-10-181-1/+1
| | | | llvm-svn: 43129
* update comment.Chris Lattner2007-10-181-1/+1
| | | | llvm-svn: 43128
* This requires rtti info because tblgen uses commandline,Chris Lattner2007-10-181-1/+4
| | | | | | and tblgen requires rtti. llvm-svn: 43127
* tblgen uses dynamic_cast heavily, so it needs rtti infoChris Lattner2007-10-181-0/+1
| | | | llvm-svn: 43126
* Silenced a couple of VC++ warnings.Hartmut Kaiser2007-10-181-4/+5
| | | | llvm-svn: 43125
* Updated VC++ build systemHartmut Kaiser2007-10-181-0/+8
| | | | llvm-svn: 43124
* Updated VC++ build systemHartmut Kaiser2007-10-181-0/+4
| | | | llvm-svn: 43123
* Work around downrev gccs which do not inherit visibility of theGordon Henriksen2007-10-181-2/+2
| | | | | | Registry<>::iterator member class. llvm-svn: 43122
* Missing 'public' keyword.Gordon Henriksen2007-10-181-1/+1
| | | | llvm-svn: 43121
* Pointer arithmetic should be done with the index the same size as the pointer.Bill Wendling2007-10-182-0/+29
| | | | llvm-svn: 43120
* Support for ADDC/SUBC.Duncan Sands2007-10-181-8/+33
| | | | llvm-svn: 43119
* Really fix PR1734. Carefully track which register uses are sub-register uses byEvan Cheng2007-10-183-14/+128
| | | | | | traversing inverse register coalescing map. llvm-svn: 43118
* Remove unnecessary include.Evan Cheng2007-10-181-1/+0
| | | | llvm-svn: 43117
* legalizing the ret operation on f64 shouldn't introduce a newChris Lattner2007-10-181-4/+6
| | | | | | i64 bit convert needlessly. llvm-svn: 43116
* Move Split<...>() into DomTreeBase. This should make the #include's of ↵Owen Anderson2007-10-184-104/+96
| | | | | | | | | | DominatorInternals.h in CodeExtractor and LoopSimplify unnecessary. Hartmut, could you confirm that this fixes the issues you were seeing? llvm-svn: 43115
* Fix a bug in Sema::CheckConditionalOperands(). When mixing pointers and null ↵Steve Naroff2007-10-182-13/+24
| | | | | | | | | | pointer constants, we need to promote the null pointer constant (which is an integer) to the pointer type. Test case is self explanatory. This surfaced yesterday, when compiling test/Sema/cocoa.m on Leopard. Since this has nothing to do with ObjC, it's kind of bizarre this hasn't shown up before. I imagine Cocoa.h on Leopard may have changed recently? Thanks to Ted for localizing the bug and giving me a useful AST dump... llvm-svn: 43114
* UsualArithmeticConversions is crashing with an assertChris Lattner2007-10-182-2/+8
| | | | | | | | | when comparing "float" and "const float". This "fixes" the issue, but may not be the right fix. Steve, please review. Testcase here: test/Sema/usual-float.c llvm-svn: 43113
* Fix the following bug...Steve Naroff2007-10-183-2/+6
| | | | | | | | | | | | | | | | | unsigned char asso_values[] = { 34 }; int legal2() { return asso_values[0]; } The code that creates the new constant array type was operating on the original type. As a result, the constant type being generated was "unsigned char [1][]" (which is wrong). The fix is to operate on the element type - in this case, the correct type is "unsigned char [1]" I added this case to array-init.c, which clearly didn't catch this bogosity... llvm-svn: 43112
* XFAIL for now.Devang Patel2007-10-181-0/+1
| | | | llvm-svn: 43111
* remove extraneous space in @selector()Chris Lattner2007-10-181-9/+3
| | | | llvm-svn: 43110
* remove typedef.Chris Lattner2007-10-181-2/+0
| | | | llvm-svn: 43109
* Changed the return type of type-specific Allocate() methods to returnTed Kremenek2007-10-182-3/+3
| | | | | | | | | void*. This is hint that we are returning uninitialized memory rather than a constructed object. Patched ImutAVLTree to conform to this new interface. llvm-svn: 43106
* Implemented 90% functionality of new child_iterator for Stmt objectsTed Kremenek2007-10-187-11/+142
| | | | | | | | | | | | | | | that will (soon) allow iteration over the initializers in declarations. This new iterator mechanism is implemented by the classes StmtIterator and ConstStmtIterator. Patched a few files to use "operator++" instead of "operator+" on child_iterators. Friendship added in VarDecl to StmtIterator to allow returning a reference to the initializer within the VarDecl. We may not wish this as a permanent solution. llvm-svn: 43105
* Make control flow in Expr::isConstantExpr more simple andChris Lattner2007-10-181-20/+12
| | | | | | local, making the code easier to read. llvm-svn: 43104
* Reverting r43070 for now. It's causing llc test failures.Evan Cheng2007-10-171-25/+0
| | | | llvm-svn: 43103
* Test to make sure we don't generate unwind info for non-64-bit Objective-C.Bill Wendling2007-10-171-0/+18
| | | | llvm-svn: 43102
* Add new API to rewrite one stmt/expr with another.Chris Lattner2007-10-173-12/+38
| | | | llvm-svn: 43101
* ImutAVLTree now allocates tree nodes from the BumpPtrAllocator usingTed Kremenek2007-10-171-4/+3
| | | | | | the new type-aligned Allocate() method. llvm-svn: 43100
OpenPOWER on IntegriCloud