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

  1. 08 May, 2012 2 commits
    • Bill Wendling's avatar
      Merging r155803: · 6a49deb6
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155803 | rsmith | 2012-04-29 17:16:51 -0700 (Sun, 29 Apr 2012) | 8 lines
      
      PR11926 + duplicates: Fix crash in -Wuninitialized when using a compiler like
      g++4.7, which reuses stack space allocated for temporaries. CFGElement::getAs
      returns a suitably-cast version of 'this'. Patch by Markus Trippelsdorf!
      
      No test: this code has the same observable behavior as the old code when built
      with most compilers, and the tests were already failing when built with a
      compiler for which this produced a broken binary.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 156394
      6a49deb6
    • Bill Wendling's avatar
      New Revision: 155749 · e236a78c
      Bill Wendling authored
      URL: http://llvm.org/viewvc/llvm-project?rev=155749&view=rev
      Log:
      Reapply 155668: Fix the SD scheduler to avoid gluing the same node twice.
      
      This time, also fix the caller of AddGlue to properly handle
      incomplete chains. AddGlue had failure modes, but shamefully hid them
      from its caller. It's luck ran out.
      
      Fixes rdar://11314175: BuildSchedUnits assert.
      
      llvm-svn: 156376
      e236a78c
  2. 02 May, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155984: · ddfbfaac
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155984 | void | 2012-05-02 02:59:45 -0700 (Wed, 02 May 2012) | 4 lines
      
      The value held in the vector may be RAUW'ed by some of the canonicalization
      methods. Use a weak value handle to keep up with this.
      PR12245
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155985
      ddfbfaac
  3. 01 May, 2012 4 commits
    • Bill Wendling's avatar
      Merging r155954: · 385fbc17
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155954 | void | 2012-05-01 15:50:45 -0700 (Tue, 01 May 2012) | 3 lines
      
      Strip the pointer casts off of allocas so that the selection DAG can find them.
      PR10799
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155955
      385fbc17
    • Bill Wendling's avatar
      Merging r155278: · 3ff7fb0f
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155278 | chapuni | 2012-04-21 02:39:58 -0700 (Sat, 21 Apr 2012) | 3 lines
      
      clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Mark as XFAIL:mingw for now, due to predefined __declspec.
      
      It could be tweaked to add -triple i686-win32, though.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155934
      3ff7fb0f
    • Bill Wendling's avatar
      Merging r155902: · 0b1d2467
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155902 | void | 2012-05-01 01:27:43 -0700 (Tue, 01 May 2012) | 7 lines
      
      Change the PassManager from a reference to a pointer.
      
      The TargetPassManager's default constructor wants to initialize the PassManager
      to 'null'. But it's illegal to bind a null reference to a null l-value. Make the
      ivar a pointer instead.
      PR12468
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155903
      0b1d2467
    • Bill Wendling's avatar
      Merging r155895: · 26951d3d
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155895 | eliben | 2012-04-30 23:15:40 -0700 (Mon, 30 Apr 2012) | 4 lines
      
      Removed examples of stack frame inspection which no longer work for old JIT.
      Added an example of MCJIT-based debugging.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155901
      26951d3d
  4. 30 Apr, 2012 7 commits
    • Bill Wendling's avatar
      Merging r155844: · 496c30e1
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155844 | spop | 2012-04-30 13:06:58 -0700 (Mon, 30 Apr 2012) | 8 lines
      
      fix typo
      
      Thanks to "Gabor Greif" <ggreif@gmail.com> for reporting this problem.
      
      The configure flag should be --with-default-sysroot as documented, and
      not --with-sysroot.  The reason we don't want to define --with-sysroot
      is that GCC has a configure flag by that name and it has a different
      semantics.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155852
      496c30e1
    • Bill Wendling's avatar
      Rename to match coding conventions. · 7a8da6c1
      Bill Wendling authored
      llvm-svn: 155834
      7a8da6c1
    • Bill Wendling's avatar
      Merging r155817: · 63ee36b8
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155817 | void | 2012-04-30 03:44:54 -0700 (Mon, 30 Apr 2012) | 9 lines
      
      Second attempt at PR12573:
      
      Allow the "SplitCriticalEdge" function to split the edge to a landing pad. If
      the pass is *sure* that it thinks it knows what it's doing, then it may go ahead
      and specify that the landing pad can have its critical edge split. The loop
      unswitch pass is one of these passes. It will split the critical edges of all
      edges coming from a loop to a landing pad not within the loop. Doing so will
      retain important loop analysis information, such as loop simplify.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155833
      63ee36b8
    • Bill Wendling's avatar
      Merging r155813: · 0ac87694
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155813 | void | 2012-04-30 02:23:48 -0700 (Mon, 30 Apr 2012) | 1 line
      
      Remove hack from r154987. The problem persists even with it, so it's not even a good hack.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155831
      0ac87694
    • Bill Wendling's avatar
      Merging r155166: · 9c81b57c
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155166 | void | 2012-04-19 16:31:07 -0700 (Thu, 19 Apr 2012) | 1 line
      
      Put this expensive check below the less expensive ones.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155830
      9c81b57c
    • Bill Wendling's avatar
      Merging r155809: · ee386407
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155809 | rafael | 2012-04-29 20:53:06 -0700 (Sun, 29 Apr 2012) | 2 lines
      
      Make sure HoistInsertPosition finds a position that is dominated by all
      inputs.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155828
      ee386407
    • Bill Wendling's avatar
      Merging r155818: · e8a900fc
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155818 | baldrick | 2012-04-30 04:56:58 -0700 (Mon, 30 Apr 2012) | 3 lines
      
      Just mark the sign bit as known zero, rather than any other irrelevant bits
      known zero in the LHS.  Fixes PR12541.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155827
      e8a900fc
  5. 27 Apr, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155728: · 2fe44613
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155728 | rsmith | 2012-04-27 12:33:05 -0700 (Fri, 27 Apr 2012) | 4 lines
      
      PR12224 (sort of): Diagnose inheriting constructor declarations in C++11 mode.
      We do not support IRGen for these, and get some parts of the semantic analysis
      wrong.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155731
      2fe44613
  6. 26 Apr, 2012 2 commits
    • Bill Wendling's avatar
      Merging r155668: · 5f15b4e8
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155668 | atrick | 2012-04-26 14:48:25 -0700 (Thu, 26 Apr 2012) | 8 lines
      
      Fix the SD scheduler to avoid gluing the same node twice.
      
      DAGCombine strangeness may result in multiple loads from the same
      offset. They both may try to glue themselves to another load. We could
      insist that the redundant loads glue themselves to each other, but the
      beter fix is to bail out from bad gluing at the time we detect it.
      
      Fixes rdar://11314175: BuildSchedUnits assert.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155672
      5f15b4e8
    • Bill Wendling's avatar
      Merging r155670: · 988b10e3
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155670 | efriedma | 2012-04-26 15:43:24 -0700 (Thu, 26 Apr 2012) | 3 lines
      
      Add a missing ExpressionEvaluationContext for template default arguments.  Fixes PR12581.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155671
      988b10e3
  7. 25 Apr, 2012 4 commits
    • Bill Wendling's avatar
      Merging r155576: · 584eaadb
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155576 | akirtzidis | 2012-04-25 11:39:17 -0700 (Wed, 25 Apr 2012) | 4 lines
      
      When resolving default template arguments, it should be done in the declaration context
      of the template what we are going to instantiate.
      
      Fixes various crashes of rdar://11242625 & http://llvm.org/PR11421.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155582
      584eaadb
    • Bill Wendling's avatar
      Merging r155536: · ea5f85ee
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155536 | lattner | 2012-04-24 23:37:20 -0700 (Tue, 24 Apr 2012) | 3 lines
      
      openbsd doesn't support soname, patch by Brad Smith!
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155574
      ea5f85ee
    • Bill Wendling's avatar
      Merging r155535: · f242e238
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155535 | lattner | 2012-04-24 23:12:24 -0700 (Tue, 24 Apr 2012) | 5 lines
      
      OpenBSD: Remove incorrect -pthread preprocessor define _POSIX_THREADS and replace
      with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
      
      Patch by Brad Smith!
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155573
      f242e238
    • Bill Wendling's avatar
      Merging r155534: · 67cd5dee
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155534 | lattner | 2012-04-24 23:09:30 -0700 (Tue, 24 Apr 2012) | 3 lines
      
      don't use soname on OpenBSD, it doesn't support it.  Patch by
      Brad Smith!
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155572
      67cd5dee
  8. 24 Apr, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155466: · 181a72c0
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155466 | chandlerc | 2012-04-24 11:42:47 -0700 (Tue, 24 Apr 2012) | 17 lines
      
      Fix a crash on valid (if UB) bitcode that is produced for some global
      constants in C++11 mode. I have no idea why it required such particular
      circumstances to get here, the code seems clearly to rely upon unchecked
      assumptions.
      
      Specifically, when we decide to form an index into a struct type, we may
      have gone through (at least one) zero-length array indexing round, which
      would have left the offset un-adjusted, and thus not necessarily valid
      for use when indexing the struct type.
      
      This is just an canonicalization step, so the correct thing is to refuse
      to canonicalize nonsensical GEPs of this form. Implemented, and test
      case added.
      
      Fixes PR12642. Pair debugged and coded with Richard Smith. =] I credit
      him with most of the debugging, and preventing me from writing the wrong
      code.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155506
      181a72c0
  9. 23 Apr, 2012 7 commits
    • Bill Wendling's avatar
      Merging r155287: · 98eaa463
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155287 | chapuni | 2012-04-21 08:31:45 -0700 (Sat, 21 Apr 2012) | 3 lines
      
      llvm/lib/Target: [PR12611] Add "llvm/Support/raw_ostream.h" for Debug build on MSVC.
      
      Thanks to Andy Gibbs, to report the issue.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155378
      98eaa463
    • Bill Wendling's avatar
      Merging r155286: · 483a943c
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155286 | chapuni | 2012-04-21 08:31:36 -0700 (Sat, 21 Apr 2012) | 1 line
      
      HexagonISelLowering.cpp: Reorder #includes.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155377
      483a943c
    • Bill Wendling's avatar
      Merging r155342: · 047e6ff2
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155342 | asl | 2012-04-23 02:02:13 -0700 (Mon, 23 Apr 2012) | 3 lines
      
      Do not use stdint.h, driver might provide invalid location for it. Instead, provide the types directly.
      This should fix PR12628
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155376
      047e6ff2
    • Bill Wendling's avatar
      Merging r155288: · 2cd7132e
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155288 | d0k | 2012-04-21 09:05:27 -0700 (Sat, 21 Apr 2012) | 6 lines
      
      Remove unused PointerLikeTypeTraits for IndexListEntry.
      
      It set NumLowBitAvailable = 3 which may not be true on all platforms.  We only
      ever use 2 bits (the default) so this assumption can be safely removed
      
      Should fix PR12612.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155375
      2cd7132e
    • Bill Wendling's avatar
      Merging r155342: · 82341373
      Bill Wendling authored
      ------------------------------------------------------------------------
      
      llvm-svn: 155374
      82341373
    • Bill Wendling's avatar
      Merging r155285: · 8d6eb8e5
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155285 | chapuni | 2012-04-21 07:51:02 -0700 (Sat, 21 Apr 2012) | 1 line
      
      CMake: Enable LLVM_COMPILER_JOBS on all MS IDEs. We don't support older environments than VS9.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155335
      8d6eb8e5
    • Bill Wendling's avatar
      Merging r155284: · 30f2ef37
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155284 | chapuni | 2012-04-21 07:50:56 -0700 (Sat, 21 Apr 2012) | 1 line
      
      CMake: Prune redundant LLVM_COMPILER_JOBS from llvm/CMakeLists.txt. HandleLLVMOptions.cmake has it.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155334
      30f2ef37
  10. 22 Apr, 2012 2 commits
    • Bill Wendling's avatar
      Merging r155307: · 4ea5fe07
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155307 | void | 2012-04-22 00:23:04 -0700 (Sun, 22 Apr 2012) | 1 line
      
      Remove some potential warnings about variables used uninitialized.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155308
      4ea5fe07
    • Bill Wendling's avatar
      Inline a variable that's used only in an assert. · d5920bc1
      Bill Wendling authored
      llvm-svn: 155306
      d5920bc1
  11. 21 Apr, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155279: · 28781611
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155279 | chapuni | 2012-04-21 02:40:04 -0700 (Sat, 21 Apr 2012) | 1 line
      
      SemaDeclCXX.cpp: Fix utf8 in comment.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155295
      28781611
  12. 20 Apr, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155230: · 6f8e5403
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155230 | void | 2012-04-20 13:31:44 -0700 (Fri, 20 Apr 2012) | 1 line
      
      Modify the sh-bang to run out-of-the-box for FreeBSDes.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155231
      6f8e5403
  13. 19 Apr, 2012 1 commit
    • Bill Wendling's avatar
      Merging r155076: · b4b499b7
      Bill Wendling authored
      ```---------------------------------------------------------------------
      r155076 | rsmith | 2012-04-18 17:08:28 -0700 (Wed, 18 Apr 2012) | 6 lines
      
      PR 12586: Fix assert while running libc++ testsuite: deal with exception
      specifications on member function templates of class templates and other such
      nested beasties. Store the function template from which we are to instantiate
      an exception specification rather than trying to deduce it. Plus some
      additional test cases.
      ```
      
      ---------------------------------------------------------------------
      
      llvm-svn: 155079
      b4b499b7
  14. 18 Apr, 2012 6 commits
    • Bill Wendling's avatar
      Creating release_31 branch · 392e4fbd
      Bill Wendling authored
      llvm-svn: 155059
      llvm-svn: 155053
      llvm-svn: 155051
      392e4fbd
    • Bill Wendling's avatar
      Add a flag to rebranch if we need to. · eb1c2bdc
      Bill Wendling authored
      llvm-svn: 155049
      eb1c2bdc
    • Chandler Carruth's avatar
      Revert some Hexagon builtin commits to match reverts done to LLVM in · b8ae7603
      Chandler Carruth authored
      r155047. See the LLVM log for the primary motivation:
        http://llvm.org/viewvc/llvm-project?rev=155047&view=rev
      
      Primary commit r154828:
        - Several issues were raised in review, and fixed in subsequent
          commits.
        - Follow-up commits also reverted, and which should be folded into the
          original before reposting:
          - r154837: Re-add the 'undef BUILTIN' thing to fix the build.
          - r154928: Fix build warnings, re-add (and correct) header and
            license
          - r154937: Typo fix.
      
      Please resubmit this patch with the relevant LLVM resubmission.
      
      llvm-svn: 155048
      b8ae7603
    • Chandler Carruth's avatar
      This reverts a long string of commits to the Hexagon backend. These · b415bf98
      Chandler Carruth authored
      commits have had several major issues pointed out in review, and those
      issues are not being addressed in a timely fashion. Furthermore, this
      was all committed leading up to the v3.1 branch, and we don't need piles
      of code with outstanding issues in the branch.
      
      It is possible that not all of these commits were necessary to revert to
      get us back to a green state, but I'm going to let the Hexagon
      maintainer sort that out. They can recommit, in order, after addressing
      the feedback.
      
      Reverted commits, with some notes:
      
      Primary commit r154616: HexagonPacketizer
        - There are lots of review comments here. This is the primary reason
          for reverting. In particular, it introduced large amount of warnings
          due to a bad construct in tablegen.
        - Follow-up commits that should be folded back into this when
          reposting:
          - r154622: CMake fixes
          - r154660: Fix numerous build warnings in release builds.
        - Please don't resubmit this until the three commits above are
          included, and the issues in review addressed.
      
      Primary commit r154695: Pass to replace transfer/copy ...
        - Reverted to minimize merge conflicts. I'm not aware of specific
          issues with this patch.
      
      Primary commit r154703: New Value Jump.
        - Primarily reverted due to merge conflicts.
        - Follow-up commits that should be folded back into this when
          reposting:
          - r154703: Remove iostream usage
          - r154758: Fix CMake builds
          - r154759: Fix build warnings in release builds
        - Please incorporate these fixes and and review feedback before
          resubmitting.
      
      Primary commit r154829: Hexagon V5 (floating point) support.
        - Primarily reverted due to merge conflicts.
        - Follow-up commits that should be folded back into this when
          reposting:
          - r154841: Remove unused variable (fixing build warnings)
      
      There are also accompanying Clang commits that will be reverted for
      consistency.
      
      llvm-svn: 155047
      b415bf98
    • Greg Clayton's avatar
      Make sure EmulateInstructionARM doesn't have to have "armv4", "armv6", "armv7"... · af54653c
      Greg Clayton authored
      Make sure EmulateInstructionARM doesn't have to have "armv4", "armv6", "armv7" as the exact architecture name, the arch name can just start with any of these strings. We need to be able to recognize different variants that might come along and not fail to backtrace completely (which happens when we aren't able to find an architecture that matches) when we don't have exact matches.
      
      llvm-svn: 155045
      af54653c
    • Howard Hinnant's avatar
      Richard Smith: __int128 is a GNU keyword which clang 3.1 supports. This usage... · b54f86aa
      Howard Hinnant authored
      Richard Smith:  __int128 is a GNU keyword which clang 3.1 supports. This usage of it as an identifier will need to be renamed.
      
      llvm-svn: 155044
      b54f86aa