and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  1. 04 Jun, 2013 5 commits
    • Bill Wendling's avatar
      Merging r183153: · 156dd006
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r183153 | dmalea | 2013-06-03 13:45:54 -0700 (Mon, 03 Jun 2013) | 7 lines
      
      Fix crash (in optimized builds) due to invalid metadata operand
      - ConstantDataArray is not a valid MDNode operand
      - encode function-name strings in metadata by wrapping in an MDString instead
      
      - should resolve reported by http://llvm-jenkins.debian.net/job/llvm-toolchain-quantal-binaries/architecture=amd64,distribution=quantal/173/
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 183191
      156dd006
    • Bill Wendling's avatar
      Merging r181909: · c89859f4
      Bill Wendling authored
      ------------------------------------------------------------------------
      
      llvm-svn: 183190
      c89859f4
    • Bill Wendling's avatar
      Merging r183035: · a28e1368
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r183035 | arnolds | 2013-05-31 12:53:50 -0700 (Fri, 31 May 2013) | 7 lines
      
      LoopVectorize: PHIs with only outside users should prevent vectorization
      
      We check that instructions in the loop don't have outside users (except if
      they are reduction values). Unfortunately, we skipped this check for
      if-convertable PHIs.
      
      Fixes PR16184.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 183189
      a28e1368
    • Bill Wendling's avatar
      Merging r183108: · 021ffcf5
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r183108 | vljn | 2013-06-03 08:44:42 -0700 (Mon, 03 Jun 2013) | 1 line
      
      R600: CALL_FS consumes a stack size entry
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 183181
      021ffcf5
    • Bill Wendling's avatar
      Merge r182726: · 55865eec
      Bill Wendling authored
      Improve support for compiler-rt tests in CMake build.
      
      Now compiler-rt tests run correctly if compiler-rt is checked out into
      arbitrary directory (not necessarily projects/compiler-rt).
      Patch by Greg Fitzgerald!
      
      llvm-svn: 183180
      55865eec
  2. 01 Jun, 2013 1 commit
  3. 31 May, 2013 1 commit
    • Andrew Trick's avatar
      Merging 182989: Fix ScalarEvolution::ComputeExitLimitFromCond for 'or' conditions. · 0df3a18d
      Andrew Trick authored
          Fixes PR16130 - clang produces incorrect code with loop/expression at -O2.
      
          This is a 2+ year old bug that's now holding up the release. It's a
          case where we knowingly made aggressive assumptions about undefined
          behavior. These assumptions are wrong when SCEV is computing a
          subexpression that does not directly control the branch. With this
          fix, we avoid making assumptions in those cases but still optimize the
          common case. SCEV's trip count computation for exits controlled by
          'or' expressions is now analagous to the trip count computation for
          loops with multiple exits. I had already fixed the multiple exit case
          to be conservative.
      
          git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182989 91177308-0d34-0410-b5e6-96231b3b80d8
      
      llvm-svn: 183013
      0df3a18d
  4. 30 May, 2013 1 commit
    • Bill Wendling's avatar
      Merging r182645: · 65ac319b
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182645 | eugenis | 2013-05-24 07:28:03 -0700 (Fri, 24 May 2013) | 6 lines
      
      Add -lrt to sanitizer link arguments.
      
      Sanitizer runtime intercepts functions from librt. Not doing this will fail
      if the librt dependency is not present at program startup (ex. comes from a
      dlopen()ed library).
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182944
      65ac319b
  5. 29 May, 2013 6 commits
    • Bill Wendling's avatar
      Merging r182585: · 1e3c34de
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182585 | aaronballman | 2013-05-23 07:55:00 -0700 (Thu, 23 May 2013) | 1 line
      
      Setting the default value (fixes CRT assertions about uninitialized variable use when doing debug MSVC builds), and fixing coding style.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182830
      1e3c34de
    • Bill Wendling's avatar
      Merging r182394: · 969c3b95
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182394 | jholewinski | 2013-05-21 09:51:30 -0700 (Tue, 21 May 2013) | 1 line
      
      [NVPTX] Add @llvm.nvvm.sqrt.f() intrinsic
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182829
      969c3b95
    • Bill Wendling's avatar
      Merging r182298: · 44901008
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182298 | jholewinski | 2013-05-20 09:42:18 -0700 (Mon, 20 May 2013) | 1 line
      
      [NVPTX] Fix mis-use of CurrentFnSym in NVPTXAsmPrinter.  This was causing a symbol name error in the output PTX.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182828
      44901008
    • Bill Wendling's avatar
      Merging r182297: · 57aa7f7e
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182297 | jholewinski | 2013-05-20 09:42:16 -0700 (Mon, 20 May 2013) | 1 line
      
      [NVPTX] Add programmatic interface to NVVMReflect pass
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182827
      57aa7f7e
    • Bill Wendling's avatar
      Merging r182254: · b0bb2e99
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182254 | jholewinski | 2013-05-20 05:13:32 -0700 (Mon, 20 May 2013) | 12 lines
      
      [NVPTX] Add GenericToNVVM IR converter to better handle idiomatic LLVM IR inputs
      
      This converter currently only handles global variables in address space 0. For
      these variables, they are promoted to address space 1 (global memory), and all
      uses are updated to point to the result of a cvta.global instruction on the new
      variable.
      
      The motivation for this is address space 0 global variables are illegal since we
      cannot declare variables in the generic address space.  Instead, we place the
      variables in address space 1 and explicitly convert the pointer to address
      space 0. This is primarily intended to help new users who expect to be able to
      place global variables in the default address space.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182826
      b0bb2e99
    • Bill Wendling's avatar
      Merging r182253: · 55ebf7b0
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182253 | jholewinski | 2013-05-20 05:13:28 -0700 (Mon, 20 May 2013) | 1 line
      
      [NVPTX] Fix i1 kernel parameters and global variables.  ABI rules say we need to use .u8 for i1 parameters for kernels.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182825
      55ebf7b0
  6. 28 May, 2013 1 commit
    • Bill Wendling's avatar
      Merging r182656: · 487e8e6b
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182656 | d0k | 2013-05-24 11:05:35 -0700 (Fri, 24 May 2013) | 3 lines
      
      LoopVectorize: LoopSimplify can't canonicalize loops with an indirectbr in it, don't assert on those cases.
      
      Fixes PR16139.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182785
      487e8e6b
  7. 22 May, 2013 12 commits
    • Bill Wendling's avatar
      Reverting these patches. They were causing regressions. :-( · ce59b557
      Bill Wendling authored
      --- Reverse-merging r182522 into '.':
      U    source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
       U   .
      --- Reverse-merging r182521 into '.':
      U    source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
       G   .
      --- Reverse-merging r182520 into '.':
      U    source/Core/ValueObjectVariable.cpp
       G   .
      --- Reverse-merging r182519 into '.':
      U    source/Symbol/Variable.cpp
       G   .
      --- Reverse-merging r182518 into '.':
      U    source/Plugins/Process/Linux/ProcessMonitor.cpp
      U    source/Plugins/Process/Linux/ProcessLinux.h
       G   .
      --- Reverse-merging r182517 into '.':
      G    source/Plugins/Process/Linux/ProcessMonitor.cpp
       G   .
      --- Reverse-merging r182516 into '.':
      U    source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
      U    source/Expression/DWARFExpression.cpp
      U    source/Expression/Materializer.cpp
      U    source/Expression/ClangExpressionDeclMap.cpp
       G   .
      
      llvm-svn: 182525
      ce59b557
    • Bill Wendling's avatar
      Merging r182441: · 04df32da
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182441 | gclayton | 2013-05-21 17:10:28 -0700 (Tue, 21 May 2013) | 5 lines
      
      <rdar://problem/13455021>
      
      Another fix to make sure that if we aren't able to extract an object file for any reason, we don't crash when trying to parse the debug map info.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182522
      04df32da
    • Bill Wendling's avatar
      Merging r182437: · 443d96c7
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182437 | gclayton | 2013-05-21 16:36:34 -0700 (Tue, 21 May 2013) | 5 lines
      
      <rdar://problem/13455021>
      
      lldb crashes with universal file containing skinny BSD archives when doing DWARF with .o file debugging.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182521
      443d96c7
    • Bill Wendling's avatar
      Merging r182326: · fd633af7
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182326 | enrico | 2013-05-20 15:49:13 -0700 (Mon, 20 May 2013) | 3 lines
      
      <rdar://problem/13925626>
      
      Replacing an assertion with an error - at least we won’t crash
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182520
      fd633af7
    • Bill Wendling's avatar
      Merging r182301: · 2c1a768e
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182301 | gclayton | 2013-05-20 09:50:51 -0700 (Mon, 20 May 2013) | 3 lines
      
      Patch from Yacine Belkadi that fixes an issue in Variable::GetValuesForVariableExpressionPath().
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182519
      2c1a768e
    • Bill Wendling's avatar
      Merging r182166: · 4b65dbc3
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182166 | mkopec | 2013-05-17 15:21:08 -0700 (Fri, 17 May 2013) | 3 lines
      
      The Linux process plugin wasn't returning the correct linux signals. This fixes that.
      Thus, this patch also negates a previous fix for handling SIGCHLD.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182518
      4b65dbc3
    • Bill Wendling's avatar
      Merging r182153: · 6ed251ef
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182153 | mkopec | 2013-05-17 12:27:47 -0700 (Fri, 17 May 2013) | 5 lines
      
      ProcessMonitor improvements for Linux.
      -Remove tracing of fork/vfork until we add support for tracing inferiors' children on Linux.
      -Add trace exec option for ptrace so that we don't receive legacy SIGTRAP signals on execve calls.
      -Add handling of SIGCHLD sent by kernel (for now, deliver the signal to the inferior).
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182517
      6ed251ef
    • Bill Wendling's avatar
      Merging r182066: · 33a47c22
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182066 | gclayton | 2013-05-16 17:55:28 -0700 (Thu, 16 May 2013) | 5 lines
      
      <rdar://problem/13893094>
      
      Show variables that were in the debug info but optimized out. Also display a good error message when one of these variables get used in an expression.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182516
      33a47c22
    • Bill Wendling's avatar
      Merging r182485: · e5e9018d
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182485 | arnolds | 2013-05-22 09:54:56 -0700 (Wed, 22 May 2013) | 7 lines
      
      LoopVectorize: Make Value pointers that could be RAUW'ed a VH
      
      The Value pointers we store in the induction variable list can be RAUW'ed by a
      call to SCEVExpander::expandCodeFor, use a TrackingVH instead. Do the same thing
      in some other places where we store pointers that could potentially be RAUW'ed.
      
      Fixes PR16073.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182492
      e5e9018d
    • Bill Wendling's avatar
      Merging r182486: · e4c54e3d
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182486 | d0k | 2013-05-22 10:01:12 -0700 (Wed, 22 May 2013) | 3 lines
      
      X86: When expanding PCMPGTQ to PCMPGTD we always want to compare the lower halves as unsigned.
      
      Take #2 on fixing PR15977.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182489
      e4c54e3d
    • Ashok Thirumurthi's avatar
    • Ashok Thirumurthi's avatar
      83cf5913
  8. 21 May, 2013 12 commits
    • Bill Wendling's avatar
      Merging r181363: · 84401c83
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r181363 | cdavis | 2013-05-07 14:14:15 -0700 (Tue, 07 May 2013) | 3 lines
      
      MCStreamer: Also clear vector of W64UnwindInfos on reset().
      
      Patch by Kai Nacke!
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182439
      84401c83
    • Bill Wendling's avatar
      Merging r181366: · 49066817
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r181366 | enderby | 2013-05-07 14:40:58 -0700 (Tue, 07 May 2013) | 6 lines
      
      Fix a bug in the MC asm parser evaluating expressions.  It was treating:
      A = 9
      B = 3 * A - 2 * A + 1 as  B = 3 * A - (2 * A + 1)
      
      rdar://13816516
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182438
      49066817
    • Bill Wendling's avatar
      Merging r182385: · 8dd2f524
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182385 | hfinkel | 2013-05-21 07:21:09 -0700 (Tue, 21 May 2013) | 9 lines
      
      Fix PPC branch selection for counter-based branches
      
      Although I had added some support for the BDZ/BDNZ branches into the selector
      (in r158204), I had not correctly adjusted the condition at the top of the
      loop. As a result, these branches were still essentially unsupported.
      
      This fixes PR16086. Unfortunately, any test case would be very large (because
      it would need to force the loop backedge to exceed the range of the 16-bit
      immediate).
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182431
      8dd2f524
    • Bill Wendling's avatar
      Merging r182387: · f18b8f68
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182387 | jholewinski | 2013-05-21 07:37:16 -0700 (Tue, 21 May 2013) | 7 lines
      
      Drop @llvm.annotation and @llvm.ptr.annotation intrinsics during codegen.
      
      The intrinsic calls are dropped, but the annotated value is propagated.
      
      Fixes PR 15253
      
      Original patch by Zeng Bin!
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182417
      f18b8f68
    • Bill Wendling's avatar
      Merging r182112: · c7b127f1
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182112 | tstellar | 2013-05-17 08:23:12 -0700 (Fri, 17 May 2013) | 1 line
      
      R600: Pass MCSubtargetInfo reference to R600CodeEmitter
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182416
      c7b127f1
    • Bill Wendling's avatar
      Merging r182364: · 1e6a22f0
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182364 | d0k | 2013-05-21 02:58:54 -0700 (Tue, 21 May 2013) | 4 lines
      
      X86: When emulating unsigned PCMPGTQ with PCMPGTD, fix the sign bit for the smaller type.
      
      Otherwise we'll get a mix of signed and unsigned compares.
      Fixes PR15977.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182413
      1e6a22f0
    • Reid Kleckner's avatar
      Reverting r182337, which merged r182266, __declspec(selectany) · a03fd3f2
      Reid Kleckner authored
      Was "Implement __declspec(selectany) under -fms-extensions ..."
      
      llvm-svn: 182381
      a03fd3f2
    • Bill Wendling's avatar
      Merging r182344: · 8703cc62
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182344 | mren | 2013-05-20 17:57:22 -0700 (Mon, 20 May 2013) | 7 lines
      
      Dwarf: use a single line table to generate assembly when .loc is used.
      
      This is to fix PR15408 where an undefined symbol Lline_table_start1 is used.
      Since we do not generate the debug_line section when .loc is used,
      Lline_table_start1 is not emitted and we can't refer to it when calculating
      at_stmt_list for a compile unit.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182346
      8703cc62
    • Bill Wendling's avatar
      Merging r181283: · d3e6cfff
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r181283 | rsmith | 2013-05-06 19:55:48 -0700 (Mon, 06 May 2013) | 6 lines
      
      C++ status:
       - fix paper links to point to isocpp.org, where most of the papers are already up
       - update "SVN" features to "Clang 3.3" to distinguish them from features which we
         complete after the branch
       - document use of -std=c++1y to enable c++1y support
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182341
      d3e6cfff
    • Bill Wendling's avatar
      Merging r181342: · b9690e08
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r181342 | rsmith | 2013-05-07 12:32:56 -0700 (Tue, 07 May 2013) | 4 lines
      
      C++1y: Update __cplusplus to temporary value 201305L to allow detection of provisional C++1y support.
      Add __has_feature and __has_extension checks for C++1y features (based on the provisional names from
      the C++ features study group), and update documentation to match.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182340
      b9690e08
    • Bill Wendling's avatar
      Merging r181487: · c9a23ab9
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r181487 | fjahanian | 2013-05-08 16:38:56 -0700 (Wed, 08 May 2013) | 4 lines
      
      put noisy "unknown command tag name"  warning
      under -Wdocumentation-unknown-command and off by default.
      patch by Dmitri Gribenko.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182338
      c9a23ab9
    • Bill Wendling's avatar
      Merging r182266: · b40a4c55
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r182266 | rnk | 2013-05-20 07:02:37 -0700 (Mon, 20 May 2013) | 13 lines
      
      Implement __declspec(selectany) under -fms-extensions
      
      selectany only applies to externally visible global variables.  It has
      the effect of making the data weak_odr.
      
      The MSDN docs suggest that unused definitions can only be dropped at
      linktime, so Clang uses weak instead of linkonce.  MSVC optimizes away
      references to constant selectany data, so it must assume that there is
      only one definition, hence weak_odr.
      
      Reviewers: espindola
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D814
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 182337
      b40a4c55
  9. 20 May, 2013 1 commit