summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Modified XCode project to contain...Ted Kremenek2007-10-091-0/+7
| | | | | | | | ADT/DenseSet.h ADT/ImmutableMap.h ADT/ImmutableSet.h llvm-svn: 42816
* Add new MemoryBuffer::getMemBufferCopy method.Chris Lattner2007-10-092-2/+21
| | | | llvm-svn: 42815
* Fix indentation.Devang Patel2007-10-091-6/+6
| | | | llvm-svn: 42814
* Added implementation of immutable (functional) maps and sets, asTed Kremenek2007-10-092-0/+771
| | | | | | | | | | | implemented on top of a functional AVL tree. The AVL balancing code is inspired by the OCaml implementation of Map, which also uses a functional AVL tree. Documentation is currently limited and cleanups are planned, but this code compiles and has been tested. llvm-svn: 42813
* Do not walk invalid iterator.Devang Patel2007-10-091-2/+2
| | | | llvm-svn: 42812
* Recognize while(1) and avoid extra blocks.Devang Patel2007-10-092-4/+78
| | | | llvm-svn: 42811
* new testDevang Patel2007-10-091-0/+62
| | | | llvm-svn: 42810
* avoid a noop virtual method call on the hot scope poping path.Chris Lattner2007-10-091-2/+4
| | | | llvm-svn: 42809
* Recognize "do {} while (0)" idiom and avoid extra basic blocks.Devang Patel2007-10-091-5/+18
| | | | llvm-svn: 42808
* Use LLVMFoldingBuilderDevang Patel2007-10-094-4/+4
| | | | llvm-svn: 42807
* Add LLVMFoldingBuilderDevang Patel2007-10-091-3/+215
| | | | llvm-svn: 42806
* Remove an unnecessary friend declaration.Dan Gohman2007-10-091-1/+0
| | | | llvm-svn: 42805
* Remove comment about protocols and namespace no longer relevant.Fariborz Jahanian2007-10-091-2/+0
| | | | llvm-svn: 42804
* Minor code clean up to make it more readable.Fariborz Jahanian2007-10-091-17/+14
| | | | llvm-svn: 42803
* Update DeclKind enums to reflect ObjcProtocolDecl's inheritance change.Chris Lattner2007-10-092-3/+3
| | | | llvm-svn: 42802
* Remove addition of protocol names to declaration scopes, use a separateFariborz Jahanian2007-10-096-53/+19
| | | | | | | DenseMap to keep track of such declarations and derive ObjcProtocolDecl directyly from NamedScope. llvm-svn: 42801
* convert driver over to use Token::is/isNot APIs. fwew, all done.Chris Lattner2007-10-093-15/+14
| | | | llvm-svn: 42800
* Switch lexer/pp over to new Token::is/isNot apiChris Lattner2007-10-096-82/+80
| | | | llvm-svn: 42799
* swtich to Token::is/isNotChris Lattner2007-10-091-100/+98
| | | | llvm-svn: 42798
* switch more code to use Token::is/isNot where possible.Chris Lattner2007-10-094-92/+90
| | | | llvm-svn: 42797
* switch some more of the parser over to using Token::is and isNotChris Lattner2007-10-093-90/+88
| | | | llvm-svn: 42796
* Add two new Token helper functions, "is" and "isNot". This allows us to writeChris Lattner2007-10-092-23/+28
| | | | | | | | | | | | | | | | | | | stuff like this: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.isNot(tok::comma)) break; instead of: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.getKind() != tok::comma) break; There is obviously no functionality change, but the code reads a bit better and is more terse. llvm-svn: 42795
* Added better comment about protocol list for class ObjcQualifiedInterfaceType.Fariborz Jahanian2007-10-091-1/+3
| | | | llvm-svn: 42794
* rename some "Parse" actions to "ActOn". Move code around inChris Lattner2007-10-095-25/+24
| | | | | | | | ParseFunctionDefinition so that ActOnFunctionDefBody is always called if ActOnStartOfFunctionDef is called. This fixes a crash reported by Nuno Lopes. llvm-svn: 42793
* Use const& for RHS.Devang Patel2007-10-091-1/+1
| | | | | | Use copy for LHS, because it is incremented using ++ operator. llvm-svn: 42792
* Fix comment. Describe what it is, instead of how it is used.Devang Patel2007-10-091-4/+4
| | | | llvm-svn: 42791
* Prevent memory leak by not creating a category object when there is aFariborz Jahanian2007-10-091-9/+7
| | | | | | fatal error of category's undefined interface. llvm-svn: 42790
* update prototype, fixing build errorChris Lattner2007-10-091-1/+1
| | | | llvm-svn: 42789
* Pass argc by value, not by reference, since it isn't modified.Dan Gohman2007-10-092-2/+2
| | | | llvm-svn: 42788
* LowerIntegerDivOrRem no longer exists.Dan Gohman2007-10-091-1/+0
| | | | llvm-svn: 42787
* Fix grammar in a comment.Dan Gohman2007-10-091-3/+3
| | | | llvm-svn: 42786
* This is done.Dan Gohman2007-10-091-30/+0
| | | | llvm-svn: 42785
* These two tests now require only two multiply instructions,Dan Gohman2007-10-092-0/+28
| | | | | | instead of four. llvm-svn: 42784
* Under 64-bit mode use LEA64_32r instead of LEA64r to save a byte.Evan Cheng2007-10-091-6/+13
| | | | llvm-svn: 42783
* Fix problems where DenseMap used operator!= instead of correctly Chris Lattner2007-10-091-10/+15
| | | | | | calling the traits implementation of isEqual. llvm-svn: 42782
* Change a #include into a forward declarationChris Lattner2007-10-092-1/+2
| | | | llvm-svn: 42781
* Position Independent Code (PIC) support [3]Bruno Cardoso Lopes2007-10-093-20/+51
| | | | llvm-svn: 42780
* Position Independent Code (PIC) support [2]Bruno Cardoso Lopes2007-10-093-10/+32
| | | | | | | | | | - Added a function to hold the stack location where GP must be stored during LowerCALL - AsmPrinter now emits directives based on relocation type - PIC_ set to default relocation type (same as GCC) llvm-svn: 42779
* Position Independent Code (PIC) support [1]Bruno Cardoso Lopes2007-10-092-18/+44
| | | | | | | - Modified instruction format to handle pseudo instructions - Added LoadAddr SDNode to load symbols. llvm-svn: 42778
* Remove 2 protocol related actions from MinimalActions (protocols shouldn't ↵Steve Naroff2007-10-082-40/+1
| | | | | | be recognized as types). llvm-svn: 42777
* Added a new class for Interfaces qualified by protocol list.Fariborz Jahanian2007-10-085-3/+64
| | | | | | | Protocols are now sorted and made unique in the list. Enhanced pretty printer for @interface (So, I can see the protocol list). llvm-svn: 42776
* Update test.Evan Cheng2007-10-081-41/+40
| | | | llvm-svn: 42775
* Bug fix. X86 was emitting redundant setcc and test instructions before a ↵Evan Cheng2007-10-081-20/+13
| | | | | | conditional move. llvm-svn: 42774
* Removed unused instance variable from FieldDecl.Steve Naroff2007-10-082-5/+1
| | | | llvm-svn: 42773
* Rename FileVariable -> FileVar for consistency with its class name, Chris Lattner2007-10-086-79/+96
| | | | | | | | | likewise block and param. Reorder the layout of the Decl kind enum so that the inheritance tree is reflected in the ordering. This allows trivial range comparisons to determine whether something is an instance of some abstract class, making classof faster. llvm-svn: 42772
* add a comment.Chris Lattner2007-10-081-0/+1
| | | | llvm-svn: 42771
* Move identifierTable.h to the right folder.Chris Lattner2007-10-081-2/+2
| | | | llvm-svn: 42770
* Call getFunctionNumber() instead of referencing FunctionNumber directly,Dan Gohman2007-10-081-1/+1
| | | | | | for consistency. llvm-svn: 42769
* Mark the prefetch intrinsic as IntrWriteArgMem, instead of theDan Gohman2007-10-081-1/+5
| | | | | | | default of IntrWriteMem, to at least indicate that it doesn't "capture" the argument pointer. llvm-svn: 42768
* Convert Selector Maps/Sets to use stronger typing (now that we have ↵Steve Naroff2007-10-083-20/+16
| | | | | | DenseMapInfo in IdentifierTable.h). llvm-svn: 42767
OpenPOWER on IntegriCloud