summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove calls to calloc if the allocated memory is not used (it was already ↵Nuno Lopes2012-05-033-5/+5
| | | | | | | | being done for malloc) fix a few typos found by Chad in my previous commit llvm-svn: 156110
* Support for target dependent Hexagon VLIW packetizer.Sirish Pande2012-05-0318-93/+5036
| | | | | | This patch creates and optimizes packets as per Hexagon ISA rules. llvm-svn: 156109
* Add rudimentary CMake logic for detecting Graphviz.Ted Kremenek2012-05-032-1/+2
| | | | llvm-svn: 156108
* [PCH] When validating that the files coming from PCH did not change, alsoArgyrios Kyrtzidis2012-05-039-18/+124
| | | | | | | | | | | validate that we didn't override the contents of any of such files. If this is detected, emit a diagnostic error and recover gracefully by using the contents of the original file that the PCH was built from. Part of rdar://11305263 llvm-svn: 156107
* modern objc translator: used size_t in coupleFariborz Jahanian2012-05-0317-2/+31
| | | | | | of places. // rdar://11375908 llvm-svn: 156106
* Use array_lengthof instead of sizeof trickery.Chad Rosier2012-05-031-2/+1
| | | | llvm-svn: 156104
* Do not keep track of the set of visited Objective-C containers whenDouglas Gregor2012-05-031-7/+8
| | | | | | | | | performing the search for overridden methods. We very rarely see the same container twice, and in those rare cases we still have the fallback of the second SmallPtrSet to eliminate duplicates. Good for ~1.5% -fsyntax-only speedup on the code in <rdar://problem/11004361>. llvm-svn: 156103
* add support for calloc to objectsize loweringNuno Lopes2012-05-034-5/+88
| | | | llvm-svn: 156102
* Clean up the usage of "MasterPlan" status in ThreadPlans. Only ↵Jim Ingham2012-05-0317-183/+280
| | | | | | | | | | | | | | | user-initiated plans should be MasterPlans that want to stay on the plan stack. So make all plans NOT MasterPlans by default and then have the SB API's and the CommandObjectThread step commands set this explicitly. Also added a "clean up" phase to the Thread::ShouldStop so that if plans get stranded on the stack, we can remove them. This is done by adding an IsPlanStale method to the thread plans, and if the plan can know that it is no longer relevant, it returns true, and the plan and its sub-plans will get discarded. llvm-svn: 156101
* Add COFF reader.Michael J. Spencer2012-05-036-7/+425
| | | | | | | There are no tests for this yet because I still need to finish the YAML -> COFF converter so we don't get binary files checked in. llvm-svn: 156100
* Document the fact that you can repeat "-n" and similar options to make one ↵Jim Ingham2012-05-031-7/+10
| | | | | | breakpoint on multiple names. llvm-svn: 156098
* modern objc translation. objc_getClass() and objc_getMetaClass()Fariborz Jahanian2012-05-032-2/+11
| | | | | | | prototypes should both return `struct objc_class *`. // rdar://11375495 llvm-svn: 156097
* [driver - crash diagnostics] Only write the failing command in the script.Chad Rosier2012-05-031-1/+6
| | | | | | Part of rdar://11285725 llvm-svn: 156096
* Fix typo and avoid layout issue with almost-but-not-quite-fixed-width fonts.Richard Smith2012-05-031-2/+1
| | | | llvm-svn: 156095
* Minor copy-edits to clang::fallthrough attribute documentation.Richard Smith2012-05-031-9/+9
| | | | llvm-svn: 156094
* Canonicalize loop.Chad Rosier2012-05-031-1/+2
| | | | llvm-svn: 156093
* Disable -Wformat-extra-args for arguments defined in system headers.Bob Wilson2012-05-031-3/+6
| | | | | | | | | | | | | Some of the NSAssert macros in OS X 10.7 are implemented in a way that adds extra arguments that trigger the -Wformat-extra-args warning. Earlier versions of clang failed to detect those -Wformat issues, but now that clang is reporting those problems, we need to quiet them since there's nothing to be done to fix them. <rdar://problem/11317765> I don't know how to write a testcase for this. Suggestions welcome. Patch by Ted Kremenek! llvm-svn: 156092
* Silence unused-variable warning when assertions are disabled.Kaelyn Uhrain2012-05-031-0/+1
| | | | llvm-svn: 156091
* Honour CLANG_BUILD_EXAMPLES correctly, by setting the directory'sPeter Collingbourne2012-05-031-1/+1
| | | | | | EXCLUDE_FROM_ALL property. llvm-svn: 156090
* [analyzer] When promoting constant integers in a comparison, use the larger ↵Jordy Rose2012-05-032-20/+67
| | | | | | width of the two to avoid truncation. llvm-svn: 156089
* Fix AttributeError when using crashlog with verbose mode.Johnny Chen2012-05-031-1/+4
| | | | | | rdar://problem/11374653 llvm-svn: 156088
* Remove diagnostic groups and DefaultIgnore from notes.Richard Smith2012-05-031-7/+3
| | | | llvm-svn: 156087
* Add -Wimplicit-fallthrough warning flag, which warns on fallthrough betweenRichard Smith2012-05-0312-31/+635
| | | | | | | | | | | | cases in switch statements. Also add a [[clang::fallthrough]] attribute, which can be used to suppress the warning in the case of intentional fallthrough. Patch by Alexander Kornienko! The handling of C++11 attribute namespaces in this patch is temporary, and will be replaced with a cleaner mechanism in a subsequent patch. llvm-svn: 156086
* [analyzer] CString Checker: Do not split the path unless the userAnna Zaks2012-05-032-1/+12
| | | | | | | | | | specifically checks for equality to null. Enforcing this general practice, which keeps the analyzer less noisy, in the CString Checker. This change suppresses "Assigned value is garbage or undefined" warning in the added test case. llvm-svn: 156085
* Fix the type of SubClassMask.Jakob Stoklund Olesen2012-05-031-1/+1
| | | | llvm-svn: 156084
* Compress tables for getMatchingSuperRegClass().Jakob Stoklund Olesen2012-05-031-19/+67
| | | | | | | | Many register classes only have a few super-registers, so it is not necessary to keep individual bit masks for all possible sub-register indices. llvm-svn: 156083
* Fix a couple of cases of (innocuous) unmarked fallthrough. At least one of theseRichard Smith2012-05-032-0/+2
| | | | | | was unintentional. Found by -Wimplicit-fallthrough, patch by Alexander Kornienko! llvm-svn: 156082
* In StringLiteralParser::init, make sure we emit an error whenArgyrios Kyrtzidis2012-05-033-14/+15
| | | | | | | | failing to lex the string, as suggested by Eli. Part of rdar://11305263. llvm-svn: 156081
* Add the half type to the LLVM IR vim syntax highlighting.Owen Anderson2012-05-031-1/+1
| | | | llvm-svn: 156080
* [driver crash diagnostics] Remove more flags that reference absolute paths thatChad Rosier2012-05-031-3/+16
| | | | | | | aren't necessary to reproduce the clang crash. Part of rdar://11285725 llvm-svn: 156079
* objective-c: warn for properties being default synthesizedFariborz Jahanian2012-05-033-17/+30
| | | | | | | under -Wobjc-missing-property-synthesis which must be opted-in. // rdar://11295716 llvm-svn: 156078
* Fixed disassembler for vstm/vldm ARM VFP instructions.Silviu Baranga2012-05-032-4/+33
| | | | llvm-svn: 156077
* Don't override subreg functions in targets without subregisters.Jakob Stoklund Olesen2012-05-032-44/+46
| | | | | | | | Some targets have no sub-registers at all. Use the TargetRegisterInfo versions of composeSubRegIndices(), getSubClassWithSubReg(), and getMatchingSuperRegClass() for those targets. llvm-svn: 156075
* Correctly constify clang::CXXMemberCallExpr::getRecordDecl()David Blaikie2012-05-032-2/+2
| | | | llvm-svn: 156074
* Extensions of Hexagon V4 instructions.Sirish Pande2012-05-039-1339/+4107
| | | | | | This adds new instructions for Hexagon V4 architecture. llvm-svn: 156071
* replace 'break's with 'return 0' in visitCallInst code for objectsize, since ↵Nuno Lopes2012-05-031-5/+5
| | | | | | | | there is no need to fallback to visitCallSite. This gives a 0.9% in a test case llvm-svn: 156069
* Use correct variable in this example. Pointed out by waynix on IRC.Duncan Sands2012-05-031-1/+1
| | | | llvm-svn: 156067
* Change std::abs from a template function to three overloads for float, ↵Howard Hinnant2012-05-031-3/+10
| | | | | | double and long double. llvm-svn: 156064
* Test case Clang::Driver/debug-options-as.c depends on the integrated ↵Simon Atanasyan2012-05-031-2/+4
| | | | | | assembler. Turn it on explicitly on all platforms by the "-integrated-as" option. llvm-svn: 156063
* [analyzer] Equality ops are like relational ops in that the arguments ↵Jordy Rose2012-05-033-2/+73
| | | | | | | | shouldn't be converted to the result type. Fixes PR12206 and dupe PR12510. This was probably the original intent of r133041 (also me, a year ago). llvm-svn: 156062
* [analyzer] Fix RUN line and general cleanup for additive folding tests.Jordy Rose2012-05-032-30/+30
| | | | llvm-svn: 156061
* Use 'unsigned' instead of 'int' in a few places dealing with counts of ↵Craig Topper2012-05-031-3/+3
| | | | | | vector elements. llvm-svn: 156060
* Fix 256-bit vpshuflw and vpshufhw immediate encoding to handle undefs in the ↵Craig Topper2012-05-033-22/+37
| | | | | | lower half correctly. Missed in r155982. llvm-svn: 156059
* Rip out old code for finding libraries in GCC's directories.Bob Wilson2012-05-033-83/+0
| | | | llvm-svn: 156058
* [PCH] Clear switch case IDs when deserializing a objc method body.Argyrios Kyrtzidis2012-05-032-0/+18
| | | | | | Fixes rdar://11353109 & http://llvm.org/bugs/show_bug.cgi?id=12689 llvm-svn: 156056
* [analyzer] Conjure a symbol to ensure we can identify pointer arithmeticAnna Zaks2012-05-032-0/+27
| | | | | | | | | | | | We need to identify the value of ptr as ElementRegion (result of pointer arithmetic) in the following code. However, before this commit '(2-x)' evaluated to Unknown value, and as the result, 'p + (2-x)' evaluated to Unknown value as well. int *p = malloc(sizeof(int)); ptr = p + (2-x); llvm-svn: 156052
* [analyzer] Do not assert on constructing SymSymExpr with diff types.Anna Zaks2012-05-033-7/+18
| | | | | | | The resulting type info is stored in the SymSymExpr, so no reason not to support construction of expression with different subexpression types. llvm-svn: 156051
* [analyzer] Add a complexity bound on history tracking.Anna Zaks2012-05-034-3/+36
| | | | | | (Currently, this is only relevant for tainted data.) llvm-svn: 156050
* [analyzer] Revert the functional part of r155944. Anna Zaks2012-05-032-7/+3
| | | | | | | | The change resulted in multiple issues on the buildbot, so it's not ready for prime time. Only enable history tracking for tainted data(which is experimental) for now. llvm-svn: 156049
* Fix two-address pass's aggressive instruction commuting heuristics. It's meantEvan Cheng2012-05-033-17/+28
| | | | | | | | | | | | | | | | | | | | | | to catch cases like: %reg1024<def> = MOV r1 %reg1025<def> = MOV r0 %reg1026<def> = ADD %reg1024, %reg1025 r0 = MOV %reg1026 By commuting ADD, it let coalescer eliminate all of the copies. However, there was a bug in the heuristics where it ended up commuting the ADD in: %reg1024<def> = MOV r0 %reg1025<def> = MOV 0 %reg1026<def> = ADD %reg1024, %reg1025 r0 = MOV %reg1026 That did no benefit but rather ensure the last MOV would not be coalesced. rdar://11355268 llvm-svn: 156048
OpenPOWER on IntegriCloud