1. Feb 19, 2013
  2. Feb 18, 2013
    • Douglas Gregor's avatar
      1c15cd6a
    • Douglas Gregor's avatar
      Ensure that the identifier chains have the most recent declaration after module deserialization. · 6168bd23
      Douglas Gregor authored
      This commit introduces a set of related changes to ensure that the
      declaration that shows up in the identifier chain after deserializing
      declarations with a given identifier is, in fact, the most recent
      declaration. The primary change involves waiting until after we
      deserialize and wire up redeclaration chains before updating the
      identifier chains. There is a minor optimization in here to avoid
      recursively deserializing names as part of looking to see whether
      top-level declarations for a given name exist.
      
      A related change that became suddenly more urgent is to property
      record a merged declaration when an entity first declared in the
      current translation unit is later deserialized from a module (that had
      not been loaded at the time of the original declaration). Since we key
      off the canonical declaration (which is parsed, not from an AST file)
      for emitted redeclarations, we simply record this as a merged
      declaration during AST writing and let the readers merge them.
      
      Re-fixes <rdar://problem/13189985>, presumably for good this time.
      
      llvm-svn: 175447
      6168bd23
    • Vincent Lejeune's avatar
      R600/SI: Use MULADD_IEEE/V_MAD_F32 instruction for mad pattern · 1ce13f55
      Vincent Lejeune authored
      llvm-svn: 175446
      1ce13f55
    • Vincent Lejeune's avatar
      R600: Support for TBO · 68501800
      Vincent Lejeune authored
      NOTE: This is a candidate for the Mesa stable branch.
      
      Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
      llvm-svn: 175445
      68501800
    • Daniel Jasper's avatar
      Improve indentation of builder type calls. · e53beb26
      Daniel Jasper authored
      In builder-type calls, it can be very confusing to just indent
      parameters from the start of the line. Instead, indent 4 from the
      correct function call.
      
      Before:
      aaaaaaaaaaaaaaaaaaa()->aaaaaa(bbbbb)->aaaaaaaaaaaaaaaaaaa( // break
          aaaaaaaaaaaaaa);
      aaaaaaaaaaaaaaaaaaaaaaa *aaaaaaaaa = aaaaaa->aaaaaaaaaaaa()->aaaaaaaaaaaaaaaa(
          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
          ->aaaaaaaaaaaaaaaaa();
      
      After:
      aaaaaaaaaaaaaaaaaaa()->aaaaaa(bbbbb)->aaaaaaaaaaaaaaaaaaa( // break
                                              aaaaaaaaaaaaaa);
      aaaaaaaaaaaaaaaaaaaaaaa *aaaaaaaaa = aaaaaa->aaaaaaaaaaaa()
          ->aaaaaaaaaaaaaaaa(
              aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
          ->aaaaaaaaaaaaaaaaa();
      
      llvm-svn: 175444
      e53beb26
    • Vincent Lejeune's avatar
      R600: Increase number of ArrayBase Reg to 32 · 4c1602b5
      Vincent Lejeune authored
      Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
      llvm-svn: 175443
      4c1602b5
    • Kostya Serebryany's avatar
      [asan] revert r175266 as it breaks code with packed structures. supporting... · 7ca384bc
      Kostya Serebryany authored
      [asan] revert r175266 as it breaks code with packed structures. supporting long double will require a more general solution
      
      llvm-svn: 175442
      7ca384bc
    • Daniel Jasper's avatar
      Improve formatting of builder-type calls. · 9ed9ade0
      Daniel Jasper authored
      Before:
      aaaaaaa->aaaaaaa->aaaaaaaaaaaaaaaa(
          aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)->aaaaaaaa(aaaaaaaaaaaaaaa);
      
      After:
      aaaaaaa->aaaaaaa
          ->aaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
          ->aaaaaaaa(aaaaaaaaaaaaaaa);
      
      llvm-svn: 175441
      9ed9ade0
    • Daniel Jasper's avatar
      Reformat lines if they were "moved around". · 55d7ba6b
      Daniel Jasper authored
      An unwrapped line can get moved around if there is no newline before
      it and the previous line was formatted.
      
      Example:
      
        template<typename T>  // Cursor is on this line when hitting "format"
        T *getFETokenInfo() const { return static_cast<T*>(FETokenInfo); }
      
      "return .." is the second unwrapped line in this scenario. I does not
      touch any reformatted region. Thus, the result of formatting is:
      
        template <typename T> T *getFETokenInfo() const { return static_cast<T *>(FETokenInfo); }
      
      After second format (and arguably desired end-result):
      
        template <typename T> T *getFETokenInfo() const {
            return static_cast<T *>(FETokenInfo);
        }
      
      This fixes: llvm.org/PR15060.
      
      llvm-svn: 175440
      55d7ba6b
    • Daniel Jasper's avatar
      Correctly determine */& usage in more cases. · 5065bc4b
      Daniel Jasper authored
      This fixes llvm.org/PR15248.
      
      Before:
      Test::Test(int b) : a(b *b) {}
      for (int i = 0; i < a *a; ++i) {}
      
      After:
      Test::Test(int b) : a(b * b) {}
      for (int i = 0; i < a * a; ++i) {}
      
      llvm-svn: 175439
      5065bc4b
    • Tim Northover's avatar
      AArch64: add atomic support parameters to TargetInfo · 847d2d45
      Tim Northover authored
      This allows Clang to detect and deal wih __atomic_* operations properly on
      AArch64. Previously we produced an error when encountering them at high
      optimisation levels.
      
      llvm-svn: 175438
      847d2d45
    • Benjamin Kramer's avatar
      Futureproof AttrBuild if we ever have more than 64 attr enum values. · eaf706be
      Benjamin Kramer authored
      Currently we're at 34. Bitset should compile into virtually the same code as
      uint64_t here.
      
      llvm-svn: 175437
      eaf706be
    • Daniel Jasper's avatar
      Always break after multi-line string literals. · 2ec3ffb8
      Daniel Jasper authored
      Otherwise, other parameters can be quite hidden.
      Reformatted unittests/Format/FormatTest.cpp after this.
      
      Before:
      someFunction("Always break between multi-line"
                   " string literals", and, other, parameters);
      
      After:
      someFunction("Always break between multi-line"
                   " string literals",
                   and, other, parameters);
      
      llvm-svn: 175436
      2ec3ffb8
    • Tim Northover's avatar
      Revert CMake version bump since we don't actually need 2.8.6 any more. · 1c82f3ee
      Tim Northover authored
      The problem call was removed in the interim. Apologies.
      
      llvm-svn: 175435
      1c82f3ee