|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | ivars.
llvm-svn: 61043 | 
| | 
| 
| 
| | llvm-svn: 60924 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 59886 | 
| | 
| 
| 
| 
| 
| | themselves for gc API generation purposes.
llvm-svn: 59828 | 
| | 
| 
| 
| 
| 
| | write-barriers.
llvm-svn: 59748 | 
| | 
| 
| 
| 
| 
| | to static function. Added comments.
llvm-svn: 59738 | 
| | 
| 
| 
| 
| 
| 
| | diagnostics on use of __weak attribute on fields,
Early support for read/write barriers for objc fields.
llvm-svn: 59682 | 
| | 
| 
| 
| 
| 
| | objects as __strong when attribute unspecified.
llvm-svn: 59654 | 
| | 
| 
| 
| | llvm-svn: 59645 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | value).
 - Use extra argument to EmitStoreThroughLValue to provide place to
   write update bit-field value if caller requires it.
 - This fixes several FIXMEs.
llvm-svn: 59615 | 
| | 
| 
| 
| 
| 
| | Also, took care of Daniel's commments.
llvm-svn: 59575 | 
| | 
| 
| 
| 
| 
| | __weak objects.
llvm-svn: 59560 | 
| | 
| 
| 
| | llvm-svn: 59553 | 
| | 
| 
| 
| | llvm-svn: 59543 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| | - Logic such as this quite possibly should be optional builder
   behavior.
llvm-svn: 59213 | 
| | 
| 
| 
| 
| 
| | 'super'. Remove ObjCThis from PredefinedExpr
llvm-svn: 58698 | 
| | 
| 
| 
| | llvm-svn: 57745 | 
| | 
| 
| 
| 
| 
| 
| | - Shouldn't assume predefined expr is a function printing one.
 - Uses CGM functionality to cache function names per module.
llvm-svn: 57737 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| | which represents a 'condition' declaration, e.g: "if (int x=0) {...}".
llvm-svn: 56045 | 
| | 
| 
| 
| 
| 
| | - Factor out EmitFunction{Pro,Epi}log
llvm-svn: 56031 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| | e.g. "(a = b).somefield".
llvm-svn: 55758 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| | Objective-C property references.
 - This handles property references "more correctly" but setters still
   don't work.
llvm-svn: 55534 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Add CodeGenFunction::EmitUnsupportedLValue 
 - Gives error and returns undef value.
Swap some asserts() over to using EmitUnsupportedLValue
 - Rumor has it users (and even some developers) prefer carat
   diagnostics to backtraces.
 - Works better in Release-Asserts to boot.
llvm-svn: 55328 | 
| | 
| 
| 
| | llvm-svn: 55298 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | - Simplify the sending code a bit.
llvm-svn: 55232 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| | - We are beyond the point where this shows up often and when it does
   generating miscompiled files is bad.
llvm-svn: 54836 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | ObjCProtocolDecl directly.
Implement CodeGen support for forward protocol decls (no-ops are so
    nice to implement).
Also moved CGObjCRuntime.h out of CodeGenModule.h
llvm-svn: 54709 | 
| | 
| 
| 
| 
| 
| 
| | - Changed CodeGenModule::getObjCRuntime to return reference.
 - Added CodeGenModule::hasObjCRuntime predicate.
llvm-svn: 54645 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| | - Remove internal uses of AST.h
llvm-svn: 54628 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | temporarily, I assumed GetAddrForConstantString literal was being
  used consistently but it doesn't look like it is.
Factored out a CodeGenModule::getStringForStringLiteral which handles
  extracting a std::string for the bytes of a StringLiteral, padded to
  match the type.
Update EmitLValue to use getStringForStringLiteral, this was
  previously not padding strings correctly. Good thing we only emit
  strings in 4 different places!
llvm-svn: 54621 | 
| | 
| 
| 
| | llvm-svn: 54605 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | move getAsArrayType into ASTContext instead of being a method on type.
This is required because getAsArrayType(const AT), where AT is a typedef
for "int[10]" needs to return ArrayType(const int, 10).
Fixing this greatly simplifies getArrayDecayedType, which is a good sign.
llvm-svn: 54317 | 
| | 
| 
| 
| 
| 
| | http://llvm.org/viewvc/llvm-project?view=rev&revision=54107
llvm-svn: 54242 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - No (intended) functionality change.
 - Primary purpose is to clearly separate (lazy) construction of
   globals that are a forward declaration or tentative definition from
   those that are the final definition.
 - Lazy construction is now encapsulated in
   GetAddrOf{Function,GlobalVar} while final definitions are
   constructed in EmitGlobal{Function,Var}Definition.
 
 - External interface for dealing with globals is now limited to
   EmitGlobal and GetAddrOf{Function,GlobalVar}.
 - Also updated helper functions dealing with statics, annotations,
   and ctors to be private.
llvm-svn: 54179 | 
| | 
| 
| 
| | llvm-svn: 54107 | 
| | 
| 
| 
| 
| 
| | ASTContext::getCanonicalType instead (PR2189)
llvm-svn: 54105 | 
| | 
| 
| 
| 
| 
| | Patch by David Chisnall!
llvm-svn: 52422 |