summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Print out the regclass of any virtual registers used by a machine instruction.Jakob Stoklund Olesen2010-07-281-0/+31
| | | | llvm-svn: 109608
* some cleanups and get alignments correct for various coerce cases.Chris Lattner2010-07-281-9/+16
| | | | llvm-svn: 109607
* The grammar for GNU typeof in C requires an expression to beDouglas Gregor2010-07-282-4/+14
| | | | | | | | | | | | | parenthesized, unlike in C++, e.g., C has: typeof ( expression) C++ has: typeof unary-expression So, once we've parsed a parenthesized expression after typeof, we should only go on to parse the postfix expression suffix if we're in C++. Fixes <rdar://problem/8237491>. llvm-svn: 109606
* Fix a warning from gcc-4.0 (from the ppc buildbot).Bob Wilson2010-07-281-0/+2
| | | | llvm-svn: 109605
* Test commitTanya Lattner2010-07-281-1/+1
| | | | llvm-svn: 109604
* Instead of abusing swapProgramIn, just add a Module argument toRafael Espindola2010-07-285-36/+28
| | | | | | EmitProgressBitcode. llvm-svn: 109602
* Test commit.Tanya Lattner2010-07-281-1/+1
| | | | llvm-svn: 109601
* Update checker build.Ted Kremenek2010-07-281-1/+1
| | | | llvm-svn: 109600
* Fixed some bugs in the ecma bracket epression regarding escaped characters, ↵Howard Hinnant2010-07-283-24/+1845
| | | | | | and got the awk grammar going. llvm-svn: 109599
* Unbreak my CMake build, say you'll compile for me again...Douglas Gregor2010-07-281-0/+1
| | | | llvm-svn: 109598
* Fix this code to avoid decrementing an iterator past the beginningDan Gohman2010-07-281-5/+2
| | | | | | of a std::vector. llvm-svn: 109597
* When user code intentionally dereferences null, the alignment of theDan Gohman2010-07-281-2/+7
| | | | | | | dereference is theoretically infinite. Put a cap on the computed alignment to avoid overflow, noticed by John Regehr. llvm-svn: 109596
* Do GEP offset calculations with unsigned math rather than signed mathDan Gohman2010-07-281-1/+1
| | | | | | to avoid undefined behavior on overflow, noticed by John Regehr. llvm-svn: 109594
* Add some extra friend declarations to fix a gcc-4.0 compile error.Dan Gohman2010-07-282-0/+3
| | | | | | This is a temporary fix, until more elaborate changes are ready. llvm-svn: 109593
* accept and ignore a few more gcc warnings.Chris Lattner2010-07-281-0/+4
| | | | llvm-svn: 109591
* Add proper callbacks for DeclStmt -- we weren't recursing onCraig Silverstein2010-07-281-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the decls. This was just an oversight before; one we didn't catch because lots of information in a DeclStmt was also being traversed (redundantly) elsewhere. Once DeclStmt was cleaned up, I could clean up some of the redundant traversals found elswhere as well -- in particular, traversing the declarations inside a function as part of the function callback (instead of as part of the CompoundExpr callback that constitutes the body of the function). The old way was really weird, and led to some parts of local variable declarations (but not all) being visited twice. That is now resolved. I also was able to simplify the traversers for IfStmt/WhileStmt/etc, which used to have redundant calls to work around the fact DeclStmt wasn't working properly. While in the area, I fixed up a few more recursion-ordering issues. I try to hold to the principle that RecursiveASTVisitor visits objects in the source code in the same order they're typed. So the return-type of a variable comes before the variable-name. This still isn't perfect, but we're closer to that. Reviewed by chandlerc and wan. llvm-svn: 109590
* simplifyGabor Greif2010-07-281-2/+2
| | | | llvm-svn: 109589
* Rename -Wlogical-bitwise-confusion to -Wconstant-logical-operand, which strikesDaniel Dunbar2010-07-281-1/+1
| | | | | | me as more consistent and less pejorative. llvm-svn: 109588
* Preprocessor: Add support for '#pragma clang __debug crash' and '#pragma clangDaniel Dunbar2010-07-281-0/+28
| | | | | | | | __debug overflow_stack'. - For testing crash reporting stuff... you'd think I could just use some C++ code but Doug keeps fixing stuff! llvm-svn: 109587
* Support: Add CrashRecoveryContext helper object.Daniel Dunbar2010-07-282-0/+170
| | | | | | | | | - Designed as a simple wrapper to allow clients to attempt to catch crashes (memory errors, assertion violations, etc.) and do some kind of recovery. - Currently doesn't actually attempt to catch crashes. llvm-svn: 109586
* simplifyGabor Greif2010-07-281-4/+2
| | | | llvm-svn: 109585
* Update svn:ignore properties.Dan Gohman2010-07-280-0/+0
| | | | llvm-svn: 109584
* Enable expression transformations in the current-instantiationDouglas Gregor2010-07-282-9/+35
| | | | | | | rebuilder, i.e., remove a silly short-sighted hack from long ago. Thanks to Abramo Bagnara for the test case/bug report! llvm-svn: 109583
* When a nested-name-specifier refers into a current instantiation that hasDouglas Gregor2010-07-282-6/+24
| | | | | | | | dependent bases, construct a dependent nested-name-specifier rather than complaining that the name could not be found within the current instantiation itself. Fixes PR7725. llvm-svn: 109582
* use Value* constructor of CallSite to create potentially improper site, and ↵Gabor Greif2010-07-281-2/+1
| | | | | | test that llvm-svn: 109581
* use Value* constructor of CallSite to create potentially improper site, and ↵Gabor Greif2010-07-281-3/+3
| | | | | | test that llvm-svn: 109580
* use Value* constructor of CallSite to create potentially improper siteGabor Greif2010-07-281-2/+2
| | | | llvm-svn: 109579
* simplifyGabor Greif2010-07-281-1/+1
| | | | llvm-svn: 109578
* simplifyGabor Greif2010-07-281-2/+1
| | | | llvm-svn: 109577
* we are supposed to only create proper CallSites from an instruction (esp. ↵Gabor Greif2010-07-281-2/+2
| | | | | | CallInst and InvokeInst) llvm-svn: 109576
* we are not supposed to create an improper callsite using a CallInstr; leave ↵Gabor Greif2010-07-281-0/+1
| | | | | | a fixme mentioning the simplification when CallSite can clone itself llvm-svn: 109575
* Created lldb::LanguageType by moving an enumeration from the Greg Clayton2010-07-2815-127/+495
| | | | | | | | | | | | lldb_private::Language class into the enumerations header so it can be freely used by other interfaces. Added correct objective C class support to the DWARF symbol parser. Prior to this fix we were parsing objective C classes as C++ classes and now that the expression parser is ready to call functions we need to make sure the objective C classes have correct AST types. llvm-svn: 109574
* Filter out patterns that have PredicateOperands.Eric Christopher2010-07-281-0/+12
| | | | llvm-svn: 109572
* construct debug info for "id" by hand. Devang Patel2010-07-281-3/+35
| | | | | | Tested by mi1-var-obj.exp in gdb testsuite. llvm-svn: 109571
* Make SCEVCallbackVH::allUsesReplacedWith update the old SCEVUnknownDan Gohman2010-07-281-22/+39
| | | | | | | | | | | | object, as it may still be referenced by SCEVs not cleaned up by the use list traversal. Also, in ScalarEvolution::forgetValue, only check for a SCEVUnknown object for the original value, not for any value in the use list, because other SCEVUnknown values aren't necessary obsolete at that point. llvm-svn: 109570
* When creating a jump destination, its scope should be the scope of theJohn McCall2010-07-283-1/+41
| | | | | | | | | enclosing normal cleanup, not the top of the EH stack. I'm *really* surprised this hasn't been causing more problems. Fixes rdar://problem/8231514. llvm-svn: 109569
* Added and improved logging. This is helping us as weSean Callanan2010-07-285-36/+77
| | | | | | | diagnose a problem where we're not correctly emitting PIC code. llvm-svn: 109568
* Make SCEVCallbackVH::allUsesReplacedWith unconditionally deleteDan Gohman2010-07-281-12/+6
| | | | | | the old value. llvm-svn: 109567
* Implement a vectorized algorithm for <16 x i8> << <16 x i8>Nate Begeman2010-07-282-22/+85
| | | | | | This is about 4x faster and smaller than the existing scalarization. llvm-svn: 109566
* Add a comment.Dan Gohman2010-07-281-0/+2
| | | | llvm-svn: 109565
* Rearrange several datastructures in LazyValueInfo to improve compile time.Owen Anderson2010-07-271-69/+35
| | | | | | This is still not perfect, but better than it was before. llvm-svn: 109563
* Fill out the interface of DenseSet a bit.Owen Anderson2010-07-271-0/+6
| | | | llvm-svn: 109562
* Added some false positive checking to UnreachableCodeCheckerTom Care2010-07-276-87/+177
| | | | | | | | | - Allowed reporting of dead macros - Added path walking function to search for false positives in conditional statements - Updated some affected tests - Added some false positive test cases llvm-svn: 109561
* Extracted out some useful common functions in IdempotentOperationChecker to ↵Tom Care2010-07-274-86/+126
| | | | | | their own CheckerHelpers file. llvm-svn: 109560
* Testcase for r109556. Radar 8198362.Stuart Hastings2010-07-271-0/+18
| | | | llvm-svn: 109557
* Add PTH test case for <rdar://problem/8227989>.Ted Kremenek2010-07-272-0/+19
| | | | llvm-svn: 109555
* Record macros in dependent PCHs. Also add various info tables to dependent ↵Sebastian Redl2010-07-278-10/+93
| | | | | | PCHs; tests for this to follow. llvm-svn: 109554
* reintroduce original (asserting) semantics of CallSite(Instruction *II)Gabor Greif2010-07-272-1/+3
| | | | | | | add instead a CallSite(Value* V) constructor that is consistent with ImmutableCallSize and use that one in client code llvm-svn: 109553
* Added a test case to test that break on a struct declaration has no effect.Johnny Chen2010-07-271-0/+54
| | | | | | Instead, the first executable statement is set as the breakpoint. llvm-svn: 109552
* Revert r109546, it broke linux build.Argyrios Kyrtzidis2010-07-276-76/+91
| | | | llvm-svn: 109550
OpenPOWER on IntegriCloud