Skip to content
  1. Dec 21, 2008
  2. Dec 18, 2008
  3. Dec 15, 2008
  4. Dec 12, 2008
  5. Nov 24, 2008
    • Chris Lattner's avatar
      Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of · f3d3faec
      Chris Lattner authored
      uses of getName() with uses of getDeclName().  This upgrades a bunch of
      diags to take DeclNames instead of std::strings.
      
      This also tweaks a couple of diagnostics to be cleaner and changes
      CheckInitializerTypes/PerformInitializationByConstructor to pass
      around DeclarationNames instead of std::strings.
      
      llvm-svn: 59947
      f3d3faec
  6. Nov 22, 2008
  7. Nov 21, 2008
  8. Nov 20, 2008
  9. Nov 19, 2008
  10. Nov 18, 2008
  11. Nov 14, 2008
    • Douglas Gregor's avatar
      Add a new expression node, CXXOperatorCallExpr, which expresses a · 993603d8
      Douglas Gregor authored
      function call created in response to the use of operator syntax that
      resolves to an overloaded operator in C++, e.g., "str1 +
      str2" that resolves to std::operator+(str1, str2)". We now build a
      CXXOperatorCallExpr in C++ when we pick an overloaded operator. (But
      only for binary operators, where we actually implement overloading)
      
      I decided *not* to refactor the current CallExpr to make it abstract
      (with FunctionCallExpr and CXXOperatorCallExpr as derived
      classes). Doing so would allow us to make CXXOperatorCallExpr a little
      bit smaller, at the cost of making the argument and callee accessors
      virtual. We won't know if this is going to be a win until we can parse
      lots of C++ code to determine how much memory we'll save by making
      this change vs. the performance penalty due to the extra virtual
      calls.
      
      llvm-svn: 59306
      993603d8
  12. Nov 13, 2008
  13. Nov 04, 2008
  14. Oct 18, 2008
  15. Oct 17, 2008
  16. Sep 24, 2008
    • Daniel Dunbar's avatar
      Refactor some CodeGen functionality: · 1c64e5d1
      Daniel Dunbar authored
       - Add CodeGenFunction::{EmitReturnOfRValue, EmitIvarOffset}
       - Factor EmitLValueForIvar out of EmitObjCIvarRefLValue.
      
      No non-error functionality change (some unsupported errors are
      degraded to asserts for the time being).
      
      llvm-svn: 56543
      1c64e5d1
  17. Sep 10, 2008
  18. Sep 09, 2008
    • Daniel Dunbar's avatar
      Change CodeGen to emit calls using (RValue,Type) list: · 41cf9ded
      Daniel Dunbar authored
       - Add CodeGenFunction::EmitAnyExprToTemp
         o Like EmitAnyExpr, but emits aggregates to a temporary location if
           none is available. Seems like this should be simpler (even aside
           from using first class aggregates).
      
       - Killed CodeGenFunction::EmitCallArg (just append the pair)
      
       - Conversion of RValues to actual call arguments is now isolated in
         CodeGenFunction::EmitCall.
      
      llvm-svn: 55970
      41cf9ded
  19. Sep 08, 2008
    • Daniel Dunbar's avatar
      Refactor parameter attribute handling: · 3d7c90b8
      Daniel Dunbar authored
        - Add CGCall.h for dealing with ABI issues related to calls.
        - Add CGFunctionInfo and CGCallInfo for capturing ABI relevant
          information about functions and calls.
        - Isolate LLVM parameter attribute handling inside CGCall.cpp
      
      llvm-svn: 55963
      3d7c90b8
  20. Sep 04, 2008
  21. Aug 30, 2008
    • Daniel Dunbar's avatar
      Add Objective-C property setter support. · 4b8c6db9
      Daniel Dunbar authored
       - Change Obj-C runtime message API, drop the ObjCMessageExpr arg in
         favor of just result type and selector. Necessary so it can be
         reused in situations where we don't want to cons up an
         ObjCMessageExpr.
       - Update aggregate binary assignment to know about special property
         ref lvalues.
       - Add CodeGenFunction::EmitCallArg overload which takes an already
         emitted rvalue.
      
      Add CodeGenFunction::StoreComplexIntoAddr.
      
      Disabled logic in Sema for parsing Objective-C dot-syntax that
      accesses methods. This code does not search in the correct order and
      the AST node has no way of properly representing its results.
      
      Updated StmtDumper to print a bit more information about
      ObjCPropertyRefExprs.
      
      llvm-svn: 55561
      4b8c6db9
    • Daniel Dunbar's avatar
      Refactor handling of calls: · c722b856
      Daniel Dunbar authored
       - Added CodeGenFunction::EmitCall which just takes the callee, return
         type, and a list of (Value*,QualType) pairs.
       - Added CodeGenFunction::EmitCallArg which handles emitting code for
         a call argument and turning it into an appropriate
         (Value*,QualType) pair.
       - Changed Objective-C runtime interface so that the actual emission
         of arguments for message sends is (once again) done in the code to
         emit a message send.
      
      No intended functionality change, this is prep work for better ABI
      support and for Objective-C property setter support.
      
      llvm-svn: 55560
      c722b856
  22. Aug 29, 2008
  23. Aug 25, 2008
  24. Aug 23, 2008
    • Daniel Dunbar's avatar
      Implement Obj-C ivar references to aggregates. · c8317a44
      Daniel Dunbar authored
      Implement Obj-C lvalue message sends (aggregate returns).
      
      Update several places to emit more precise ErrorUnsupported warnings
        for currently unimplemented Obj-C features (main missing chunks are
        property references, Obj-C exception handling, and the for ... in
        syntax).
      
      llvm-svn: 55234
      c8317a44
    • Daniel Dunbar's avatar
      NeXT: Fix message sends which return structures. · 97ff50dd
      Daniel Dunbar authored
       - Simplify the sending code a bit.
      
      llvm-svn: 55232
      97ff50dd
    • Daniel Dunbar's avatar
      Trim CGObjCRuntime::GenerateMessageSend[Super] · 97db84ce
      Daniel Dunbar authored
       - Returns an RValue.
       - Reduced to only taking the CodeGenFunction, Expr, and Receiver.
       - Becomes responsible for emitting the arguments.
      
      Add CodeGenFunction::EmitCallExprExt
       - Takes optional extra arguments to insert at the head of the call.
       - This allows the Obj-C runtimes to call into this and isolates the
         argument and call instruction generation code to one place. Upshot
         is that we now pass structures (more) correctly.
      
      Also, fix one aspect of generating methods which take structure
      arguments (for NeXT). This probably needs to be merged with the
      SetFunctionAttributes code in CodeGenModule.cpp
      
      llvm-svn: 55223
      97db84ce
  25. Aug 16, 2008
  26. Aug 14, 2008
    • 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
Loading