1. Jan 14, 2012
  2. Jan 13, 2012
    • Alexander Potapenko's avatar
      Add __asan_mach_override_ptr_custom, which allows to inject a custom memory... · 9301db4b
      Alexander Potapenko authored
      Add __asan_mach_override_ptr_custom, which allows to inject a custom memory allocator into mach_override_ptr().
      
      llvm-svn: 148115
      9301db4b
    • Alexander Potapenko's avatar
      This patch moves the code reading /proc/self/environ into AsanGetEnv · 553c208d
      Alexander Potapenko authored
      in asan_linux.cc, because /proc is unavailable on Mac.
      Instead the Mac version of AsanGetEnv iterates over the array of
      environment variables obtained from _NSGetEnviron()
      
      llvm-svn: 148114
      553c208d
    • Evgeniy Stepanov's avatar
      Remove --hash-style from link command on Android. · 2ca1aa5a
      Evgeniy Stepanov authored
      Gnu hash is not supported by the Android loader.
      
      llvm-svn: 148113
      2ca1aa5a
    • Craig Topper's avatar
      Convert SHUFPD with the same register for both sources to PSHUFD if it would... · e52d86a7
      Craig Topper authored
      Convert SHUFPD with the same register for both sources to PSHUFD if it would prevent a register copy. Similar to SHUFPS, but requires the mask to be converted.
      
      llvm-svn: 148112
      e52d86a7
    • Greg Clayton's avatar
      Updated HTML with info for ${function.name-with-args} · 13d284b2
      Greg Clayton authored
      llvm-svn: 148111
      13d284b2
    • Greg Clayton's avatar
      Added a new thread and frame format that can be used to display a function · 6d3dbf51
      Greg Clayton authored
      name + arguments when the data is available. It seems to work really well, 
      but some more testing is needed before we make this on by default.
      
      The new function format name is:
      
       ${function.name-with-args}
      
      To see how to use these formats see the website:
      
          http://lldb.llvm.org/formats.html
      
      Here is a sample backtrace of debugging LLDB with LLDB using this new format
      value:
      
      (lldb) thread backtrace all
      * thread #1: tid = 0x2203, 0x00007fff88a17bca libsystem_kernel.dylib __psynch_cvwait + 10, stop reason = signal SIGINT, name = <lldb.driver.main-thread>, queue = com.apple.main-thread
          frame #0: 0x00007fff88a17bca libsystem_kernel.dylib __psynch_cvwait + 10
          frame #1: 0x00007fff884ae274 libsystem_c.dylib _pthread_cond_wait + 840
          frame #2: 0x00000001010778ea LLDB lldb_private::Condition::Wait(this=0x0000000104846770, mutex=0x0000000104846730, abstime=0x0000000000000000, timed_out=0x00007fff5fbfdea7) + 138 at Condition.cpp:92
          frame #3: 0x0000000101244c21 LLDB lldb_private::Predicate<bool>::WaitForValueEqualTo(this=0x0000000104846728, value=true, abstime=0x0000000000000000, timed_out=0x00007fff5fbfdea7) + 209 at Predicate.h:317
          frame #4: 0x0000000100f6eeb2 LLDB lldb_private::Listener::WaitForEventsInternal(this=0x0000000104846660, timeout=0x0000000000000000, broadcaster=0x0000000000000000, broadcaster_names=0x0000000000000000, num_broadcaster_names=0x00000000, event_type_mask=0x00000000, event_sp=0x00007fff5fbfe030) + 386 at Listener.cpp:388
          frame #5: 0x0000000100f6f231 LLDB lldb_private::Listener::WaitForEvent(this=0x0000000104846660, timeout=0x0000000000000000, event_sp=0x00007fff5fbfe030) + 81 at Listener.cpp:436
          frame #6: 0x0000000100098dcd LLDB lldb::SBListener::WaitForEvent(this=0x00007fff5fbff0f0, timeout_secs=0xffffffff, event=0x00007fff5fbfe430) + 685 at SBListener.cpp:181
          frame #7: 0x000000010000628c lldb Driver::MainLoop(this=0x00007fff5fbff620) + 5244 at Driver.cpp:1325
          frame #8: 0x0000000100006ca3 lldb main(argc=1, argv=0x00007fff5fbff758, envp=0x00007fff5fbff768) + 419 at Driver.cpp:1460
          frame #9: 0x0000000100000d54 lldb start + 52
      
        thread #3: tid = 0x2703, 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10, name = <lldb.comm.debugger.input>
          frame #0: 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10
          frame #1: 0x0000000100f3f072 LLDB lldb_private::ConnectionFileDescriptor::BytesAvailable(this=0x000000010524d040, timeout_usec=0x004c4b40, error_ptr=0x0000000105640a18) + 722 at ConnectionFileDescriptor.cpp:542
          frame #2: 0x0000000100f3e6dd LLDB lldb_private::ConnectionFileDescriptor::Read(this=0x000000010524d040, dst=0x0000000105640a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x0000000105640a14, error_ptr=0x0000000105640a18) + 301 at ConnectionFileDescriptor.cpp:273
          frame #3: 0x0000000100f3b8f7 LLDB lldb_private::Communication::ReadFromConnection(this=0x0000000104846270, dst=0x0000000105640a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x0000000105640a14, error_ptr=0x0000000105640a18) + 167 at Communication.cpp:317
          frame #4: 0x0000000100f3b197 LLDB lldb_private::Communication::ReadThread(p=0x0000000104846270) + 327 at Communication.cpp:344
          frame #5: 0x0000000101078923 LLDB ThreadCreateTrampoline(arg=0x00000001045f6650) + 227 at Host.cpp:549
          frame #6: 0x00007fff884aa8bf libsystem_c.dylib _pthread_start + 335
          frame #7: 0x00007fff884adb75 libsystem_c.dylib thread_start + 13
      
        thread #4: tid = 0x2803, 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10, name = <lldb.comm.driver.editline>
          frame #0: 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10
          frame #1: 0x0000000100f3f072 LLDB lldb_private::ConnectionFileDescriptor::BytesAvailable(this=0x0000000105700370, timeout_usec=0x004c4b40, error_ptr=0x00000001056c3a18) + 722 at ConnectionFileDescriptor.cpp:542
          frame #2: 0x0000000100f3e6dd LLDB lldb_private::ConnectionFileDescriptor::Read(this=0x0000000105700370, dst=0x00000001056c3a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x00000001056c3a14, error_ptr=0x00000001056c3a18) + 301 at ConnectionFileDescriptor.cpp:273
          frame #3: 0x0000000100f3b8f7 LLDB lldb_private::Communication::ReadFromConnection(this=0x0000000105700000, dst=0x00000001056c3a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x00000001056c3a14, error_ptr=0x00000001056c3a18) + 167 at Communication.cpp:317
          frame #4: 0x0000000100f3b197 LLDB lldb_private::Communication::ReadThread(p=0x0000000105700000) + 327 at Communication.cpp:344
          frame #5: 0x0000000101078923 LLDB ThreadCreateTrampoline(arg=0x0000000105700430) + 227 at Host.cpp:549
          frame #6: 0x00007fff884aa8bf libsystem_c.dylib _pthread_start + 335
          frame #7: 0x00007fff884adb75 libsystem_c.dylib thread_start + 13
      
        thread #5: tid = 0x2903, 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10, name = <lldb.comm.driver.editline_output>
          frame #0: 0x00007fff88a17df2 libsystem_kernel.dylib select$DARWIN_EXTSN + 10
          frame #1: 0x0000000100f3f072 LLDB lldb_private::ConnectionFileDescriptor::BytesAvailable(this=0x00000001057178f0, timeout_usec=0x004c4b40, error_ptr=0x0000000105980a18) + 722 at ConnectionFileDescriptor.cpp:542
          frame #2: 0x0000000100f3e6dd LLDB lldb_private::ConnectionFileDescriptor::Read(this=0x00000001057178f0, dst=0x0000000105980a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x0000000105980a14, error_ptr=0x0000000105980a18) + 301 at ConnectionFileDescriptor.cpp:273
          frame #3: 0x0000000100f3b8f7 LLDB lldb_private::Communication::ReadFromConnection(this=0x0000000105717580, dst=0x0000000105980a60, dst_len=1024, timeout_usec=0x004c4b40, status=0x0000000105980a14, error_ptr=0x0000000105980a18) + 167 at Communication.cpp:317
          frame #4: 0x0000000100f3b197 LLDB lldb_private::Communication::ReadThread(p=0x0000000105717580) + 327 at Communication.cpp:344
          frame #5: 0x0000000101078923 LLDB ThreadCreateTrampoline(arg=0x00000001057179b0) + 227 at Host.cpp:549
          frame #6: 0x00007fff884aa8bf libsystem_c.dylib _pthread_start + 335
          frame #7: 0x00007fff884adb75 libsystem_c.dylib thread_start + 13
      
        thread #6: tid = 0x2a03, 0x00007fff88a18af2 libsystem_kernel.dylib read + 10, name = <lldb.driver.commandline_io>
          frame #0: 0x00007fff88a18af2 libsystem_kernel.dylib read + 10
          frame #1: 0x0000000100050c3b libedit.3.dylib read_init + 247
          frame #2: 0x0000000100050e96 libedit.3.dylib el_wgetc + 155
          frame #3: 0x000000010005115d libedit.3.dylib el_wgets + 578
          frame #4: 0x000000010005debc libedit.3.dylib el_gets + 37
          frame #5: 0x000000010000d409 lldb IOChannel::LibeditGetInput(this=0x0000000105700490, new_line=0x0000000105a03db0) + 89 at IOChannel.cpp:311
          frame #6: 0x000000010000d8b6 lldb IOChannel::Run(this=0x0000000105700490) + 806 at IOChannel.cpp:391
          frame #7: 0x000000010000d57d lldb IOChannel::IOReadThread(ptr=0x0000000105700490) + 29 at IOChannel.cpp:345
          frame #8: 0x0000000101078923 LLDB ThreadCreateTrampoline(arg=0x00000001057179f0) + 227 at Host.cpp:549
          frame #9: 0x00007fff884aa8bf libsystem_c.dylib _pthread_start + 335
          frame #10: 0x00007fff884adb75 libsystem_c.dylib thread_start + 13
      (lldb) 
      
      llvm-svn: 148110
      6d3dbf51
    • Craig Topper's avatar
    • Craig Topper's avatar
      Make X86 instruction selection use 256-bit VPXOR for build_vector of all ones... · cb7e13d7
      Craig Topper authored
      Make X86 instruction selection use 256-bit VPXOR for build_vector of all ones if AVX2 is enabled. This gives the ExeDepsFix pass a chance to choose FP vs int as appropriate. Also use v8i32 as the type for getZeroVector if AVX2 is enabled. This is consistent with SSE2 using prefering v4i32.
      
      llvm-svn: 148108
      cb7e13d7
    • NAKAMURA Takumi's avatar
      test/CodeGen/ARM/test-sharedidx.ll: Fix for -Asserts. · 1b845f71
      NAKAMURA Takumi authored
      llvm-svn: 148107
      1b845f71
    • Craig Topper's avatar
    • Andrew Trick's avatar
      Added the MachineSchedulerPass skeleton. · e77e84e4
      Andrew Trick authored
      llvm-svn: 148105
      e77e84e4
    • Andrew Trick's avatar
      whitespace · d9accbf1
      Andrew Trick authored
      llvm-svn: 148104
      d9accbf1
    • Andrew Trick's avatar
      wrong filename · 4d4fef23
      Andrew Trick authored
      llvm-svn: 148103
      4d4fef23
    • Andrew Trick's avatar
      80-col violation · b1be1aa8
      Andrew Trick authored
      llvm-svn: 148102
      b1be1aa8
    • Craig Topper's avatar
    • Raghesh Aloor's avatar
      Memaccess: Removing some unwanted code · ea6c99c1
      Raghesh Aloor authored
      llvm-svn: 148100
      ea6c99c1
    • Greg Clayton's avatar
      Bumped Xcode project version for lldb-105 and debugserver-164. · ae3e9927
      Greg Clayton authored
      llvm-svn: 148098
      ae3e9927
    • Greg Clayton's avatar
      <rdar://problem/10688864> · d66945ae
      Greg Clayton authored
      Fixed the new __apple_types to be able to accept a DW_TAG_structure_type
      forward declaration and then find a DW_TAG_class_type definition, or vice
      versa.
      
      llvm-svn: 148097
      d66945ae
    • Craig Topper's avatar
      Fix typo in PerformAddCombine that caused any vector type to be checked for... · 2aa07f83
      Craig Topper authored
      Fix typo in PerformAddCombine that caused any vector type to be checked for horizontal add/sub if AVX2 is enabled. This caused an assert to fail for non 128/256-bit vectors when done before type legalizing. Fixes PR11749.
      
      llvm-svn: 148096
      2aa07f83
    • Jakob Stoklund Olesen's avatar
      CodeInit was replaced by StringInit. · 6f2288b6
      Jakob Stoklund Olesen authored
      llvm-svn: 148095
      6f2288b6
    • Richard Smith's avatar
      PR11754: Reject non-static constexpr member functions in classes with virtual · 7971b69f
      Richard Smith authored
      base classes.
      
      llvm-svn: 148094
      7971b69f
    • Eli Friedman's avatar
      A base subobject type doesn't make sense for unions; don't try to compute it. ... · 09d272d0
      Eli Friedman authored
      A base subobject type doesn't make sense for unions; don't try to compute it.  Based on patch by Yin Ma.  Fixes PR11751.
      
      llvm-svn: 148093
      09d272d0
    • Jakob Stoklund Olesen's avatar
      Delete CodeInit and CodeRecTy from TableGen. · dd8fbf57
      Jakob Stoklund Olesen authored
      The code type was always identical to a string anyway. Now it is simply
      a synonym. The code literal syntax [{...}] is still valid.
      
      llvm-svn: 148092
      dd8fbf57
    • Jakob Stoklund Olesen's avatar
      Use uniqued StringInit pointers for lookups. · 9d1c5eeb
      Jakob Stoklund Olesen authored
      This avoids a gazillion StringMap and dynamic_cast calls, making
      TableGen run 3x faster.
      
      llvm-svn: 148091
      9d1c5eeb
    • Eli Friedman's avatar
    • Eli Friedman's avatar
      A few minor improvements to error recovery trying to access member of a... · 9a766c40
      Eli Friedman authored
      A few minor improvements to error recovery trying to access member of a function.  In particular, this restores the cool error recovery for the example from http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html , which regressed a few months back.
      
      llvm-svn: 148089
      9a766c40
    • Richard Smith's avatar
      Don't crash while trying to diagnose a function declared at block scope with an · 90b748e0
      Richard Smith authored
      incomplete return type.
      
      llvm-svn: 148088
      90b748e0
    • Jim Ingham's avatar
      Don't set breakpoints independently comp unit by comp unit, but look over all... · bc2f9182
      Jim Ingham authored
      Don't set breakpoints independently comp unit by comp unit, but look over all the file & line matches
      and only pick the "best" ones.
      <rdar://problem/10685990>
      
      llvm-svn: 148087
      bc2f9182
    • Evan Cheng's avatar
      DAGCombine's logic for forming pre- and post- indexed loads / stores were being · fa832633
      Evan Cheng authored
      overly conservative. It was concerned about cases where it would prohibit
      folding simple [r, c] addressing modes. e.g.
        ldr r0, [r2]
        ldr r1, [r2, #4]
      =>
        ldr r0, [r2], #4
        ldr r1, [r2]
      Change the logic to look for such cases which allows it to form indexed memory
      ops more aggressively.
      
      rdar://10674430
      
      llvm-svn: 148086
      fa832633
    • Kaelyn Uhrain's avatar
      Fix up the calls to CorrectTypo in Sema*ObjC.cpp to use callback · e31b8883
      Kaelyn Uhrain authored
      objects, and add a basic CorrectionCandidateCallback template class
      to simplify the fixups.
      
      llvm-svn: 148085
      e31b8883
    • Douglas Gregor's avatar
      04ea9621
    • Howard Hinnant's avatar
      Enclosed is a stress test for dynamic_cast. It stresses both libc++abi, and... · 50f7eeec
      Howard Hinnant authored
      Enclosed is a stress test for dynamic_cast.  It stresses both libc++abi, and clang itself.  It creates a ridiculously large class hierarchy using variadic templates.  You can specify both the width and depth of the class hierarchy.  And you can specify whether the cast is to the actual run time type, or to an intermediate layer in the class.  About 1/3 of the time I compile this, it crashes the compiler.  There seems to be an uninitialized area of memory, and I'm probably blowing past an assumption on class hierarchy size within clang (and understandably so). I can get it work most of the time with a class hierarchy width of 20 and a depth of 7.  I'm making timings with both -O3 and -Os, using both cast to root and cast to intermediate, on both libc++abi, and gcc's dynamic_cast.  I've put the results in a comment/table at the bottom of the test.
      
      llvm-svn: 148083
      50f7eeec
    • Douglas Gregor's avatar
      When inferring a module map for a framework, add the 'private' · da4fda73
      Douglas Gregor authored
      requirement to headers under PrivateHeaders. We don't want to build
      them as part of the module (yet).
      
      llvm-svn: 148082
      da4fda73
    • Anna Zaks's avatar
      cb6d4ee7
    • Anna Zaks's avatar
      [analyzer] Taint: when looking up a binding, provide the type. · a31f6b95
      Anna Zaks authored
      llvm-svn: 148080
      a31f6b95