Skip to content
  1. Aug 16, 2008
    • Daniel Dunbar's avatar
      Clean up CodeGenModule interface. · fce4be84
      Daniel Dunbar authored
       - Add CodeGenModule::EmitTopLevelDecl which uses switch on kind
         instead of ugly & slow dyn_cast chains.
      
       - Drop some simple forwarding methods into the ObjC runtime.
      
       - Privatize appropriate methods.
      
      llvm-svn: 54827
      fce4be84
    • Daniel Dunbar's avatar
      Change CGObjCRuntime methods to take appropriate clang Decls. · 92992509
      Daniel Dunbar authored
       - This is in prep for implementation class support for the NeXT
         runtime, for which the existing methods don't provide enough
         information (and additionally make too many assumptions about how
         things should be emitted).
      
      llvm-svn: 54824
      92992509
  2. Aug 15, 2008
  3. Aug 14, 2008
    • Daniel Dunbar's avatar
      Update some isIntegerConstantExpr uses to use · 7da1b82f
      Daniel Dunbar authored
        getIntegerConstantExprValue where appropriate.
      
      llvm-svn: 54771
      7da1b82f
    • Daniel Dunbar's avatar
      Add GetAddrOfConstantCString method · c4baa06d
      Daniel Dunbar authored
       - Returns addr of constant for argument + '\0'.
       - I couldn't think of a better name.
       - Move appropriate users of GetAddrOfConstantString to this.
      
      Rename getStringForStringLiteral to GetStringForStringLiteral.
      
      Add GetAddrOfConstantStringFromLiteral
       - This combines GetAddrOfConstantString and
         GetStringForStringLiteral. This method can be, but is not yet, more
         efficient.
      
      Change GetAddrOfConstantString to not add terminating '\0'
       - <rdar://problem/6140956>
      
      llvm-svn: 54768
      c4baa06d
  4. Aug 13, 2008
  5. Aug 12, 2008
  6. Aug 11, 2008
    • Daniel Dunbar's avatar
      Add LangOptions::NeXTRuntime. · 3ad53483
      Daniel Dunbar authored
       - Wired to -fnext-runtime and -fgnu-runtime options.
       - Defaults to GNU, no autoselection for NeXT.
      
      Emit NeXT OBJC_IMAGE_INFO marker.
      
      llvm-svn: 54651
      3ad53483
    • Daniel Dunbar's avatar
      Change CodeGenModule to only create ObjC runtime for ObjC files · 8d480594
      Daniel Dunbar authored
       - Changed CodeGenModule::getObjCRuntime to return reference.
       - Added CodeGenModule::hasObjCRuntime predicate.
      
      llvm-svn: 54645
      8d480594
    • Daniel Dunbar's avatar
      Add -fexceptions to Driver · fb3043d6
      Daniel Dunbar authored
       - Maps to LangOptions.Exceptions
       - Currently always off, should autoselect based on language.
      
      Update CodeGen to set unwind attribute on functions definitions based
             on LangOptions.Exceptions.
       - Still need to set attributes appropriately on calls.
      
      llvm-svn: 54643
      fb3043d6
    • Daniel Dunbar's avatar
      Update for IRBuilder template change (update LLVM!) · 48595de6
      Daniel Dunbar authored
      llvm-svn: 54642
      48595de6
    • Daniel Dunbar's avatar
      More #include cleaning · 56fdb6ae
      Daniel Dunbar authored
       - Kill unnecessary #includes in .cpp files. This is an automatic
         sweep so some things removed are actually used, but happen to be
         included by a previous header. I tried to get rid of the obvious
         examples and this was the easiest way to trim the #includes in one
         fell swoop.
       - We now return to regularly scheduled development.
      
      llvm-svn: 54632
      56fdb6ae
    • 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
      More #include cleaning · ad319a73
      Daniel Dunbar authored
       - Remove internal uses of AST.h
      
      llvm-svn: 54628
      ad319a73
    • Daniel Dunbar's avatar
      More #include cleaning · 221fa94e
      Daniel Dunbar authored
       - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and
         SourceLocation.h)
       - Move ASTContext constructor into implementation
      
      llvm-svn: 54627
      221fa94e
    • Daniel Dunbar's avatar
      Add dummy Mac Objective-C runtime interface. · 303e2c2f
      Daniel Dunbar authored
        - Not currently accessible and completely non-functional.
      
      llvm-svn: 54624
      303e2c2f
  7. Aug 10, 2008
  8. Aug 08, 2008
  9. Aug 07, 2008
  10. Aug 06, 2008
    • Daniel Dunbar's avatar
      Fix EmitNullInitializationToLValue for bitfield lvalues. · e8bdce44
      Daniel Dunbar authored
       - PR2643
      
      llvm-svn: 54397
      e8bdce44
    • Daniel Dunbar's avatar
      Fix bitfield accesses which straddle the boundary of the underlying · ead7c912
      Daniel Dunbar authored
      type.
      
       - This generates somewhat less optimal code than before but this is
         not hard to rectify once stable (at the cost of slightly more
         complex code).
      
       - This currently always uses little-endian ordering of the bitfield. 
      
       - This breaks the CodeGen/bitfield.c test because it was grepping for
         hard-coded assembly instructions. Will fix once a better test case
         is constructed (hard to do without execution).
      
       - This fixes SingleSource/UnitTests/2006-01-23-InitializedBitField.c
         and Regression/C/PR1386.c from the test suite.
      
       - <rdar://problem/6085090>, <rdar://problem/6094169>
      
      llvm-svn: 54395
      ead7c912
    • Daniel Dunbar's avatar
      Fix CodeGen of pointer arithmetic in compound assignment statements. · bfb1cd74
      Daniel Dunbar authored
       - Changed EmitSub to work on all cases (arithmetic, ptr - int, ptr -
         ptr) so that implementation matches that of other operators.
      
       - Modify EmitCompoundAssign to compute and perform the appropriate
         casts of left, right, and result types for the assorted pointer
         arithmetic cases.
      
       - Fix EmitSub (ptr - int) case to negate the rhs *after*
         extension. This is critical when the rhs is unsigned (and needs
         extension).
      
       - This fixes cfrac.
      
       - <rdr://6115726>
      
      llvm-svn: 54392
      bfb1cd74
    • Daniel Dunbar's avatar
      Implement GNU asm-label extension support in CodeGen. This fixes · ffc29be8
      Daniel Dunbar authored
      scimark2 on Darwin.
      
       - Added Sema support for asm-label on variables, which I forgot before.
      
       - Update CodeGen to use GlobalDeclMap to determine if static Decls
         require emission (instead of LLVM module name lookup). Important
         since the Decl name and the LLVM module name can differ.
      
       - <rdar://problem/6116729>
      
      llvm-svn: 54388
      ffc29be8
    • Daniel Dunbar's avatar
      Change CodeGen of global decls to key off of the name (instead of · 829e9888
      Daniel Dunbar authored
        having multiple bindings from all the possible decls which
        conceptually map to the same global).
      
       - This eliminates CodeGen depending on the LLVM module for name
         lookup.
      
       - This also eliminates the need for ReplaceMapValuesWith (hurrah).
      
       - This handles lookups for FunctionDecls correctly in the presence of
         aliases, this was previously broken.
      
       - WIP: Can still clean up & unify variable and function emission.
      
      llvm-svn: 54382
      829e9888
  11. Aug 05, 2008
Loading