Skip to content
  1. Mar 23, 2010
  2. Mar 20, 2010
    • Daniel Dunbar's avatar
      C++: Add support for -fno-use-cxa-atexit. · fe06df4b
      Daniel Dunbar authored
       - So much typing, so little gain...
      
      Also, rename the __cxx_global_initialization function just to match llvm-gcc.
      
      llvm-svn: 99039
      fe06df4b
    • John McCall's avatar
      Change CodeGenModule to rely on the Module's symbol table instead of · 7ec5043c
      John McCall authored
      shadowing it in the GlobalDeclMap.  Eliminates the string-uniquing
      requirement for mangled names, which should help C++ codegen times a little.
      Forces us to do string lookups instead of pointer lookups, which might hurt
      codegen times a little across the board.  We'll see how it plays out.
      
      Removing the string-uniquing requirement implicitly fixes any bugs like
      PR6635 which arose from the fact that we had multiple uniquing tables for
      different kinds of identifiers.
      
      llvm-svn: 99012
      7ec5043c
  3. Mar 13, 2010
  4. Mar 12, 2010
  5. Mar 10, 2010
  6. Mar 06, 2010
  7. Mar 04, 2010
  8. Mar 02, 2010
  9. Feb 23, 2010
    • Rafael Espindola's avatar
      Add support for the weakref attribute. We still produce "alias weak" as... · c18086ae
      Rafael Espindola authored
      Add support for the weakref attribute. We still produce "alias weak" as llvm-gcc does, but are more strict on what uses of weakref we accept.
      
      llvm-svn: 96992
      c18086ae
    • John McCall's avatar
      Perform two more constructor/destructor code-size optimizations: · f8ff7b9f
      John McCall authored
      1) emit base destructors as aliases to their unique base class destructors
      under some careful conditions.  This is enabled for the same targets that can
      support complete-to-base aliases, i.e. not darwin.
      
      2) Emit non-variadic complete constructors for classes with no virtual bases
      as calls to the base constructor.  This is enabled on all targets and in
      theory can trigger in situations that the alias optimization can't (mostly
      involving virtual bases, mostly not yet supported).
      
      These are bundled together because I didn't think it worthwhile to split them,
      not because they really need to be.
      
      llvm-svn: 96842
      f8ff7b9f
  10. Feb 19, 2010
  11. Feb 18, 2010
  12. Feb 17, 2010
  13. Feb 11, 2010
  14. Feb 08, 2010
  15. Feb 07, 2010
  16. Feb 06, 2010
  17. Feb 03, 2010
    • Douglas Gregor's avatar
      When a function or variable somehow depends on a type or declaration · 7dc5c17d
      Douglas Gregor authored
      that is in an anonymous namespace, give that function or variable
      internal linkage.
      
      This change models an oddity of the C++ standard, where names declared
      in an anonymous namespace have external linkage but, because anonymous
      namespace are really "uniquely-named" namespaces, the names cannot be
      referenced from other translation units. That means that they have
      external linkage for semantic analysis, but the only sensible
      implementation for code generation is to give them internal
      linkage. We now model this notion via the UniqueExternalLinkage
      linkage type. There are several changes here:
      
        - Extended NamedDecl::getLinkage() to produce UniqueExternalLinkage
          when the declaration is in an anonymous namespace.
        - Added Type::getLinkage() to determine the linkage of a type, which
          is defined as the minimum linkage of the types (when we're dealing
          with a compound type that is not a struct/class/union).
        - Extended NamedDecl::getLinkage() to consider the linkage of the
          template arguments and template parameters of function template
          specializations and class template specializations.
        - Taught code generation to rely on NamedDecl::getLinkage() when
          determining the linkage of variables and functions, also
          considering the linkage of the types of those variables and
          functions (C++ only). Map UniqueExternalLinkage to internal
          linkage, taking out the explicit checks for
          isInAnonymousNamespace().
      
      This fixes much of PR5792, which, as discovered by Anders Carlsson, is
      actually the reason behind the pass-manager assertion that causes the
      majority of clang-on-clang regression test failures. With this fix,
      Clang-built-Clang+LLVM passes 88% of its regression tests (up from
      67%). The specific numbers are:
      
      LLVM:
        Expected Passes    : 4006
        Expected Failures  : 32
        Unsupported Tests  : 40
        Unexpected Failures: 736
      
      Clang:
        Expected Passes    : 1903
        Expected Failures  : 14
        Unexpected Failures: 75
      
      Overall:
        Expected Passes    : 5909
        Expected Failures  : 46
        Unsupported Tests  : 40
        Unexpected Failures: 811
      
      Still to do:
        - Improve testing
        - Check whether we should allow the presence of types with
        InternalLinkage (in addition to UniqueExternalLinkage) given
        variables/functions internal linkage in C++, as mentioned in
        PR5792. 
        - Determine how expensive the getLinkage() calls are in practice;
        consider caching the result in NamedDecl.
        - Assess the feasibility of Chris's idea in comment #1 of PR5792.
      
      llvm-svn: 95216
      7dc5c17d
  18. Feb 01, 2010
  19. Jan 27, 2010
  20. Jan 26, 2010
  21. Jan 23, 2010
  22. Jan 10, 2010
  23. Jan 09, 2010
  24. Jan 08, 2010
  25. Jan 06, 2010
Loading