summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not optimise fprintf() calls if its return value is used.Peter Collingbourne2013-04-172-9/+21
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D620 llvm-svn: 179661
* Correct the range returned by ParmVarDecl::getSourceRange(), for parameters ↵Argyrios Kyrtzidis2013-04-172-2/+10
| | | | | | | | | | | | | | in ObjC methods with postfix types. For a parameter in a method like this: -(int)methodWithFn:(void (*)(int *p))fn; we would return the source range of the type and not include the parameter name. Fixes rdar://13668626. llvm-svn: 179660
* [analyzer] Merge C++ status page into Open Projects.Jordan Rose2013-04-173-63/+37
| | | | | | | | | | Also, add a few random extra open projects. Most of C++ support is done; we don't need the status page anymore. We're hoping that the C++-related open projects are the only major pieces of functionality we don't model at this point. llvm-svn: 179659
* [analyzer] Open Projects: grammar, phrasing, formattingJordan Rose2013-04-171-28/+42
| | | | llvm-svn: 179658
* Mips assembler: Enable handling of nested expressionsJack Carter2013-04-173-133/+263
| | | | | | | | | | This patch allows the Mips assembler to parse and emit nested expressions as instruction operands. It also extends the expansion of memory instructions when an offset is given as an expression. Contributer: Vladimir Medic llvm-svn: 179657
* Test cases for r179655.Chad Rosier2013-04-171-3/+36
| | | | llvm-svn: 179656
* [ms-inline asm] Add support for parsing complex immediate expressions. TestChad Rosier2013-04-171-32/+51
| | | | | | | cases to be submitted on clang side shortly. rdar://13663768 and PR15760 llvm-svn: 179655
* Use the extra info in global method pool to speed up looking for ObjC ↵Argyrios Kyrtzidis2013-04-173-56/+47
| | | | | | | | | | | | | | | | | | overridden methods. When we are in a implementation, we check the global method pool whether there were category methods with the same selector. If there were none (common case) we don't need to do lookups for overridden methods again. Note that for an interface method (if we don't encounter its implementation), it is considered that it overrides methods that were declared before it, not for category methods introduced after it. This is tradeoff in favor of performance, since it is expensive to do lookups in case there was a category, and moving the global method pool to ASTContext (so we can check it) would increase complexity. rdar://13508196 llvm-svn: 179654
* In ASTContext::getOverriddenMethods, call ↵Argyrios Kyrtzidis2013-04-171-2/+2
| | | | | | | | overridden_methods_begin/overridden_methods_end directly. This avoids unnecessary Decl::getASTContext() invocations. llvm-svn: 179653
* Enhance the ObjC global method pool to record whether there were 0, 1, or >= ↵Argyrios Kyrtzidis2013-04-177-33/+67
| | | | | | | | | 2 methods (with a particular selector) inside categories. This is done by extending ObjCMethodList (which is only used by the global method pool) to have 2 extra bits of information. We will later take advantage of this info in global method pool for the overridden methods calculation. llvm-svn: 179652
* Modified the IRInterpreter to take an IRMemoryMap.Sean Callanan2013-04-164-7/+18
| | | | | | | | It doesn't use it yet; the next step is to make it use the IRMemoryMap instead of its own conjured-up Memory class. llvm-svn: 179650
* Flipped the big switch: LLDB now uses the new Sean Callanan2013-04-169-1082/+247
| | | | | | | | | | | | | | | | | | | | | | | | Materializer for all expressions that need to run in the target. This includes the following changes: - Removed a bunch of (de-)materialization code from ClangExpressionDeclMap and assumed the presence of a Materializer where we previously had a fallback. - Ensured that an IRMemoryMap is passed into ClangExpressionDeclMap::Materialize(). - Fixed object ownership on LLVMContext; it is now owned by the IRExecutionUnit, since the Module and the ExecutionEngine both depend on its existence. - Fixed a few bugs in IRMemoryMap and the Materializer that showed up during testing. llvm-svn: 179649
* C API: Add LLVMTargetMachineEmitToMemoryBuffer()Tom Stellard2013-04-162-12/+36
| | | | llvm-svn: 179648
* C API: Add LLVMGetBufferSize()Tom Stellard2013-04-162-0/+5
| | | | llvm-svn: 179647
* C API: Add LLVMGetBufferStart()Tom Stellard2013-04-162-0/+4
| | | | llvm-svn: 179646
* C API: Add LLVMAddTargetDependentFunctionAttr()Tom Stellard2013-04-162-0/+18
| | | | llvm-svn: 179645
* [6/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-1/+462
| | | | | | | | | Added GenerateChecksForIntrinsic method to generate FileCheck patterns for generated arm neon tests. Reviewed by Bob Wilson. llvm-svn: 179644
* Fix a pointer arithmetic thinko in ObjectFileMachO::GetLLDBSharedCacheUUID().Jason Molenda2013-04-161-1/+1
| | | | llvm-svn: 179643
* [5/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-1/+2
| | | | | | | | Changed the test generation target cpu type from cortex-a9 to swift. Reviewed by Bob Wilson. llvm-svn: 179642
* Make sure all the threads get a chance to compute their StopInfo's before we ↵Jim Ingham2013-04-161-1/+12
| | | | | | | | | | | start running ShouldStop on the threads, which might destroy information needed to correctly compute another thread's StopInfo. <rdar://problem/13664026> llvm-svn: 179641
* [4/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-3/+9
| | | | | | | | | Added code to NeonEmitter::runTests so that GenTest gets all of the needed arguments to invoke the neon test generation methods. Reviewed by Bob Wilson. llvm-svn: 179640
* Don't propagate around TargetOptions in IR-gen; we don't use it.John McCall2013-04-163-14/+9
| | | | | | Patch by Stephen Lin! llvm-svn: 179639
* Standardize accesses to the TargetInfo in IR-gen.John McCall2013-04-1624-120/+126
| | | | | | Patch by Stephen Lin! llvm-svn: 179638
* Don't put too much thought into whether or not to capture aJohn McCall2013-04-162-5/+7
| | | | | | | | | type-dependent intermediate result in a postfix ++ pseudo- object operation. Test case by Tong Shen. llvm-svn: 179637
* [3/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-28/+44
| | | | | | | | | Refactored out the method InstructionTypeCode from MangleName for use in further patches which perform neon tablegen test generation. Reviewed by Bob Wilson. llvm-svn: 179636
* Make test portable.Ted Kremenek2013-04-162-2/+2
| | | | llvm-svn: 179635
* [analyzer] Add experimental option "leak-diagnostics-reference-allocation".Ted Kremenek2013-04-166-12/+85
| | | | | | | | | | | | | | This is an opt-in tweak for leak diagnostics to reference the allocation site if the diagnostic consumer only wants a pithy amount of information, and not the entire path. This is a strawman enhancement that I expect to see some experimentation with over the next week, and can go away if we don't want it. Currently it is only used by RetainCountChecker, but could be used by MallocChecker if and when we decide this should stay in. llvm-svn: 179634
* Add warning messages for the cases where the inferior process shared cacheJason Molenda2013-04-161-5/+10
| | | | | | | | | differs from lldb's own shared cache, and where the inferior process shared cache does not match up with the on-disk shared cache file. Simplify the code where lldb gets its own shared cache uuid a little bit. llvm-svn: 179633
* I believe this finishes up debug mode for list. The testing is a little ↵Howard Hinnant2013-04-164-1/+37
| | | | | | weak, but I believe all of the functionality is there. Certainly enough for people to checkout and start beating up on. llvm-svn: 179632
* [analyzer] Add Open Projects page to the analyzer websiteAnna Zaks2013-04-162-1/+136
| | | | llvm-svn: 179631
* objc_autoreleasePoolPop() can throw if a -dealloc does.John McCall2013-04-162-3/+28
| | | | | | | | | | | | | Model it as throwing so that the exception can be caught. This is generally not expected to have significant code-size impact because the contents of the @autoreleasepool block are very likely to contain a call, very likely at the same cleanup level as the @autoreleasepool itself. rdar://13660038 llvm-svn: 179630
* Trying fixing test to make buildbot happy again.Fariborz Jahanian2013-04-161-1/+1
| | | | llvm-svn: 179629
* [2/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-1/+17
| | | | | | | | | | This patch causes OpInst records to be silently identified with their Non-Op inst counterparts so that the same test generation infrastructure can be used to generate tests. Reviewed by Bob Wilson. llvm-svn: 179628
* Properly sort list.Ted Kremenek2013-04-161-1/+1
| | | | llvm-svn: 179627
* Factor CheckerManager to be able to pass AnalyzerOptions to checkersTed Kremenek2013-04-164-6/+27
| | | | | | | | during checker registration. There are no immediate clients of this, but this provides a way for checkers to query the options table at startup instead. llvm-svn: 179626
* Remove unused "getConfig()" method. A new way is to have high-levelTed Kremenek2013-04-161-4/+0
| | | | | | | | APIs that access the configuration table without clients reasoning about the string table. The string table is an implementation detail. llvm-svn: 179625
* [1/6] ARM Neon Intrinsic Tablegen Test Generator.Michael Gottesman2013-04-161-63/+117
| | | | | | | | | | | | | | | | | | | | Changes necessary to arm_neon.td for the generation of Neon tests. This is the first of six patches to add to the arm neon tablegen generator the capability of generating tests to verify that the various ARM intrinsics are implemented properly. The changes include such items as: 1. Adding attributes to the Inst record so that additional metadata that is only needed for the tests can be specified in TableGen. 2. Adding wrapper classes for operator (i.e. ``Op'') intrinsics which before were simply notates as Inst. This allows us to classify what sort of test to generate for said intrinsic and further since the classes do not effect the behavior of the Inst base class, allow for normal functioning. Reviewed by Bob Wilson. llvm-svn: 179624
* Remove a debug print statement that I left in.Greg Clayton2013-04-161-2/+0
| | | | llvm-svn: 179623
* Print out the target-independent attributes in a comment before the function ↵Bill Wendling2013-04-161-4/+24
| | | | | | definition. llvm-svn: 179622
* [XCore] Extend test to check positve offsets are folded into addresses.Richard Osborne2013-04-161-7/+24
| | | | llvm-svn: 179621
* [XCore] Give test more generic name.Richard Osborne2013-04-161-0/+0
| | | | | | I intend to extend the test with more offset folding checks llvm-svn: 179620
* [XCore] Convert a couple of tests to FileCheck.Richard Osborne2013-04-162-17/+22
| | | | llvm-svn: 179619
* Sema for Captured StatementsTareq A. Siraj2013-04-1629-31/+515
| | | | | | | | | | | | | Add CapturedDecl to be the DeclContext for CapturedStmt, and perform semantic analysis. Currently captures all variables by reference. TODO: templates Author: Ben Langmuir <ben.langmuir@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D433 llvm-svn: 179618
* Distinguish between unsupported and unrecognised flavours.Andy Gibbs2013-04-161-2/+2
| | | | | | Suggested by Nick Kledzik in reference to r179590. llvm-svn: 179617
* rewrite-includes: Rewrite __has_include(_next) to get rid of a host dependency.Benjamin Kramer2013-04-164-1/+160
| | | | | | | | | | | | | | This broke e.g. compiling a crash report from a glibc system on Darwin. Sadly, the implementation had to game the lexer a lot as we're not using a real preprocessor here. It also doesn't handle special cases like arbitrary macros in __has_include, but since this macro isn't common outside of clang's headers we can get away with that. Fixes PR14422. Differential Revision: http://llvm-reviews.chandlerc.com/D594 llvm-svn: 179616
* Implement CapturedStmt ASTTareq A. Siraj2013-04-1615-2/+315
| | | | | | | | | | | | | | | CapturedStmt can be used to implement generic function outlining as described in http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-January/027540.html. CapturedStmt is not exposed to the C api. Serialization and template support are pending. Author: Wei Pan <wei.pan@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D370 llvm-svn: 179615
* Parser support for #pragma clang __debug capturedTareq A. Siraj2013-04-169-0/+102
| | | | | | | | | | | | | | | This patch implements parsing ‘#pragma clang __debug’ as a first step for implementing captured statements. Captured statements are a mechanism for doing outlining in the AST. see http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-January/027540.html. Currently returns StmtEmpty Author: Andy Zhang <andy.zhang@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D369 llvm-svn: 179614
* <rdar://problem/13657900>Greg Clayton2013-04-161-0/+21
| | | | | | Special handling for file descriptor connections that are tty files. llvm-svn: 179613
* [Modules] Convert module specific -fno-modules-autolink into -fno-autolink.Daniel Dunbar2013-04-1610-33/+36
| | | | | | | | | - There is no reason to have a modules specific flag for disabling autolinking. Instead, convert the existing flag into -fno-autolink (which should cover other autolinking code generation paths like #pragmas if and when we support them). llvm-svn: 179612
* Remove unused variable from previous refactor.Chad Rosier2013-04-161-3/+0
| | | | llvm-svn: 179611
OpenPOWER on IntegriCloud