summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Update function names to conform to guidelines. No functional change intended.Chad Rosier2012-09-102-4/+4
| | | | llvm-svn: 163556
* Fix PR13784: instantiation of an abstract class in a conditional operator.David Blaikie2012-09-102-0/+20
| | | | | | | | | | | | A couple of missing "RequireNonAbstractType" calls in conditional operator handling. I looked for opportunities to tie this check in to all relevant callers of PerformCopyInitialization (couldn't be all callers since this is called for base subobject copying too, where it's acceptable to copy abstract types) but the callers varied too much & in many cases had substantial code or conditionals on the RequireNonAbstractType call, the PerformCopyInitialization call, or the code between the two calls. llvm-svn: 163555
* test/CodeGen/X86/ms-inline-asm.ll: Relax for non-darwin x86 targets. ↵NAKAMURA Takumi2012-09-101-2/+2
| | | | | | '##InlineAsm' could not be seen in other hosts. llvm-svn: 163554
* Move the null check outside of the loop, no functionality change.Argyrios Kyrtzidis2012-09-101-1/+4
| | | | llvm-svn: 163553
* [PCH] When loading fields from external storage make sure to alsoArgyrios Kyrtzidis2012-09-102-2/+42
| | | | | | | | | | | load in the IndirectField declarations as well. Field designators in initializer lists depend on traversing the fields decl chain to find the indirect fields. Fixes rdar://12239321 llvm-svn: 163552
* [analyzer] Make the defaults explicit for each of the new config options.Jordan Rose2012-09-103-9/+53
| | | | | | Also, document both new inlining options in IPA.txt. llvm-svn: 163551
* [ms-inline asm] Properly emit the asm directives when the AsmPrinterVariantChad Rosier2012-09-102-3/+19
| | | | | | and InlineAsmVariant don't match. llvm-svn: 163550
* Update test case for Release builds.Chad Rosier2012-09-101-1/+1
| | | | llvm-svn: 163549
* [analyzer] For now, don't inline C++ standard library functions.Jordan Rose2012-09-107-3/+176
| | | | | | | | | | | | | | | | This is a (heavy-handed) solution to PR13724 -- until we know we can do a good job inlining the STL, it's best to be consistent and not generate more false positives than we did before. We can selectively whitelist certain parts of the 'std' namespace that are known to be safe. This is controlled by analyzer config option 'c++-stdlib-inlining', which can be set to "true" or "false". This commit also adds control for whether or not to inline any templated functions (member or non-member), under the config option 'c++-template-inlining'. This option is currently on by default. llvm-svn: 163548
* Remove redundant semicolons which are null statements.Dmitri Gribenko2012-09-106-7/+7
| | | | llvm-svn: 163547
* Remove redundant semicolons which are null statements.Dmitri Gribenko2012-09-1013-13/+13
| | | | llvm-svn: 163546
* Disable stack coloring because it makes dragonegg fail bootstrapping.Nadav Rotem2012-09-101-1/+1
| | | | llvm-svn: 163545
* [ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() functionChad Rosier2012-09-104-7/+24
| | | | | | and update the printOperand() function accordingly. llvm-svn: 163544
* Added a python example that will compute which functions in a process are ↵Greg Clayton2012-09-101-0/+56
| | | | | | hogging the stack. llvm-svn: 163543
* [ms-inline asm] Add support for .att_syntax directive.Chad Rosier2012-09-102-3/+8
| | | | llvm-svn: 163542
* Fixed a few places where we were doing:Jim Ingham2012-09-103-6/+12
| | | | | | | | | uint32_t size = ThreadList.GetSize(); for (i=0; i < size; ++i) without grabbing the thread list mutex. llvm-svn: 163541
* Comment AST: TableGen'ize all command lists in CommentCommandTraits.cpp.Dmitri Gribenko2012-09-1030-555/+879
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have a list of all commands. This is a good thing in itself, but it also enables us to easily implement typo correction for command names. With this change we have objects that contain information about each command, so it makes sense to resolve command name just once during lexing (currently we store command names as strings and do a linear search every time some property value is needed). Thus comment token and AST nodes were changed to contain a command ID -- index into a tables of builtin and registered commands. Unknown commands are registered during parsing and thus are also uniformly assigned an ID. Using an ID instead of a StringRef is also a nice memory optimization since ID is a small integer that fits into a common bitfield in Comment class. This change implies that to get any information about a command (even a command name) we need a CommandTraits object to resolve the command ID to CommandInfo*. Currently a fresh temporary CommandTraits object is created whenever it is needed since it does not have any state. But with this change it has state -- new commands can be registered, so a CommandTraits object was added to ASTContext. Also, in libclang CXComment has to be expanded to include a CXTranslationUnit so that all functions working on comment AST nodes can get a CommandTraits object. This breaks binary compatibility of CXComment APIs. Now clang_FullComment_getAsXML(CXTranslationUnit TU, CXComment CXC) doesn't need TU parameter anymore, so it was removed. This is a source-incompatible change for this C API. llvm-svn: 163540
* Enable stack coloring.Nadav Rotem2012-09-101-1/+1
| | | | llvm-svn: 163539
* Remove clang man page reference to -Oz. It's not an option we want people ↵Ted Kremenek2012-09-101-4/+3
| | | | | | to use, and is around for historical reasons. llvm-svn: 163538
* Thread-safety analysis: differentiate between two forms of analysis; a preciseDeLesley Hutchins2012-09-106-50/+148
| | | | | | | | | analysis that may give false positives because it is confused by aliasing, and a less precise analysis that has fewer false positives, but may have false negatives. The more precise warnings are enabled by -Wthread-safety-precise. An additional note clarify the warnings in the precise case. llvm-svn: 163537
* Now that I have a test file to work with, disable the Filecheck part of this ↵Ted Kremenek2012-09-101-2/+2
| | | | | | test. llvm-svn: 163536
* Don't attempt to use flags from predicated instructions.Jakob Stoklund Olesen2012-09-102-2/+29
| | | | | | | | | | | | The ARM backend can eliminate cmp instructions by reusing flags from a nearby sub instruction with similar arguments. Don't do that if the sub is predicated - the flags are not written unconditionally. <rdar://problem/12263428> llvm-svn: 163535
* Correctly 'cat' out test files.Ted Kremenek2012-09-101-2/+2
| | | | llvm-svn: 163534
* Fix another case where we should be using isBeforeInTranslationUnit().Ted Kremenek2012-09-101-2/+4
| | | | llvm-svn: 163533
* [Object] Extract Elf_Ehdr. Patch by Hemant Kulkarni!Michael J. Spencer2012-09-102-24/+26
| | | | llvm-svn: 163532
* Add a few more cases where we should be using isBeforeInTranslationUnit().Ted Kremenek2012-09-101-2/+4
| | | | llvm-svn: 163531
* Stack Coloring: Handle the case where END markers come before BEGIN markers ↵Nadav Rotem2012-09-102-0/+39
| | | | | | properly. llvm-svn: 163530
* As a debugging aid to unbreak the buildbots, cat the plist files so I can ↵Ted Kremenek2012-09-101-2/+2
| | | | | | view them on different builders. llvm-svn: 163529
* Enhance PR11334 fix to support extload from v2f32/v4f32Michael Liao2012-09-104-11/+43
| | | | | | - Fix an remaining issue of PR11674 as well llvm-svn: 163528
* build/clang_darwin: Add the ASAN dynamic library.Daniel Dunbar2012-09-101-0/+13
| | | | | | - Now with spelling fix for -lstdc++. llvm-svn: 163527
* More tweaking and test cases for call to superFariborz Jahanian2012-09-102-3/+41
| | | | | | annotations. // rdar://6386358 llvm-svn: 163525
* Re-enable FileCheck testing of retain-release.m test, and forceTed Kremenek2012-09-101-3/+3
| | | | | | a C++ dialect. Let's see if this is the portability issue with this test. llvm-svn: 163524
* Add "blocked" heuristic to the Hexagon MI scheduler.Sergei Larin2012-09-102-177/+269
| | | | | | Improve AQ instruction selection in the Hexagon MI scheduler. llvm-svn: 163523
* Revert r163415 in an attempt to bring back the buildbots.Chad Rosier2012-09-101-13/+0
| | | | llvm-svn: 163522
* Playing around with "objc_refs" over the weekend and improved it to work on ↵Greg Clayton2012-09-102-34/+253
| | | | | | a large ObjC program without running into expression timeouts. Now we get a full list of ObjC classes using a runtime function and then qsort the result. Also added code that can count all instances of each ObjC on the heap and also the total byte sizes for the object allocations. llvm-svn: 163520
* Fold multiply by 0 or 1 when in UnsafeFPMath mode in SelectionDAG::getNode().Michael Ilseman2012-09-101-0/+18
| | | | | | This folding happens as early as possible for performance reasons, and to make sure it isn't foiled by other transforms (e.g. forming FMAs). llvm-svn: 163519
* whitespaceMichael Ilseman2012-09-101-10/+10
| | | | llvm-svn: 163518
* objective-C: Improving diagnostocs for missing call toFariborz Jahanian2012-09-105-7/+7
| | | | | | super's annotated methods. // rdar://6386358 llvm-svn: 163517
* Add boolean simplification support from CMOVMichael Liao2012-09-102-13/+59
| | | | | | | | - If a boolean value is generated from CMOV and tested as boolean value, simplify the use of test result by referencing the original condition. RDRAND intrinisc is one of such cases. llvm-svn: 163516
* Temporarily disable FileCheck part of this test.Ted Kremenek2012-09-101-2/+2
| | | | llvm-svn: 163515
* Allow vector types in pseudo-destructor expressions. Fixes PR13798.Douglas Gregor2012-09-102-1/+13
| | | | llvm-svn: 163514
* Workaround for MacOSX build failure with gcc <= 4.4Alexander Kornienko2012-09-101-6/+6
| | | | | | | | | | | | | | | | Summary: A better solution to http://llvm.org/bugs/show_bug.cgi?id=13777 Named namespace + more unique name to make ODR violations unlikely. Reviewers: chandlerc, doug.gregor, klimek Reviewed By: doug.gregor CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D38 llvm-svn: 163513
* Revert "Revert Ted's r163489 and r163490, due to breakage."Ted Kremenek2012-09-102-2788/+2911
| | | | | | | | | I need to see how this breaks on other platforms when I fix the issue that Benjamin Kramer pointed out. This includes r163489 and r163490, plus a two line change. llvm-svn: 163512
* Fix an assertion failure when optimising a shufflevector incorrectly into ↵James Molloy2012-09-103-10/+22
| | | | | | concat_vectors, and a followup bug with SelectionDAG::getNode() creating nodes with invalid types. llvm-svn: 163511
* Minor cleanup. No functional change.Nadav Rotem2012-09-101-3/+3
| | | | llvm-svn: 163510
* Stack Coloring: Debug prints to print the slot number and not the array index.Nadav Rotem2012-09-101-1/+2
| | | | llvm-svn: 163509
* Stack Coloring: When searching for disjoint regions, do not compare ↵Nadav Rotem2012-09-101-1/+1
| | | | | | intervals twice or to theirself. llvm-svn: 163508
* Stack Coloring: Add support for multiple regions of the same slot, within a ↵Nadav Rotem2012-09-102-23/+61
| | | | | | single basic block. llvm-svn: 163507
* The VPSHUFB 256-bit instruction may be generated when one of input vector is ↵Elena Demikhovsky2012-09-102-5/+39
| | | | | | | | undefined or zeroinitializer. I've added the "zeroinitializer" case in this patch. llvm-svn: 163506
* Make helper functions static.Benjamin Kramer2012-09-102-5/+5
| | | | llvm-svn: 163505
OpenPOWER on IntegriCloud