summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ms-inline asm] Add $$ before numeric constants in the IR.Chad Rosier2012-09-112-16/+27
| | | | llvm-svn: 163581
* Reorganize MachineScheduler interfaces and publish them in the header.Andrew Trick2012-09-114-766/+336
| | | | | | | | | | | | | | The Hexagon target decided to use a lot of functionality from the target-independent scheduler. That's fine, and other targets should be able to do the same. This reorg and API update makes that easy. For the record, ScheduleDAGMI was not meant to be subclassed. Instead, new scheduling algorithms should be able to implement MachineSchedStrategy and be done. But if need be, it's nice to be able to extend ScheduleDAGMI, so I also made that easier. The target scheduler is somewhat more apt to break that way though. llvm-svn: 163580
* Remove unused declarationAndrew Trick2012-09-111-2/+0
| | | | llvm-svn: 163579
* Fix buffer overflow.Eli Friedman2012-09-111-2/+2
| | | | llvm-svn: 163578
* [analyzer] Member function calls that use qualified names are non-virtual.Jordan Rose2012-09-114-0/+49
| | | | | | | | | | | C++11 [expr.call]p1: ...If the selected function is non-virtual, or if the id-expression in the class member access expression is a qualified-id, that function is called. Otherwise, its final overrider in the dynamic type of the object expression is called. <rdar://problem/12255556> llvm-svn: 163577
* Initialize a variable to quite a compiler warning.Jim Ingham2012-09-111-1/+1
| | | | llvm-svn: 163576
* Typed too fast adding lockers. Actually put them in a locker.Jim Ingham2012-09-111-2/+2
| | | | llvm-svn: 163575
* [analyzer] Turn stl inlining back on.Anna Zaks2012-09-102-2/+2
| | | | | | | The one reported bug, which was exposed by stl inlining, is addressed in r163558. llvm-svn: 163574
* Fix warnings.Michael J. Spencer2012-09-106-38/+15
| | | | llvm-svn: 163573
* Shortcut ThreadPlanStepRange::MischiefManaged - if we have pushed new plans ↵Jim Ingham2012-09-102-10/+20
| | | | | | | | and they are not done, then we aren't done either. <rdar://problem/12259124> llvm-svn: 163572
* [analyzer] Do not count calls to small functions when computing stackAnna Zaks2012-09-103-3/+40
| | | | | | | | | depth. We only want to count how many substantial functions we inlined. This is an improvement to r163558. llvm-svn: 163571
* Revert r160148 it seems to cause more problems than it shouldEric Christopher2012-09-102-29/+1
| | | | | | right now. We'll fix PR13303 a different way. llvm-svn: 163570
* 80-col fixup.Eric Christopher2012-09-103-4/+6
| | | | llvm-svn: 163569
* 80-col fixup.Eric Christopher2012-09-101-1/+2
| | | | llvm-svn: 163568
* No reason to construct this twice.Eric Christopher2012-09-102-2/+2
| | | | llvm-svn: 163567
* [PCH] Add a null check to avoid crashing.Argyrios Kyrtzidis2012-09-101-2/+4
| | | | | | Unfortunately, no test case. rdar://11960120 llvm-svn: 163566
* Add newline.Chad Rosier2012-09-101-1/+1
| | | | llvm-svn: 163565
* Provide fixed target triples to make test results consistent across ARM hosts.David Blaikie2012-09-106-10/+10
| | | | | | Patch by David Tweed, review by myself and John McCall. llvm-svn: 163564
* [libclang] Do index 'extern' declarations inside functions.Argyrios Kyrtzidis2012-09-105-4/+51
| | | | | | rdar://12257073 llvm-svn: 163563
* [analyzer] Add an option to enable/disable objc inlining.Anna Zaks2012-09-104-3/+51
| | | | llvm-svn: 163562
* Update function names to conform to guidelines. No functional change intended.Chad Rosier2012-09-107-14/+14
| | | | llvm-svn: 163561
* Revert "Remove clang man page reference to -Oz. It's not an option we want ↵Ted Kremenek2012-09-101-3/+4
| | | | | | | | people to use, and is around for historical reasons." This should be discussed more first. llvm-svn: 163560
* Fixed a bug where the LLDB_VERSION wasn't properlySean Callanan2012-09-101-1/+3
| | | | | | | | truncated during install-headers. <rdar://problem/12268130> llvm-svn: 163559
* [analyzer] Add ipa-always-inline-size option (with 3 as the default).Anna Zaks2012-09-104-8/+83
| | | | | | | | The option allows to always inline very small functions, whose size (in number of basic blocks) is set using -analyzer-config ipa-always-inline-size option. llvm-svn: 163558
* Revert r163556. Missed updates to tablegen files.Chad Rosier2012-09-102-4/+4
| | | | llvm-svn: 163557
* 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
OpenPOWER on IntegriCloud