summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [analyzer] Calculate liveness for symbolic exprs as well as atomic symbols.Jordan Rose2012-09-251-28/+40
| | | | | | | | | | | | | No tests, but this allows the optimization of removing dead constraints. We can then add tests that we don't do this prematurely. <rdar://problem/12333297> Note: the added FIXME to investigate SymbolRegionValue liveness is tracked by <rdar://problem/12368183>. This patch does not change the existing behavior. llvm-svn: 164621
* Under certain terrible circumstances (<rdar://problem/10805775>),Douglas Gregor2012-09-251-0/+13
| | | | | | | | | top-level frameworks can actually be symlinked over to embedded frameworks, and accessed via the top-level framework's headers. In this case, we need to determine that the framework was *actually* an embedded framework, so we can load the appropriate top-level module. llvm-svn: 164620
* Added process attach options and also use the SBLaunchInfo and SBAttachInfo.Greg Clayton2012-09-251-14/+72
| | | | llvm-svn: 164619
* This patch makes use of recently added relocation reference data. The bulkSid Manning2012-09-251-2/+43
| | | | | | | | | | | | of this is derived from the Mach-O writer. Reviewed by: Nick Kledzik. * Adds loop to SectionChunk::write traverse references calling the writer's fixup handler, applyFixup. * Adds method, ELFWriter::buildAtomToAddressMap to that creates a mapping from an atom to its runtime address. * Adds method, ELFWriter::addressOfAtom to return the runtime address of the atom. llvm-svn: 164618
* Make this test check the transforms it's actually doing. Also add a test that itNick Lewycky2012-09-251-3/+17
| | | | | | doesn't transform the trivially unsafe case. llvm-svn: 164617
* Add missing i64 max/min/umax/umin on 32-bit targetMichael Liao2012-09-255-1/+141
| | | | | | - Turn on atomic6432.ll and add specific test case as well llvm-svn: 164616
* ARM: Darwin BL/BLX relocations to out-of-range symbols.Jim Grosbach2012-09-252-1/+91
| | | | | | | | | | | When a BL/BLX references a symbol in the same translation unit that is out of range, use an external relocation. The linker will use this to generate a branch island rather than a direct reference, allowing the relocation to resolve correctly. rdar://12359919 llvm-svn: 164615
* Expansions for u/srem, using the udiv expansion. More unit tests for udiv ↵Michael Ilseman2012-09-253-7/+222
| | | | | | and u/srem. llvm-svn: 164614
* Consistently specify the assembly variant to MatchInstructionImpl.Bob Wilson2012-09-251-4/+8
| | | | llvm-svn: 164611
* Macro history (de-)serialization. Deserialization currently reads only the ↵Alexander Kornienko2012-09-258-114/+169
| | | | | | | | | | | | | | | | latest macro definition. Needs more work. Summary: Passes all tests (+ the new one with code completion), but needs a thorough review in part related to modules. Reviewers: doug.gregor Reviewed By: alexfh CC: cfe-commits, rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D41 llvm-svn: 164610
* Examine the last, not the first, instruction from the MC matcher.Bob Wilson2012-09-251-1/+1
| | | | | | | | If an MS-style inline asm is matched to multiple instructions, e.g., with a a WAIT-prefix, then we need to examine the operands of the last instruction instruction, not the prefix instruction. llvm-svn: 164608
* -iframework should allow separate arguments.Douglas Gregor2012-09-252-2/+2
| | | | llvm-svn: 164607
* Introduce builtin macros to determine whether we're building aDouglas Gregor2012-09-255-1/+90
| | | | | | | | | | specific module (__building_module(modulename)) and to get the name of the current module as an identifier (__MODULE__). Used to help headers behave differently when they're being included as part of building a module. Oh, the irony. llvm-svn: 164605
* A minor doc fix.Alexander Kornienko2012-09-251-1/+1
| | | | llvm-svn: 164601
* [TSan] fork external symbolizer before starting internal threadsAlexey Samsonov2012-09-251-3/+3
| | | | llvm-svn: 164600
* Fix failing test/Sema/wchar.c on ARM.Hans Wennborg2012-09-251-0/+2
| | | | | | | | | | | Currently Sema/wchar.c fails because WCHAR_T_TYPE is defined as int, however on ARM wchar_t is unsigned int. This patch changes that, so this test passes for ARM. Patch by Joey Gouly! llvm-svn: 164598
* When performing a ::delete of an object with a virtual destructor,John McCall2012-09-255-7/+67
| | | | | | | | | | | | | | be sure to delete the complete object pointer, not the original pointer. This is necessary if the base being deleted is at a non-zero offset in the complete object. This is only required for objects with virtual destructors because deleting an object via a base-class subobject when the base does not have a virtual destructor is undefined behavior. Noticed while reviewing the last four years of cxx-abi-dev activity. llvm-svn: 164597
* Fix a case where SROA did not correctly detect dead PHI or selects dueChandler Carruth2012-09-252-5/+55
| | | | | | | | to chains or cycles between PHIs and/or selects. Also add a couple of really nice test cases reduced from Kostya's reports in PR13905 and PR13906. Both are fixed by this patch. llvm-svn: 164596
* Change the way the lint sanity checking pass detects misaligned memory accesses.Duncan Sands2012-09-252-8/+24
| | | | | | | | | | | | | | | Previously it was only be able to detect problems if the pointer was a numerical value (eg inttoptr i32 1 to i32*), but not if it was an alloca or globa. The reason was the use of ComputeMaskedBits: imagine you have "alloca i8, align 2", and ask ComputeMaskedBits what it knows about the bits of the alloca pointer. It can tell you that the bottom bit is known zero (due to align 2) but it can't tell you that bit 1 is known one. That's because the address could be an even multiple of 2 rather than an odd multiple, eg it might be a multiple of 4. Thus trying to use KnownOne is ineffective in the case of an alloca as it will never have any bits set. Instead look explicitly for constant offsets from allocas and globals. llvm-svn: 164595
* clang/test/CodeGenCXX/microsoft-*: Fix for -Asserts.NAKAMURA Takumi2012-09-254-14/+13
| | | | llvm-svn: 164594
* Implement Mike Herrick's proposed noexcept mangling.John McCall2012-09-252-1/+12
| | | | llvm-svn: 164593
* In the MS ABI, ctors return 'this'. Patch by Dmitry Sokolov.John McCall2012-09-254-22/+49
| | | | llvm-svn: 164592
* Add the Microsoft __is_interface_class type trait.John McCall2012-09-259-0/+16
| | | | | | Patch by Andy Gibbs! llvm-svn: 164591
* Fix for r163013 regression and further __interface enhancement.John McCall2012-09-259-30/+249
| | | | | | Patch by Andy Gibbs! llvm-svn: 164590
* During jump-scope checking, build an ExprWithCleanups immediatelyJohn McCall2012-09-254-3/+78
| | | | | | | | | | | | into the enclosing scope; this is a more accurate model but is (I believe) unnecessary in my test case due to other flaws. However, one of those flaws is now intentional: blocks which appear in return statements can be trivially observed to not extend in lifetime past the return, and so we can allow a jump past them. Do the necessary magic in IR-generation to make this work. llvm-svn: 164589
* Fix an illegal tailcall opt where the callee returns a double via xmm while ↵Evan Cheng2012-09-253-4/+36
| | | | | | caller returns x86_fp80 via st0. rdar://12229511 llvm-svn: 164588
* Fix a -Wparentheses warning in the mingw buildNico Weber2012-09-251-1/+1
| | | | llvm-svn: 164587
* Fix crash when a decltype expression in a trailing return type refers to theRichard Smith2012-09-254-0/+46
| | | | | | | | | | function being instantiated. An error recovery codepath was recursively performing name lookup (and triggering an unbounded stack of template instantiations which blew out the stack before hitting the depth limit). Patch by Wei Pan! llvm-svn: 164586
* Fix a crash in SROA. This was reported independently by Takumi andChandler Carruth2012-09-251-12/+7
| | | | | | | | | | David (I think), but I would appreciate folks verifying that this fixes the big crasher. I'm still working on a reduced test case, but because this was causing problems I wanted to get the fix checked in quickly. llvm-svn: 164585
* <rdar://problem/9959501>Greg Clayton2012-09-2512-235/+274
| | | | | | More KDP debugging process. We can not set breakpoints, hit them, resume, step and detach while running. llvm-svn: 164584
* Don't forget that strcpy and friends return a pointer to the destination, soNick Lewycky2012-09-252-2/+12
| | | | | | it's not a dead store if that pointer is used. Whoops! llvm-svn: 164583
* Unit tests for IntegerDivision. Currently, just a basic sanity check to ↵Michael Ilseman2012-09-252-0/+55
| | | | | | ensure that the code was generated properly. Future work would be finding some way to test the actual result that would be computed. llvm-svn: 164582
* Delete some code which is, as far as I can tell, dead.Eli Friedman2012-09-251-53/+3
| | | | llvm-svn: 164580
* [analyzer] Fix a buildbot crash triggered by turning on dynamicAnna Zaks2012-09-251-1/+1
| | | | | | dispatch. llvm-svn: 164579
* Don't produce diagnostics for missing ctor-initializers during templateRichard Smith2012-09-253-2/+23
| | | | | | instantiations if we encountered errors parsing some of the initializers. llvm-svn: 164578
* ARM: 'add Rd, pc, #imm' is an alias for 'adr Rd, #imm'.Jim Grosbach2012-09-252-0/+18
| | | | | | rdar://9795790 llvm-svn: 164577
* Remove unused name of variable to quiet a warning. Also canonicalize aNick Lewycky2012-09-241-3/+3
| | | | | | | declaration to use the same form as in the rest of the file. No functionality change. llvm-svn: 164576
* Apply the emulated nullptr_t with constexpr. This is an unusual ↵Howard Hinnant2012-09-241-11/+11
| | | | | | configuration that would take advantage of this. But it has popped up in the wild and does no harm to support it. llvm-svn: 164575
* Making sure we do not try to compare a NULL string - which would cause us to ↵Enrico Granata2012-09-241-3/+5
| | | | | | crash llvm-svn: 164574
* Added a new Xcode build configuration, DebugClang,Sean Callanan2012-09-242-1/+393
| | | | | | | | | | which builds a Debug+Asserts build of Clang and links LLDB against it. The Debug configuration builds Clang with Release+Asserts, for faster linking and smaller memory footprint when debugging the build LLDB. llvm-svn: 164573
* Removed some debugging cruft.Sean Callanan2012-09-241-3/+0
| | | | llvm-svn: 164572
* Mark jump tables in code sections with DataRegion directives.Jim Grosbach2012-09-243-0/+24
| | | | | | | | | Even out-of-line jump tables can be in the code section, so mark them as data-regions for those targets which support the directives. rdar://12362871&12362974 llvm-svn: 164571
* Typo.Chad Rosier2012-09-241-1/+1
| | | | llvm-svn: 164570
* Handle C++ functional casts in a similar way to C-style casts inEli Friedman2012-09-242-0/+13
| | | | | | unused expression warnings. <rdar://problem/12359208>. llvm-svn: 164569
* Update for r164567.Chad Rosier2012-09-241-2/+2
| | | | llvm-svn: 164568
* Rather then have a wrapper function, have tblgen instantiate the implementation.Chad Rosier2012-09-246-44/+7
| | | | | | Also remove an unused argument. llvm-svn: 164567
* objective-C: use 'instance variables' as plural when referringFariborz Jahanian2012-09-246-12/+12
| | | | | | to the feature. llvm-svn: 164566
* Clear UNIVERSAL_SDK_PATH setting when building host tools. <rdar://12360497>Bob Wilson2012-09-241-2/+4
| | | | | | | | | I also moved the SDKROOT setting into the make flags, since clearing it from the environment isn't good enough to override a setting on the make command line. That hasn't been a problem but it could be, and it's good to be consistent with the way UNIVERSAL_SDK_PATH is handled. llvm-svn: 164565
* Fix string comparisons in ABIMacOSX_i386::RegisterIsCalleeSaved soJason Molenda2012-09-241-4/+4
| | | | | | | | that volatile registers are correctly reported for this ABI. We were incorrectly passing up volatile registers from callee frames. llvm-svn: 164564
* Brought LLDB top-of-tree into sync with LLVM/ClangSean Callanan2012-09-2417-3621/+222
| | | | | | | | | | | | | top-of-tree. Removed all local patches and llvm.zip. The intent is that fron now on top-of-tree will always build against LLVM/Clang top-of-tree, and that problems building will be resolved as they occur. Stable release branches of LLDB can be constructed as needed and linked to specific release branches of LLVM/Clang. llvm-svn: 164563
OpenPOWER on IntegriCloud