Skip to content
  1. Sep 04, 2008
  2. Sep 03, 2008
    • Daniel Dunbar's avatar
      Add __builtin_object_size support. · b0d34c8e
      Daniel Dunbar authored
       - Currently CodeGen always returns a conservative value for this (-1
         or 0 depending on the context).
      
      llvm-svn: 55735
      b0d34c8e
    • Steve Naroff's avatar
      Add semantic analysis for "blocks". · c540d669
      Steve Naroff authored
      Highlights...
      
      - 4 new AST nodes, BlockExpr, BlockStmtExpr, BlockExprExpr, BlockDeclRefExpr.
      - Sema::ActOnBlockStart(), ActOnBlockError(), ActOnBlockStmtExpr(), ActOnBlockExprExpr(), ActOnBlockReturnStmt().
      
      Next steps...
      
      - hack Sema::ActOnIdentifierExpr() to deal with block decl refs.
      - add attribute handler for byref decls.
      - add test cases.
      
      llvm-svn: 55710
      c540d669
  3. Aug 26, 2008
  4. Aug 24, 2008
  5. Aug 23, 2008
  6. Aug 22, 2008
    • Argyrios Kyrtzidis's avatar
      Add support for C++'s "type-specifier ( expression-list )" expression: · 857fcc2f
      Argyrios Kyrtzidis authored
      -The Parser calls a new "ActOnCXXTypeConstructExpr" action.
      -Sema, depending on the type and expressions number:
         -If the type is a class, it will treat it as a class constructor. [TODO]
         -If there's only one expression (i.e. "int(0.5)" ), creates a new "CXXFunctionalCastExpr" Expr node
         -If there are no expressions (i.e "int()" ), creates a new "CXXZeroInitValueExpr" Expr node.
      
      llvm-svn: 55177
      857fcc2f
  7. Aug 20, 2008
    • Daniel Dunbar's avatar
      Fix subtle bug introduced in r54852. · 94834d88
      Daniel Dunbar authored
       - UsualUnaryConversions takes an Expr *& and may modify its argument,
         this broke when it was refactored into Sema::CheckCastTypes. This
         meant that we were missing implicit casts in some places.
       - Seems pretty sad that this got through our tests.
      
      llvm-svn: 55039
      94834d88
  8. Aug 16, 2008
  9. Aug 15, 2008
    • Daniel Dunbar's avatar
      Change Parser & Sema to use interned "super" for comparions. · 12c9ddce
      Daniel Dunbar authored
       - Added as private members for each because it is not clear where to
         put the common definition. Perhaps the IdentifierInfos all of these
         "pseudo-keywords" should be collected into one place (this would
         KnownFunctionIDs and Objective-C property IDs, for example).
      
      Remove Token::isNamedIdentifier.
       - There isn't a good reason to use strcmp when we have interned
         strings, and there isn't a good reason to encourage clients to do
         so.
      
      llvm-svn: 54794
      12c9ddce
  10. Aug 11, 2008
    • Daniel Dunbar's avatar
      More #include cleaning · 6e8aa537
      Daniel Dunbar authored
       - Drop {Decl.h,DeclObjC.h,IdentifierTable.h} from Expr.h
       - Moved Sema::getCurMethodDecl() out of line (dependent on
         ObjCMethodDecl via dyn_cast).
      
      llvm-svn: 54629
      6e8aa537
    • Daniel Dunbar's avatar
      Minor #include cleaning · 34fb6727
      Daniel Dunbar authored
       - Drop TokenKinds.h from Action.h
       - Move DeclSpec.h from Sema.h into individual Sema .cpp files
      
      llvm-svn: 54625
      34fb6727
  11. Aug 10, 2008
  12. Aug 09, 2008
  13. Aug 08, 2008
    • Steve Naroff's avatar
      Fix issues with C "tentative" definitions. · 5bb8f226
      Steve Naroff authored
      - Move checking from MergeVarDecl->FinializeDeclaratorGroup. Since MergeVarDecl is called before the initializer is attacted, it can't be done there (this removes a long standing FIXME).
      - Add Sema::isTentativeDefinition() and Sema::CheckForFileScopedRedefinitions().
      - Remove FIXME's and touch-up test case.
      
      Still some more work to do (forthcoming)...
      
      llvm-svn: 54533
      5bb8f226
  14. Aug 05, 2008
  15. Aug 01, 2008
  16. Jul 26, 2008
  17. Jul 25, 2008
  18. Jul 22, 2008
    • Daniel Dunbar's avatar
      Implement nans, prefetch, and trap builtins. · b725726c
      Daniel Dunbar authored
      This closes <rdar://problem/6080720>, support for __builtin_constant_p
      has been filed separately.
      
      llvm-svn: 53885
      b725726c
    • Chris Lattner's avatar
      minor cleanup to the actions interface to pass around SmallVectorImpl instead · d7352d68
      Chris Lattner authored
      of a specific smallvector size.
      
      Fix protocol lists to pass down proper location info, so we get diagnostics
      like this:
      
      t.m:3:35: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
      @interface NSWhatever : NSObject <NSCopying>
                                        ^
      
      instead of this:
      
      t.m:3:44: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
      @interface NSWhatever : NSObject <NSCopying>
                                                 ^
      
      
      Add a new IdentifierLocPair typedef which is just a pair<IdentifierInfo*, SourceLocation>
      
      llvm-svn: 53883
      d7352d68
  19. Jul 21, 2008
  20. Jul 14, 2008
    • Nate Begeman's avatar
      http://llvm.org/bugs/show_bug.cgi?id=2523 · 191a6b1f
      Nate Begeman authored
      Add some code to handle vector comparisons, which is the language side
      of the llvm vicmp/vfcmp instructions.  Also make the vector-vector and
      vector-scalar asign checks a bit more sane under the presence of lax vector
      conversions.
      
      llvm-svn: 53565
      191a6b1f
  21. Jul 01, 2008
  22. Jun 29, 2008
Loading