Skip to content
  1. Jul 23, 2008
  2. Jul 22, 2008
  3. Jul 21, 2008
  4. Jul 18, 2008
  5. Jul 09, 2008
  6. Jun 30, 2008
    • Chris Lattner's avatar
      Make a few related changes: · 9a8d1d9e
      Chris Lattner authored
      1) add a new ASTContext::getFloatTypeSemantics method.
      2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places.
      3) Change the TargetInfo.h get*Format methods to return their 
         fltSemantics byref instead of by pointer.
      4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which
         sometimes expand specially and othertimes fall back to libm.
      5) Add support for __builtin_nan("") to codegen, cases that don't pass
         in an empty string are currently lowered to libm calls.
      6) Fix codegen of __builtin_infl.
      
      llvm-svn: 52914
      9a8d1d9e
  7. Jun 25, 2008
  8. Jun 17, 2008
    • Ted Kremenek's avatar
      This patch is motivated by numerous strict-aliasing warnings when compiling · 08e17118
      Ted Kremenek authored
      clang as a Release build.
      
      The big change is that all AST nodes (subclasses of Stmt) whose children are
      Expr* store their children as Stmt* or arrays of Stmt*. This is to remove
      strict-aliasing warnings when using StmtIterator. None of the interfaces of any
      of the classes have changed (except those with arg_iterators, see below), as the
      accessor methods introduce the needed casts (via cast<>). While this extra
      casting may seem cumbersome, it actually adds some important sanity checks
      throughout the codebase, as clients using StmtIterator can potentially overwrite
      children that are expected to be Expr* with Stmt* (that aren't Expr*). The casts
      provide extra sanity checks that are operational in debug builds to catch
      invariant violations such as these.
      
      For classes that have arg_iterators (e.g., CallExpr), the definition of
      arg_iterator has been replaced. Instead of it being Expr**, it is an actual
      class (called ExprIterator) that wraps a Stmt**, and provides the necessary
      operators for iteration. The nice thing about this class is that it also uses
      cast<> to type-checking, which introduces extra sanity checks throughout the
      codebase that are useful for debugging.
      
      A few of the CodeGen functions that use arg_iterator (especially from
      OverloadExpr) have been modified to take begin and end iterators instead of a
      base Expr** and the number of arguments. This matches more with the abstraction
      of iteration. This still needs to be cleaned up a little bit, as clients expect
      that ExprIterator is a RandomAccessIterator (which we may or may not wish to
      allow for efficiency of representation).
      
      This is a fairly large patch. It passes the tests (except CodeGen/bitfield.c,
      which was already broken) on both a Debug and Release build, but it should
      obviously be reviewed.
      
      llvm-svn: 52378
      08e17118
  9. Jun 16, 2008
  10. Jun 14, 2008
  11. May 27, 2008
  12. May 20, 2008
  13. May 16, 2008
  14. May 15, 2008
  15. May 10, 2008
  16. May 06, 2008
  17. May 04, 2008
  18. Apr 14, 2008
  19. Apr 04, 2008
  20. Apr 03, 2008
  21. Mar 16, 2008
    • Chris Lattner's avatar
      Make a major restructuring of the clang tree: introduce a top-level · 7a51313d
      Chris Lattner authored
      lib dir and move all the libraries into it.  This follows the main
      llvm tree, and allows the libraries to be built in parallel.  The
      top level now enforces that all the libs are built before Driver,
      but we don't care what order the libs are built in.  This speeds
      up parallel builds, particularly incremental ones.
      
      llvm-svn: 48402
      7a51313d
  22. Feb 09, 2008
  23. Feb 06, 2008
  24. Feb 01, 2008
  25. Jan 30, 2008
  26. Jan 17, 2008
    • Nate Begeman's avatar
      Match change in EmitCallExpr · 1c075a1c
      Nate Begeman authored
      llvm-svn: 46136
      1c075a1c
    • Nate Begeman's avatar
      Implement basic overload support via a new builtin, __builtin_overload. · 1e36a85f
      Nate Begeman authored
      __builtin_overload takes 2 or more arguments:
      0) a non-zero constant-expr for the number of arguments the overloaded 
         functions will take
      1) the arguments to pass to the matching overloaded function
      2) a list of functions to match.
      
      The return type of __builtin_overload is inferred from the function whose args
      match the types of the arguments passed to the builtin.  For example:
      
      float a;
      float sinf(float);
      int   sini(int);
      
      float b = __builtin_overload(1, a, sini, sinf);
      
      Says that we are overloading functions that take one argument, and trying to 
      pass an argument of the same type as 'a'.  sini() does not match since it takes
      and argument of type int.  sinf does match, so at codegen time this will turn
      into float b = sinf(a);
      
      llvm-svn: 46132
      1e36a85f
  27. Dec 29, 2007
  28. Dec 20, 2007
  29. Dec 18, 2007
  30. Dec 17, 2007
  31. Dec 16, 2007
  32. Dec 15, 2007
  33. Dec 14, 2007
Loading