Skip to content
  1. Mar 03, 2007
  2. Feb 28, 2007
    • Steve Naroff's avatar
      · 2c055d2b
      Steve Naroff authored
      Go back to having the clang driver create ASTContext explicitly, passing
      it to Sema/ASTStreamer (separating the lifetime of ASTContext from
      the lifetime of Sema). One day it might be useful to consider creating
      a context object implicitly if one isn't provided (using default arguments in
      Sema's constructor). At this point, adding this convenience isn't necessary.
      
      llvm-svn: 39346
      2c055d2b
    • Steve Naroff's avatar
      Make Sema's use of the preprocessor explicit (rather than assume · 38d31b47
      Steve Naroff authored
      the prerocessor will be available via ASTContext).
      - Removed the public data member "PP" in ASTContext.
      - Changed ASTContext's contructor to take TargetInfo/IdentifierTable explicitly.
      - Implicitly create an ASTContext in Sema's constructor. This simplifies
      the clients job (and makes ASTContext more private).
      --As a side effect, added a "PrintStats" hook to Sema.
      
      To support this level of encapsulation, ASTContext is always dynamically
      allocated (by Sema). Previously, ASTContext was being allocated on the
      stack. I don't believe this should be a performance issue (since ASTContext
      is fairly course grain and tied to the lifetime of Sema currently).
      
      llvm-svn: 39345
      38d31b47
  3. Feb 27, 2007
    • Steve Naroff's avatar
      More changes to complete the dynamic type support for Stmt/Expr. · 7f890eb7
      Steve Naroff authored
      This set of changes includes:
      - convert ExprCXX.h and add to the Xcode project file.
      -- required adding CXXBoolLiteralExpr to StmtNodes.def.
      -- required adding visitor support (decl/defn).
      - make the class codes in StmtNodes.def explicit (to enable range checking).
      -- this required changing all clients of the STMT macro.
      - declare the instance data const.
      
      llvm-svn: 39344
      7f890eb7
  4. Feb 26, 2007
  5. Feb 22, 2007
  6. Feb 21, 2007
  7. Feb 13, 2007
  8. Feb 11, 2007
  9. Feb 08, 2007
  10. Jan 31, 2007
  11. Jan 30, 2007
  12. Jan 29, 2007
    • Chris Lattner's avatar
      Add support for target-specific builtins, including detecting nonportability · 10a5b387
      Chris Lattner authored
      of source code.  For example:
      
      $ clang INPUTS/carbon_h.c -arch i386 -arch ppc
      prints:
      ...
      /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/mmintrin.h:51:3: note: use of a target-specific builtin function, source is not 'portable'
        __builtin_ia32_emms ();
        ^
      
      because carbon.h pulls in xmmintrin.h, and __builtin_ia32_emms isn't a builtin on ppc.
      
      Though clang now supports target-specific builtins, the full table isn't implemented yet.
      
      llvm-svn: 39328
      10a5b387
  13. Jan 28, 2007
  14. Jan 27, 2007
  15. Jan 26, 2007
Loading