Skip to content
  1. Jul 21, 2008
  2. Jul 18, 2008
  3. Jul 17, 2008
  4. Jul 14, 2008
  5. Jul 09, 2008
  6. Jul 04, 2008
  7. 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
  8. Jun 27, 2008
  9. Jun 26, 2008
  10. Jun 25, 2008
  11. Jun 24, 2008
  12. Jun 21, 2008
    • Chris Lattner's avatar
      "this patch adds code generation hooks for Objective-C constant strings. It... · 091f698d
      Chris Lattner authored
      "this patch adds code generation hooks for Objective-C constant strings.  It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found.  This is consistent with Apple GCC.  I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it.  Possibly there is a way of making the error go away, but I haven't found out what it is yet."
      
      Patch by David Chisnall!
      
      llvm-svn: 52599
      091f698d
    • Chris Lattner's avatar
      Don't add isa with @defs only to work around it in the code generator, patch · c4f38851
      Chris Lattner authored
      by David Chisnall. 
      
      llvm-svn: 52597
      c4f38851
  13. Jun 19, 2008
  14. Jun 17, 2008
    • Chris Lattner's avatar
      Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl. · 5696e7ba
      Chris Lattner authored
      Patch by David Chisnall!
      
      llvm-svn: 52422
      5696e7ba
    • 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
  15. Jun 16, 2008
  16. Jun 14, 2008
  17. Jun 10, 2008
  18. Jun 09, 2008
  19. Jun 08, 2008
  20. Jun 07, 2008
Loading