summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Move MaximumAlignment to Value.h, now that GlobalValue.h needs it.Dan Gohman2010-07-282-4/+4
| | | | llvm-svn: 109656
* Make GlobalValue alignment consistent with load, store, and allocaDan Gohman2010-07-283-5/+13
| | | | | | alignment, fixing silent truncation of alignment values. llvm-svn: 109653
* Create a fixed stack object for varargs that is as large as any register.Jakob Stoklund Olesen2010-07-281-1/+4
| | | | | | | | | | The size of this object isn't used for anything - technically it is of variable size. This avoids a false positive from the assert in X86InstrInfo::loadRegFromStackSlot, and fixes PR7735. llvm-svn: 109652
* Added first bit of support for the dwarf .file directive. This patch collectsKevin Enderby2010-07-286-1/+178
| | | | | | | the info from the .file directive and makes file and directory tables that will eventually be put out as part of the dwarf info in the output file. llvm-svn: 109651
* RegionInfo: Make sure to free cached nodes; Tobias, please check!Daniel Dunbar2010-07-281-0/+5
| | | | llvm-svn: 109650
* MC: Put back the MCFragment vtable, so subclasses are destroyed properly (duh).Daniel Dunbar2010-07-282-0/+4
| | | | llvm-svn: 109649
* Regenerate.Eric Christopher2010-07-281-0/+12
| | | | llvm-svn: 109647
* Use a C++ compiler for the atomic builtin check since we'llEric Christopher2010-07-281-0/+4
| | | | | | | | be using a C++ compiler to build. Patch by Török Edwin! llvm-svn: 109646
* Define a maximum supported alignment value for load, store, andDan Gohman2010-07-288-1/+46
| | | | | | | | | alloca instructions (constrained by their internal encoding), and add error checking for it. Fix an instcombine bug which generated huge alignment values (null is infinitely aligned). This fixes undefined behavior noticed by John Regehr. llvm-svn: 109643
* Fix flags in global block descriptor whenFariborz Jahanian2010-07-282-17/+24
| | | | | | | block returns structs. Fies radar 8241648. Executable test added to llvm test suite. llvm-svn: 109620
* Make the pointer arguments to the __sync_* builtins pointers toDouglas Gregor2010-07-282-64/+70
| | | | | | volatile-qualified types. Fixes <rdar://problem/8228293>. llvm-svn: 109618
* 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
OpenPOWER on IntegriCloud