summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct a top-level comment.Dan Gohman2008-07-161-1/+1
| | | | llvm-svn: 53685
* Add support for promoting and expanding AssertZextDuncan Sands2008-07-164-0/+3116
| | | | | | | and AssertSext. Needed when passing huge integer parameters with the zeroext or signext attributes. llvm-svn: 53684
* Clarify the comments here, to make slightly more clear theDan Gohman2008-07-161-2/+2
| | | | | | | difference in purpose of TargetInstrInfo and TargetInstrDesc, which isn't immediately obvious from the name. llvm-svn: 53683
* Tidy a doxygen comment.Dan Gohman2008-07-161-1/+1
| | | | llvm-svn: 53682
* Fix a comment to say nonnegative instead of positive.Dan Gohman2008-07-161-1/+1
| | | | llvm-svn: 53681
* Add an assert to check for empty flags for MachineMemOperand.Dan Gohman2008-07-161-0/+1
| | | | llvm-svn: 53680
* RewriteObjC::RewriteObjCTryStmt():Don't synthesize a catch begin if there ↵Steve Naroff2008-07-162-20/+24
| | | | | | | | are 0 catch clauses. This fixes <rdar://problem/5987211> clang ObjC rewriter: @try / @finally block produces unbalanced output. llvm-svn: 53679
* Teach RewriteObjC::RewriteObjCMethodDecl() to deal with pointer to function ↵Steve Naroff2008-07-161-1/+33
| | | | | | | | return types. This fixes <rdar://problem/6034961> clang ObjC rewriter: rewriting methods with function pointer return values does not work llvm-svn: 53678
* Test passing of integer parameters for integersDuncan Sands2008-07-161-0/+1537
| | | | | | | | | | of all sizes from i1 to i256. The code is not always that great, for example (x86) movw %di, %ax movw %ax, i17_s where the store could be directly from %di. llvm-svn: 53677
* Test codegen of loads and stores of all integerDuncan Sands2008-07-161-0/+2049
| | | | | | | | sizes from i1 to i256. The generated code is like one huge bug report of things that the DAG combiner fails to simplify! llvm-svn: 53676
* Add a few cases to instcombine's extractvalue testcase.Matthijs Kooijman2008-07-161-2/+16
| | | | llvm-svn: 53675
* Un-XFAIL multdeadretval, since instcombine now properly handles the mess ↵Matthijs Kooijman2008-07-161-1/+0
| | | | | | deadargelim leaves behind :-) llvm-svn: 53674
* Redo InstCombiner::visitExtractValueInst. Instead of using the (complicate)Matthijs Kooijman2008-07-161-5/+80
| | | | | | | FindInsertedValue, it now performs a number of simple transformations that should result in the same effect when applied iteratively. llvm-svn: 53673
* Reorder methods alphabetically. No functionality change.Duncan Sands2008-07-163-922/+913
| | | | | | | | While this is not a wonderful organizing principle, it does make it easy to find routines, and clear where to insert new ones. llvm-svn: 53672
* Turn on LegalizeTypes by default.Duncan Sands2008-07-162-6/+6
| | | | llvm-svn: 53671
* Don't use ++idx_begin when I actually mean idx_begin + 1, especially since weMatthijs Kooijman2008-07-161-1/+1
| | | | | | | | also use *idx_begin in the same expression, giving unpredictable results. This fixes this bug: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-July/015877.html llvm-svn: 53670
* The atomic.cmp.swap promotion logic is wrong: itDuncan Sands2008-07-161-8/+2
| | | | | | | | | | | | | | | | simply does the atomic.cmp.swap on the larger type, which means it blows away whatever is sitting in the bytes just after the memory location, i.e. causes a buffer overflow. This really requires target specific code, which is why LegalizeTypes doesn't try to handle this case generically. The existing (wrong) code in LegalizeDAG will go away automatically once the type legalization code is removed from LegalizeDAG so I'm leaving it there for the moment. Meanwhile, don't test for this feature. llvm-svn: 53669
* When checking for name collision between a tag and a previously defined ↵Argyrios Kyrtzidis2008-07-162-5/+12
| | | | | | | | namespace, the collision occured even when the tag was in a different nested scope. Fix it by taking into account the scope when checking for namespace-tag name collisions. llvm-svn: 53667
* Fix PR2296. Do not transform x86_sse2_storel_dq into a full-width store.Evan Cheng2008-07-162-1/+13
| | | | llvm-svn: 53666
* Add 'this' in the comments of Parser::ParseCastExpression to indicate that ↵Argyrios Kyrtzidis2008-07-161-0/+1
| | | | | | it is handled. llvm-svn: 53665
* Updated latest checker build.Ted Kremenek2008-07-161-1/+1
| | | | llvm-svn: 53664
* x86-64 PIC JIT fixes: do not generate the extra load for external GV's.Evan Cheng2008-07-162-8/+5
| | | | llvm-svn: 53661
* X86-64 PIC jump table values are different from x86-32 cases, they are dest ↵Evan Cheng2008-07-161-0/+4
| | | | | | - table base. llvm-svn: 53660
* Fix regression introduced by ↵Ted Kremenek2008-07-161-2/+4
| | | | | | | | http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080714/006514.html. The regression was the casts from integers to pointers where not being handled: they would just return UnknownVal. This would greatly decrease path-sensitivity. llvm-svn: 53659
* Have scan-build control default analyses.Ted Kremenek2008-07-152-7/+10
| | | | llvm-svn: 53654
* Fix transfer function logic in GRSimpleVals for integer casts: only support ↵Ted Kremenek2008-07-151-0/+4
| | | | | | | | casts from integers to integers. This fixes a crash reported by Anders Carlsson! llvm-svn: 53649
* Add -DIBOutlet=__attribute__((iboutlet)) to analyzer arguments.Ted Kremenek2008-07-151-1/+1
| | | | llvm-svn: 53648
* For the MissingDealloc check, don't treat IBOutlet ivars as being needed to ↵Ted Kremenek2008-07-152-2/+24
| | | | | | be released llvm-svn: 53647
* Make iboutlet diagnostic lowercaseTed Kremenek2008-07-151-1/+1
| | | | llvm-svn: 53646
* Use lowercase of attribute iboutlet to not conflict with the macro IBOutletTed Kremenek2008-07-151-1/+1
| | | | llvm-svn: 53645
* Added parsing/sema support for __attribute__ ((IBOutlet)), a clang-specific ↵Ted Kremenek2008-07-155-2/+38
| | | | | | attribute that the static analyzer will use to recognize what ivars are IBOutlets. llvm-svn: 53644
* Added --status-bugs option to scan-build. By default, the exit status ofTed Kremenek2008-07-151-23/+43
| | | | | | | | | | scan-build is the same as the exit status of the executed build command. With this option, the exit status of scan-build is 1 if the analyzer flagged any bugs, and 0 otherwise. This addresses: <rdar://problem/6075320> llvm-svn: 53642
* Per Sam Bishop's excellent suggestion, use "system" instead of backticks to ↵Ted Kremenek2008-07-151-13/+13
| | | | | | invoke sub-commands used by scan-build. This avoids meta-character translation issues caused by a shell subprocess. llvm-svn: 53640
* TargetAsmInfo::SectionForGlobal showed up in a profile. Simplify it a little.Dan Gohman2008-07-151-5/+3
| | | | llvm-svn: 53639
* SelectionDAG::AssignNodeIds is unused.Dan Gohman2008-07-152-15/+0
| | | | llvm-svn: 53636
* Quote file names to better handle paths with spaces.Ted Kremenek2008-07-151-9/+9
| | | | llvm-svn: 53635
* Don't sort SDNodes by their addresses in SelectionDAG::dump. Instead,Dan Gohman2008-07-151-9/+5
| | | | | | | just use the AllNodes order, which is at least relatively stable across runs. llvm-svn: 53632
* Incremented latest checker build.Ted Kremenek2008-07-151-1/+1
| | | | llvm-svn: 53631
* Distinguish between dead stores and dead initializations.Ted Kremenek2008-07-152-10/+20
| | | | llvm-svn: 53628
* Revert this, as it seems to still be broken.Owen Anderson2008-07-151-1/+1
| | | | llvm-svn: 53627
* isRetain() and isRelease() now only returns true if "Retain"/"Release" ↵Ted Kremenek2008-07-151-2/+4
| | | | | | appears in the suffix of a function's name. llvm-svn: 53621
* scan-build now propagates up the exit status of the build command.Ted Kremenek2008-07-151-2/+5
| | | | llvm-svn: 53620
* Do not enable -warn-objc-missing-dealloc by default.Ted Kremenek2008-07-151-1/+1
| | | | llvm-svn: 53619
* scan-build now interrogates clang for a list of available analyses, and presentsTed Kremenek2008-07-151-23/+79
| | | | | | these as options to the user of scan-build. llvm-svn: 53618
* Support retain/release tracking for CoreGraphics (CGxxxRef) objects.Ted Kremenek2008-07-151-12/+83
| | | | llvm-svn: 53617
* Enable local PRE by default.Owen Anderson2008-07-151-1/+1
| | | | llvm-svn: 53616
* Have GVN do a pre-pass over the CFG that folds away unconditional branches ↵Owen Anderson2008-07-151-2/+63
| | | | | | where possible. This allows local PRE to be more aggressive. llvm-svn: 53615
* XFAIL the multdeadretval test for now, I will be fixing instcombine to make ↵Matthijs Kooijman2008-07-151-0/+1
| | | | | | it work again tomorrow. llvm-svn: 53614
* LegalizeTypes support for fabs on ppc long double.Duncan Sands2008-07-153-0/+34
| | | | llvm-svn: 53613
* Remove a few tests which no longer hold for deadargelim (since it is nowMatthijs Kooijman2008-07-151-15/+7
| | | | | | | | allowed to canonicalize return values). Add a test that checks if return value and function attributes are not removed. llvm-svn: 53612
OpenPOWER on IntegriCloud