summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCRuntime.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle mutation while enumerating correctly. Fix some bugs.Anders Carlsson2008-08-311-0/+4
| | | | llvm-svn: 55583
* Add Objective-C property setter support.Daniel Dunbar2008-08-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | - 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
* Refactor handling of calls:Daniel Dunbar2008-08-301-3/+7
| | | | | | | | | | | | | | | | - 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
* Fix Obj-C super sends inside class methods.Daniel Dunbar2008-08-251-4/+7
| | | | | | | - NeXT loads the super class at runtime; this required changing the runtime interface to pass more information down. llvm-svn: 55307
* Trim CGObjCRuntime::GenerateMessageSend[Super]Daniel Dunbar2008-08-231-14/+16
| | | | | | | | | | | | | | | | | | - 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
* Change ObjCRuntime::LookupClass -> GetClass, and now takes theDaniel Dunbar2008-08-161-10/+13
| | | | | | | | | | | | | ObjCInterfaceDecl. Change ObjCRuntime::GenerateMessageSendSuper to take the ObjCInterfaceDecl for the super class, instead of just its name. Change EmitObjCMessageExpr to make the right runtime calls for super sends in class methods (i.e. a super send with the class object as the receiver). llvm-svn: 54833
* Change CGObjCRuntime methods to take appropriate clang Decls.Daniel Dunbar2008-08-151-45/+33
| | | | | | | | | - 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
* Change ObjCRuntime GenerateProtocol[Ref] methods to takeDaniel Dunbar2008-08-131-8/+13
| | | | | | | | | | | 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
* Drop Sender from GenerateMessageSend*Daniel Dunbar2008-08-121-11/+0
| | | | | | | | | - Was unused and generated a unnecessary load of self Update NeXT runtime to get proper object & selector types from ASTContext. llvm-svn: 54667
* Protocol related tweaksDaniel Dunbar2008-08-121-3/+15
| | | | | | | - Implement type conversion of ObjCQualifiedIdType - Wire @protocol(...) to GenerateProtocolRef in ScalarExprEmitter llvm-svn: 54666
* Add ObjC constant string support for NeXT.Daniel Dunbar2008-08-121-2/+1
| | | | | | | | | | Changed CGObjCRuntime::GenerateConstantString interface to take std::string instead of char* and size. Change ObjC functions which call on GenerateConstantString to bitcast result to appropriate type. llvm-svn: 54659
* Update for IRBuilder template change (update LLVM!)Daniel Dunbar2008-08-111-4/+6
| | | | llvm-svn: 54642
* More #include cleaningDaniel Dunbar2008-08-111-0/+1
| | | | | | | | - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation llvm-svn: 54627
* Add dummy Mac Objective-C runtime interface.Daniel Dunbar2008-08-111-3/+4
| | | | | | - Not currently accessible and completely non-functional. llvm-svn: 54624
* update to make IRBuilder API change.Chris Lattner2008-08-081-8/+9
| | | | llvm-svn: 54548
* refactor more objc codegen interfaces to pass around selectors soChris Lattner2008-06-261-4/+4
| | | | | | we don't push strings into LLVM IR and then have to read them back out. llvm-svn: 52765
* remove the old getSelector implementation, which removes someChris Lattner2008-06-261-3/+0
| | | | | | calls to getStringValue llvm-svn: 52761
* avoid a lot of unneeded selector processing work by passing aroundChris Lattner2008-06-261-1/+1
| | | | | | selectors instead of Value*'s. llvm-svn: 52760
* use cheaper/simpler getselector call for @selector exprs.Chris Lattner2008-06-261-2/+3
| | | | llvm-svn: 52759
* start avoid doing lots of unneeded work handling selectorsChris Lattner2008-06-261-7/+9
| | | | llvm-svn: 52758
* improve indentation, avoid thrashing on maps and recalculating strings as much.Chris Lattner2008-06-261-2/+2
| | | | llvm-svn: 52757
* give CreateObjCRuntime a full CGM so it can get whatever state it needs, Chris Lattner2008-06-261-3/+2
| | | | | | | instead of passing in just a couple random things it currently happens to use. llvm-svn: 52756
* Include <string> header to allow compiling for MSVC.Argyrios Kyrtzidis2008-06-011-0/+1
| | | | llvm-svn: 51847
* Support for code generation of Objective-C top-level language constructs.Anton Korobeynikov2008-06-011-6/+64
| | | | | | Implemented by David Chisnall! llvm-svn: 51835
* update to follow mainline llvm API change.Chris Lattner2008-04-131-2/+2
| | | | llvm-svn: 49607
* Add initial support for objc codegen for methods, ivars, and theChris Lattner2008-03-301-3/+24
| | | | | | etoile runtime, patch by David Chisnall! llvm-svn: 48969
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+47
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
OpenPOWER on IntegriCloud