Skip to content
  1. Jul 01, 2009
  2. Apr 13, 2009
  3. Mar 08, 2009
  4. Mar 07, 2009
    • Duncan Sands's avatar
      Introduce new linkage types linkonce_odr, weak_odr, common_odr · 12da8ce3
      Duncan Sands authored
      and extern_weak_odr.  These are the same as the non-odr versions,
      except that they indicate that the global will only be overridden
      by an *equivalent* global.  In C, a function with weak linkage can
      be overridden by a function which behaves completely differently.
      This means that IP passes have to skip weak functions, since any
      deductions made from the function definition might be wrong, since
      the definition could be replaced by something completely different
      at link time.   This is not allowed in C++, thanks to the ODR
      (One-Definition-Rule): if a function is replaced by another at
      link-time, then the new function must be the same as the original
      function.  If a language knows that a function or other global can
      only be overridden by an equivalent global, it can give it the
      weak_odr linkage type, and the optimizers will understand that it
      is alright to make deductions based on the function body.  The
      code generators on the other hand map weak and weak_odr linkage
      to the same thing.
      
      llvm-svn: 66339
      12da8ce3
  5. Mar 03, 2009
  6. Jan 15, 2009
  7. Jan 09, 2009
  8. Oct 25, 2008
  9. Oct 15, 2008
  10. Sep 29, 2008
  11. Sep 22, 2008
  12. Sep 09, 2008
  13. Jul 14, 2008
  14. Jul 10, 2008
  15. Jul 07, 2008
  16. Jul 06, 2008
  17. Jun 27, 2008
  18. Jun 20, 2008
  19. Jun 17, 2008
  20. Jun 16, 2008
  21. Jun 09, 2008
  22. May 26, 2008
    • Duncan Sands's avatar
      Factor code to copy global value attributes like · dd7daee8
      Duncan Sands authored
      the section or the visibility from one global
      value to another: copyAttributesFrom.  This is
      particularly useful for duplicating functions:
      previously this was done by explicitly copying
      each attribute in turn at each place where a
      new function was created out of an old one, with
      the result that obscure attributes were regularly
      forgotten (like the collector or the section).
      Hopefully now everything is uniform and nothing
      is forgotten.
      
      llvm-svn: 51567
      dd7daee8
Loading