summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add comments about C++ clause 3.3.2p4 that mentions that the condition ↵Argyrios Kyrtzidis2008-09-111-0/+16
| | | | | | declaration should be local to an if/switch/while/for statement. llvm-svn: 56134
* On 64-bit targets, change 32-bit getelementptr indices to be 64-bitDan Gohman2008-09-112-1/+70
| | | | | | | getelementptr indices, inserting an explicit cast if necessary. This helps expose the sign-extension operation to other optimizations. llvm-svn: 56133
* Echo stderr/stdout from clang subprocess to both the stderr of ccc-analyzer andTed Kremenek2008-09-111-5/+14
| | | | | | | to an output file. This way users can both see the output of 'clang' as well as enable background logging of files that clang encounters problems on. llvm-svn: 56130
* Fix a vectorshuffle instcombine bug introduced by r55995.Dan Gohman2008-09-113-1/+43
| | | | | | Patch by Nicolas Capens! llvm-svn: 56129
* Add indirect tail call (function pointer) examples.Arnold Schwaighofer2008-09-112-0/+30
| | | | llvm-svn: 56127
* udpate header comment: s/VP/VFP/Jim Grosbach2008-09-111-1/+1
| | | | llvm-svn: 56126
* Bug fix: <rdar://problem/6164367>Ted Kremenek2008-09-111-1/+1
| | | | | | | scan-build now correctly processes path prefixes that contain multiple '+' characters or other regex control characters. llvm-svn: 56121
* When tailcallopt is enabled all fastcc calls must have an aligned argument ↵Arnold Schwaighofer2008-09-112-1/+25
| | | | | | stack size. Add a test case. llvm-svn: 56119
* Fix PR2748. Avoid coalescing physical register with virtual register which ↵Evan Cheng2008-09-113-0/+103
| | | | | | | | | | | would create illegal extract_subreg. e.g. vr1024 = extract_subreg vr1025, 1 ... vr1024 = mov8rr AH If vr1024 is coalesced with AH, the extract_subreg is now illegal since AH does not have a super-reg whose sub-register 1 is AH. llvm-svn: 56118
* Fix a bug in ANY_EXTEND handling that was breaking 403.gcc on X86-64 in fast ↵Owen Anderson2008-09-111-2/+7
| | | | | | isel. llvm-svn: 56117
* Fix comment typo.Duncan Sands2008-09-111-1/+1
| | | | llvm-svn: 56116
* Intrinsics don't touch internal global variablesDuncan Sands2008-09-111-2/+4
| | | | | | | (unless passed one via a parameter), even if they are IntrWriteMem. llvm-svn: 56115
* Added SSE41 pminsd, pmaxsd, roundps and a few othersMon P Wang2008-09-111-0/+13
| | | | llvm-svn: 56114
* Fix a copy+paste bug that Duncan spotted. For severalDan Gohman2008-09-111-1/+1
| | | | | | | cases it was still getting lucky and detecting overflow but it was clearly incorrect. llvm-svn: 56113
* Fix PR2783 - coalescer bug. Missing a TargetRegisterInfo::isVirtualRegister ↵Evan Cheng2008-09-112-1/+40
| | | | | | check. llvm-svn: 56112
* Check if the environment variable TERM is defined before using it.Ted Kremenek2008-09-111-2/+3
| | | | | | This fixes: <rdar://problem/6164279> scan-build gives error when invoked without TERM variable llvm-svn: 56110
* Update Xcode project.Ted Kremenek2008-09-111-0/+8
| | | | llvm-svn: 56109
* Eliminate some unused methods.Evan Cheng2008-09-111-30/+0
| | | | llvm-svn: 56108
* Indentation.Evan Cheng2008-09-111-2/+2
| | | | llvm-svn: 56107
* lib/Target/SubtargetFeature.cpp asserts that the FeatureKV[] table be sorted Jim Grosbach2008-09-112-2/+3
| | | | | | | | | | | by its first field, but TableGen doesn't actually enforce creating it that way. TableGen sorts the records that will be used to create it by the names of the records, not the Name field of those records. This patch corrects the sort to use the "Name" field of the record as the sort key. llvm-svn: 56106
* Intrinsics don't read these kinds of globalDuncan Sands2008-09-111-5/+7
| | | | | | variables. llvm-svn: 56105
* Fix <rdar://problem/6210791> clang ObjC rewriter: @try / @catch block with ↵Steve Naroff2008-09-111-2/+15
| | | | | | | | no @finally does not call objc_exception_try_exit. Need a couple tweaks to RewriteObjCTryStmt(). Need to deal with implicit finally clauses (to make sure objc_exception_try_exit is called). Also fixed a related bug where we need to generate an implicit @catch else clause (to again make sure objc_exception_try_exit is called). llvm-svn: 56104
* bool is not an extension in C++Douglas Gregor2008-09-111-1/+1
| | | | llvm-svn: 56103
* Make sure to store the exception in the catch parameter.Anders Carlsson2008-09-115-19/+38
| | | | llvm-svn: 56102
* Make sure to emit the catch parameter as well as the catch body.Anders Carlsson2008-09-114-5/+15
| | | | llvm-svn: 56101
* Fix stupid mistake I made in the exception handling codeAnders Carlsson2008-09-111-1/+1
| | | | llvm-svn: 56100
* Change getSubReg semantics. It now returns zero if the specified register ↵Evan Cheng2008-09-112-3/+4
| | | | | | doesn't have a subreg of the specified index. llvm-svn: 56099
* Fix a 80 column violation.Evan Cheng2008-09-111-1/+2
| | | | llvm-svn: 56097
* Do implicit conversion to bool for the condition in a do-while statement.Argyrios Kyrtzidis2008-09-112-1/+6
| | | | llvm-svn: 56096
* Fix do-while scoping in C++.Argyrios Kyrtzidis2008-09-112-1/+15
| | | | llvm-svn: 56095
* Allow array-to-pointer conversion for rvalues.Argyrios Kyrtzidis2008-09-111-1/+7
| | | | llvm-svn: 56094
* CXXConditionDeclExpr expression node is an lvalue.Argyrios Kyrtzidis2008-09-111-0/+2
| | | | llvm-svn: 56093
* LangOptions.C99 should be false in C++.Argyrios Kyrtzidis2008-09-111-0/+5
| | | | llvm-svn: 56092
* The version of AtomicSDNode::AtomicSDNode used (only) forDale Johannesen2008-09-112-8/+8
| | | | | | | | | | | | | cmp-and-swap reversed the Cmp and Swap arguments; comments make it clear this is unintentional. Unfortunately, the x86 BE had a compensating reversal, which is removed here. PPC is OK. From inspection of the Alpha code I think it is OK, but if somebody has that platform please check it out. I cannot test on that platform. llvm-svn: 56091
* Revert r56078, getLang().C99 being true in C++ is a bug that will be fixed.Argyrios Kyrtzidis2008-09-111-12/+91
| | | | llvm-svn: 56090
* Add support for expected-note to Clang's -verify optionDouglas Gregor2008-09-113-6/+35
| | | | llvm-svn: 56089
* If ISD::ANY_EXTEND fails, try ISD::ZERO_EXTEND and ISD::SIGN_EXTEND before ↵Owen Anderson2008-09-111-0/+7
| | | | | | | | giving up. This fixes 445.gobmk on X86-64 in fast isel. llvm-svn: 56088
* Succumb utterly to compatibility and implementDale Johannesen2008-09-111-4/+4
| | | | | | | __sync_fetch_and_nand as ANDC, even though that's not what nand means. llvm-svn: 56087
* Use ABIArgInfo for decisions about function arguments (not just returnDaniel Dunbar2008-09-111-29/+145
| | | | | | | | | | | | | value). - Added ABIArgInfo::ByVal (mostly supported) and ABIArgInfo::Expand (asserted out). - Added classifyArgumentType which currently just uses ABIArgInfo::Default or ByVal. This nearly matches old behavior, but we now set ByVal in a few situations we may have left it off before (on complex, for example). llvm-svn: 56086
* Propagate subreg index when promoting a load to a copy.Evan Cheng2008-09-112-0/+47
| | | | llvm-svn: 56085
* Fix two bugs exposed by array passing assert:Daniel Dunbar2008-09-114-9/+49
| | | | | | | | | (1) Additional arguments to variadic methods should have default promotions applied. (2) Additional arguments to non-variadic methods were allowed. llvm-svn: 56084
* Add ObjCMethodDecl::getSourceRange.Daniel Dunbar2008-09-111-0/+3
| | | | llvm-svn: 56083
* In my analysis for r56076 I missed the case where the originalDan Gohman2008-09-111-1/+2
| | | | | | multiplication overflows. llvm-svn: 56082
* Fold Parser::ParseTag into Parser::ParseEnumSpecifier, as suggested in this ↵Argyrios Kyrtzidis2008-09-112-49/+39
| | | | | | | | post: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-September/002721.html llvm-svn: 56081
* Bug fix, apply default argument promotion in message sends for whichDaniel Dunbar2008-09-112-0/+10
| | | | | | | | | no method declaration was found. - This was allowing arrays to pass "by value" among other things. Add assert in CodeGen that arguments cannot have array type. llvm-svn: 56080
* Refactor common Obj-C message send checking code intoDaniel Dunbar2008-09-112-48/+35
| | | | | | | CheckMessageArgumentTypes. - No functionality change. llvm-svn: 56079
* -getLang().C99 is true in C++ too, remove the use of the C99orCXX variable.Argyrios Kyrtzidis2008-09-101-91/+12
| | | | | | | | -Scoping in C99 works good for C++ too, remove the C++-specific comments. If someone thinks that the C++-specific comments are necessary for clarification, let me know and I'll put them back on. llvm-svn: 56078
* In the 'condition.cpp' test case, make sure that condition declarations are ↵Argyrios Kyrtzidis2008-09-101-3/+3
| | | | | | local to the statement. llvm-svn: 56077
* Fix an icmp+sdiv optimization to check for and handle an overflowDan Gohman2008-09-102-1/+24
| | | | | | condition. This fixes PR2740. llvm-svn: 56076
* Add XFAIL test case for:Daniel Dunbar2008-09-101-0/+9
| | | | | | <rdar://problem/6211479> [sema] array type invalid for Obj-C property llvm-svn: 56075
OpenPOWER on IntegriCloud