summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some comments to the virtual work. Thanks to Doug Gregor for the review.Sebastian Redl2009-01-092-0/+7
| | | | llvm-svn: 62012
* ccc: Get host information via Driver methods.Daniel Dunbar2009-01-093-19/+48
| | | | llvm-svn: 62011
* Dead stores checker: Don't flag dead stores for self-assignments (common ↵Ted Kremenek2009-01-092-3/+15
| | | | | | escape hatch for 'unused variable' warnings). llvm-svn: 62010
* Enhance PTH 'getSpelling' caching:Ted Kremenek2009-01-093-30/+154
| | | | | | | | | | | | | | - Refactor caching logic into a helper class PTHSpellingSearch - Allow "random accesses" in the spelling cache, thus catching the remaining cases where 'getSpelling' wasn't hitting the PTH cache For -Eonly, PTH, Cocoa.h: - This reduces wall time by 3% (user time unchanged, sys time reduced) - This reduces the amount of paged source by 1112K. The remaining 1112K still being paged in is from somewhere else (investigating). llvm-svn: 62009
* Prevent a segfault for vaarg expressions on unsupported architectures.Sebastian Redl2009-01-091-2/+4
| | | | llvm-svn: 62008
* This patch removes mergeProperties and does the property lookupFariborz Jahanian2009-01-094-43/+14
| | | | | | in designated protocols lazily. llvm-svn: 62007
* Add test case from PR2659.Evan Cheng2009-01-091-0/+30
| | | | llvm-svn: 62006
* Minor debug output tweak.Evan Cheng2009-01-091-2/+2
| | | | llvm-svn: 62005
* Implement EmitUnsupportedRValue to generate an appropriately typed RValue.Daniel Dunbar2009-01-091-3/+13
| | | | llvm-svn: 62004
* Very basic support for pure virtual functions.Sebastian Redl2009-01-094-6/+75
| | | | llvm-svn: 62003
* This has been replaced by llvm/utils/lint/cpp_lint.py, which is moreMisha Brukman2009-01-091-5/+0
| | | | | | comprehensive and can support more complex style analysis. llvm-svn: 62002
* Replace DeclContext's vector of ScopedDecl pointers with a linked listDouglas Gregor2009-01-098-24/+93
| | | | | | | | | | | | | | | | | | of ScopedDecls (using the new ScopedDecl::NextDeclInScope pointer). Performance-wise: - It's a net win in memory utilization, since DeclContext is now one pointer smaller than it used to be (std::vectors are typically 3 pointers; we now use 2 pointers) and - Parsing Cocoa.h with -fsyntax-only (with a Release-Asserts Clang) is about 1.9% faster than before, most likely because we no longer have the memory allocations and copying associated with the std::vector. I'll re-enable serialization of DeclContexts once I've sorted out the NextDeclarator/NextDeclInScope question. llvm-svn: 62001
* Removed trailing whitespace.Misha Brukman2009-01-0930-929/+929
| | | | llvm-svn: 62000
* Request DwarfWriter. This will be used to handle dbg_* intrinsics.Devang Patel2009-01-093-3/+10
| | | | llvm-svn: 61999
* Make sure that ScopedDecls passed to DeclContext::addDecl are added into ↵Douglas Gregor2009-01-094-3/+28
| | | | | | their lexical context llvm-svn: 61998
* fix typo Duncan noticed.Chris Lattner2009-01-091-1/+1
| | | | llvm-svn: 61997
* Always print out SourceManager stats with 'Stats' is true. This revealed ↵Ted Kremenek2009-01-091-2/+1
| | | | | | that PTH always pulls in the source pages with -fsyntax-only (investigating further). llvm-svn: 61996
* Fix PR3304Chris Lattner2009-01-092-2/+27
| | | | llvm-svn: 61995
* Provide a new kind of iterator, the specific_decl_iterator, thatDouglas Gregor2009-01-0915-281/+130
| | | | | | | | | filters the decls seen by decl_iterator with two criteria: the dynamic type of the declaration and a run-time predicate described by a member function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl considerably. It has no measurable performance impact. llvm-svn: 61994
* Emit more refined "unsupported" error for block expressions.Daniel Dunbar2009-01-091-0/+5
| | | | llvm-svn: 61993
* Give "unsupported" error on calls through block pointers instead ofDaniel Dunbar2009-01-092-6/+28
| | | | | | crashes. llvm-svn: 61992
* Removed trailing whitespace from Makefiles.Misha Brukman2009-01-0945-102/+102
| | | | llvm-svn: 61991
* Support llvmc plugins in out-of-tree projects.Mikhail Glushenkov2009-01-091-0/+1
| | | | llvm-svn: 61990
* Add a --check-graph option to llvmc.Mikhail Glushenkov2009-01-096-7/+195
| | | | llvm-svn: 61989
* Move property API's up to ObjCContainerDecl (removing a lot of duplicate code).Steve Naroff2009-01-098-228/+127
| | | | | | | | | Add isa/cast/dyncast support for ObjCContainerDecl. Renamed classprop_iterator/begin/end to prop_iterator/begin/end (the class prefix was confusing). More simplifications to Sema::ActOnAtEnd()... Added/changed some FIXME's as a result of the above work. llvm-svn: 61988
* PR2659 was fixed by r61847. Add the testcase as a regression test.Dan Gohman2009-01-091-0/+33
| | | | llvm-svn: 61986
* Implement rdar://6480391, extending of equality icmp's to avoid a truncation.Chris Lattner2009-01-093-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed this in the code compiled for a routine using std::map, which produced this code: %25 = tail call i32 @memcmp(i8* %24, i8* %23, i32 6) nounwind readonly %.lobit.i = lshr i32 %25, 31 ; <i32> [#uses=1] %tmp.i = trunc i32 %.lobit.i to i8 ; <i8> [#uses=1] %toBool = icmp eq i8 %tmp.i, 0 ; <i1> [#uses=1] br i1 %toBool, label %bb3, label %bb4 which compiled to: call L_memcmp$stub shrl $31, %eax testb %al, %al jne LBB1_11 ## with this change, we compile it to: call L_memcmp$stub testl %eax, %eax js LBB1_11 This triggers all the time in common code, with patters like this: %169 = and i32 %ply, 1 ; <i32> [#uses=1] %170 = trunc i32 %169 to i8 ; <i8> [#uses=1] %toBool = icmp ne i8 %170, 0 ; <i1> [#uses=1] %7 = lshr i32 %6, 24 ; <i32> [#uses=1] %9 = trunc i32 %7 to i8 ; <i8> [#uses=1] %10 = icmp ne i8 %9, 0 ; <i1> [#uses=1] etc llvm-svn: 61985
* Remove some old code that looks like a remanant from signed-types days.Chris Lattner2009-01-091-23/+0
| | | | llvm-svn: 61984
* Fix PR3298, a crash in Jump Threading. Apparently even Chris Lattner2009-01-092-0/+53
| | | | | | jump threading can have bugs, who knew? ;-) llvm-svn: 61983
* this doesn't depend on the gcc early inliner anymore.Chris Lattner2009-01-091-1/+1
| | | | llvm-svn: 61982
* PR3290 is now fixed.Chris Lattner2009-01-091-5/+1
| | | | llvm-svn: 61981
* Fix part 3/2 of PR3290, making instcombine zap (gep(bitcast)) when possible.Chris Lattner2009-01-092-81/+127
| | | | llvm-svn: 61980
* this test should not run opt -std-compile-opts, it should run Chris Lattner2009-01-091-114/+40
| | | | | | just llc. llvm-svn: 61979
* add a helper method.Chris Lattner2009-01-091-0/+7
| | | | llvm-svn: 61978
* fit in 80 colsChris Lattner2009-01-091-2/+2
| | | | llvm-svn: 61977
* move some code, check to see if the input to the GEP is a bitcastChris Lattner2009-01-091-23/+22
| | | | | | (which is constant time and cheap) before checking hasAllZeroIndices. llvm-svn: 61976
* Fix rdar://6480479 - [parser] infinite loop on invalid inputChris Lattner2009-01-092-0/+12
| | | | llvm-svn: 61975
* Convert block types in IRgen. This is not the correct type, butDaniel Dunbar2009-01-091-1/+3
| | | | | | matches llvm-gcc (?). llvm-svn: 61974
* Block pointer types are not aggregate types.Daniel Dunbar2009-01-091-1/+4
| | | | llvm-svn: 61973
* Add load-folding table entries for MOVDQA.Dan Gohman2009-01-091-0/+6
| | | | llvm-svn: 61972
* Whitespace and other minor adjustments to make SSE instructions haveDan Gohman2009-01-091-26/+32
| | | | | | | the same formatting as their corresponding SSE2 instructions, for consistency. llvm-svn: 61971
* Don't crash when our FunctionDecl has a non-identifier nameDouglas Gregor2009-01-091-1/+2
| | | | llvm-svn: 61970
* Adjustments to last patch based on review.Dale Johannesen2009-01-096-11/+34
| | | | llvm-svn: 61969
* Fix crash on null deference when searching for readwrite properties inDaniel Dunbar2009-01-092-13/+32
| | | | | | | categories. - Also, simplify nesting via early return. llvm-svn: 61968
* ccc: Start defining host information.Daniel Dunbar2009-01-093-21/+107
| | | | | | | | | - For use by the driver in places where the host alters driver behavior (for example, running as a driver driver on darwin). - Allow user override for testing purposes. llvm-svn: 61967
* Addressed the issue in <rdar://problem/6479085>, where we failed toDouglas Gregor2009-01-097-105/+141
| | | | | | | | | | | | | | | rewrite @class declarations that showed up within linkage specifications because those @class declarations never made it any place where the rewriter could find them. Moved all of the ObjC*Decl nodes over to ScopedDecls, so that they can live in the appropriate top-level or transparent DeclContext near the top level, e.g., TranslationUnitDecl or LinkageSpecDecl. Objective-C declarations now show up in a traversal of the declarations in a DeclContext (they didn't before!). This way, the rewriter finds all Objective-C declarations within linkage specifications. llvm-svn: 61966
* Re-enable PTH testing for Cocoa.h and Carbon.h (and include testing for ↵Ted Kremenek2009-01-093-4/+6
| | | | | | Objective-C++). llvm-svn: 61965
* Adding support for ObjC methods which have c-styleFariborz Jahanian2009-01-094-4/+9
| | | | | | parameter list. This is work in progress. llvm-svn: 61964
* Enable support for '-x objective-c++-header'.Ted Kremenek2009-01-091-10/+24
| | | | llvm-svn: 61963
* Simpler solution to LiteralSupport compatibility: just add one whitespace ↵Ted Kremenek2009-01-091-27/+15
| | | | | | character after each cached string. llvm-svn: 61962
OpenPOWER on IntegriCloud