summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remember to actually update SplitAnalysis statistics now that we have a fancyJakob Stoklund Olesen2010-08-131-0/+1
| | | | | | function to do it. llvm-svn: 110994
* The Sema object will get destroyed before all of the others anyway. We don't ↵Douglas Gregor2010-08-131-1/+0
| | | | | | need to force it llvm-svn: 110993
* Modified CommandObjectExpression::EvaluateExpression() so that it takes anJohnny Chen2010-08-132-17/+28
| | | | | | | | | additional (ComandReturnObject *) result parameter (default to NULL) and does the right thing in setting the result status. Also removed used variable ast_context. llvm-svn: 110992
* Use getAllOnesValue, saves a copy and looks better.Benjamin Kramer2010-08-131-2/+2
| | | | llvm-svn: 110991
* Documented ClangExpression and made parts of itSean Callanan2010-08-134-125/+196
| | | | | | | more sane (i.e., removed dead arguments, made sensible defaults, etc.) llvm-svn: 110990
* Instead of modifying the ObjC AST to not modify existing declarations, teach ↵Sebastian Redl2010-08-1311-29/+139
| | | | | | chained PCH to overwrite declarations from earlier PCH files in dependent ones. Tell Sema to note when it changes AST nodes so that they have to be reserialized. Finally, the ObjCProtocolDecls created in forward decls, like the ObjCInterfaceDecls in @class forward decls, are not lexically part of the decl context; only the definition is. llvm-svn: 110989
* Make use of __func__ in a block actually refer toFariborz Jahanian2010-08-132-6/+18
| | | | | | block's helper function. Fixes radar 7860965. llvm-svn: 110988
* Reapply this transformation now that it is passing the external test which ↵Nate Begeman2010-08-132-64/+152
| | | | | | it previously failed. llvm-svn: 110987
* Move some code from Verifier into SVI::isValidOperands. This allows us to ↵Nate Begeman2010-08-132-23/+17
| | | | | | catch bad shufflevector operations when they are created, rather than waiting for someone to notice later on. llvm-svn: 110986
* Trim #includes.Dan Gohman2010-08-122-7/+0
| | | | llvm-svn: 110983
* Tidy up whitespace.Dan Gohman2010-08-121-85/+87
| | | | llvm-svn: 110982
* Use .empty() instead of .size().Dan Gohman2010-08-121-1/+1
| | | | llvm-svn: 110981
* Added documentation to ClangASTSource andSean Callanan2010-08-122-8/+136
| | | | | | NameSearchContext. llvm-svn: 110980
* Just disable the hidden-visibility optimization for now by hiding it behindJohn McCall2010-08-1215-30/+61
| | | | | | | | a -cc1 option. The Darwin linker complains about mixed visibility when linking gcc-built objects with clang-built objects, and the optimization isn't really that valuable. Platforms with less ornery linkers can feel free to enable this. llvm-svn: 110979
* Teach CompilerInstance to create and hold on to the Sema object usedDouglas Gregor2010-08-123-6/+48
| | | | | | | for parsing, so that it can persist beyond the lifetime of the parsing call. llvm-svn: 110978
* Fixed copyright notice on ClangASTSource.h.Sean Callanan2010-08-121-8/+9
| | | | llvm-svn: 110977
* Handle an empty dupli.Jakob Stoklund Olesen2010-08-121-2/+8
| | | | | | | | | | | | | | | | | | | | This can happen if the original interval has been broken into two disconnected parts. Ideally, we should be able to detect when the graph is disconnected and create separate intervals, but that code is not implemented yet. Example: Two basic blocks are both branching to a loop header. Our interval is defined in both basic blocks, and live into the loop along both edges. We decide to split the interval around the loop. The interval is split into an inside part and an outside part. The outside part now has two disconnected segments, one in each basic block. If we later decide to split the outside interval into single blocks, we get one interval per basic block and an empty dupli for the remainder. llvm-svn: 110976
* Update the SplitAnalysis statistics as uses are moved from curli to the newJakob Stoklund Olesen2010-08-122-11/+44
| | | | | | | split intervals. THis means the analysis can be used for multiple splits as long as curli doesn't shrink. llvm-svn: 110975
* Small changes to UnreachableCodeCheckerTom Care2010-08-121-3/+20
| | | | | | | - Added detection of Empty CFGBlocks (artificial blocks) - Relaxed an assertion based on an incorrect assumption until further investigation llvm-svn: 110974
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-124-40/+62
| | | | | | | | | can create (and hold on to) the Sema object. Also, move Sema-related initialization/finalization with its various consumers and external sources into the Sema constructor and destructor, rather than placing it in ParseAST. llvm-svn: 110973
* Improved IdempotentOperationChecker false positives and false negatives.Tom Care2010-08-128-134/+268
| | | | | | | | | - Unfinished analysis may still report valid warnings if the path was completely analyzed - New 'CanVary' heuristic to recursively determine if a subexpression has a varying element - Updated test cases, including one known bug - Exposed GRCoreEngine through GRExprEngine llvm-svn: 110970
* Typo.Fariborz Jahanian2010-08-121-1/+1
| | | | llvm-svn: 110965
* Patch to issue warning when colllection expresion's typeFariborz Jahanian2010-08-124-2/+26
| | | | | | | does not implement 'countByEnumeratingWithState' API. Implements radar 7634669. llvm-svn: 110964
* fix PR7876: If ipsccp decides that a function's address is takenChris Lattner2010-08-122-4/+43
| | | | | | before it rewrites the code, we need to use that in the post-rewrite pass. llvm-svn: 110962
* Implement -Wcast-align. The initial design of this diagnostic diverges John McCall2010-08-128-1/+147
| | | | | | | | from GCC's in that we warn on *any* increase in alignment requirements, not just those that are enforced by hardware. Please let us know if this causes major problems for you (which it shouldn't, since it's an optional warning). llvm-svn: 110959
* Fixing the build isn't good enough; back out r110956 and r110953.John McCall2010-08-124-55/+41
| | | | llvm-svn: 110958
* Removed the ClangStmtVisitor, which is old codeSean Callanan2010-08-125-1167/+3
| | | | | | | that translates Clang ASTs straight to DWARF. We are now using IR instead. llvm-svn: 110957
* dgregor should write code that compiles.John McCall2010-08-122-7/+9
| | | | llvm-svn: 110956
* Filling out regex tests...Howard Hinnant2010-08-1227-5/+761
| | | | llvm-svn: 110955
* Some small clean-up: use of pseudo instructionsBruno Cardoso Lopes2010-08-121-24/+23
| | | | llvm-svn: 110954
* Update Xcode projectDouglas Gregor2010-08-121-76/+26
| | | | llvm-svn: 110953
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-124-37/+49
| | | | | | | | | can create (and hold on to) the Sema object. Also, move Sema-related initialization/finalization with its various consumers and external sources into the Sema constructor and destructor, rather than placing it in ParseAST. llvm-svn: 110952
* Cleaned up the for-disassembly-only entries in the arm instruction table so thatJohnny Chen2010-08-128-48/+74
| | | | | | | the memory barrier variants (other than 'SY' full system domain read and write) are treated as one instruction with option operand. llvm-svn: 110951
* Fixes block type matching bug. Radar 8302845.Fariborz Jahanian2010-08-123-3/+20
| | | | llvm-svn: 110950
* Also recompute HasPHIKill flags in LiveInterval::RenumberValues.Jakob Stoklund Olesen2010-08-123-3/+25
| | | | | | | If a phi-def value were removed from the interval, the phi-kill flags are no longer valid. llvm-svn: 110949
* Make sure ARM constant island pass does not break up an IT block. If the ↵Evan Cheng2010-08-121-3/+20
| | | | | | split point is in the middle of an IT block, it should move it up to just above the IT instruction. rdar://8302637 llvm-svn: 110947
* - Teach SSEDomainFix to switch between different levels of AVX instructions. ↵Bruno Cardoso Lopes2010-08-123-27/+101
| | | | | | | | | | Here we guess that AVX will have domain issues, so just implement them for consistency and in the future we remove if it's unnecessary. - Make foldMemoryOperandImpl aware of 256-bit zero vectors folding and support the 128-bit counterparts of AVX too. - Make sure MOV[AU]PS instructions are only selected when SSE1 is enabled, and duplicate the patterns to match AVX. - Add a testcase for a simple 128-bit zero vector creation. llvm-svn: 110946
* Move Sema's headers into include/clang/Sema, renaming a few along the way.Douglas Gregor2010-08-1242-76/+76
| | | | llvm-svn: 110945
* Remove trailing whitespace.Jakob Stoklund Olesen2010-08-124-65/+65
| | | | llvm-svn: 110944
* Applied Pawel Wodnicki's fix for "missing" lldb-forward-rtti.h header file.Johnny Chen2010-08-121-2/+2
| | | | llvm-svn: 110943
* Revert r110936; this fails on clang-i686-darwin10 too.Dan Gohman2010-08-121-2/+3
| | | | llvm-svn: 110942
* first test commitAnton Yartsev2010-08-121-8/+8
| | | | llvm-svn: 110941
* Clean up debug output.Jakob Stoklund Olesen2010-08-122-34/+32
| | | | llvm-svn: 110940
* Downgrade error about nonnull attribute bbeing applied to a function ↵Douglas Gregor2010-08-123-2/+4
| | | | | | without point arguments to a warning llvm-svn: 110939
* Define AVX 128-bit pattern versions of SET0PS/PD.Bruno Cardoso Lopes2010-08-122-6/+18
| | | | llvm-svn: 110937
* Make this test darwin only.Devang Patel2010-08-121-3/+2
| | | | llvm-svn: 110936
* Add a test for llvm-gcc svn 110632.Bob Wilson2010-08-121-0/+16
| | | | llvm-svn: 110935
* Implement single block splitting.Jakob Stoklund Olesen2010-08-123-5/+158
| | | | | | | | | | Before spilling a live range, we split it into a separate range for each basic block where it is used. That way we only get one reload per basic block if the new smaller ranges can allocate to a register. This type of splitting is already present in the standard spiller. llvm-svn: 110934
* Don't emit end-of-file diagnostics like "unterminated conditional" orDouglas Gregor2010-08-124-8/+43
| | | | | | "unterminated string" when we're performing code completion. llvm-svn: 110933
* Temporarily disable this failing test, until it can be properlyDan Gohman2010-08-121-1/+2
| | | | | | investigated. llvm-svn: 110917
OpenPOWER on IntegriCloud