summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Change EmitPointerToDataMemberLValue to take a FieldDecl. No intended ↵Anders Carlsson2009-11-071-4/+3
| | | | | | functionality change. llvm-svn: 86407
* random tidyingChris Lattner2009-10-281-101/+104
| | | | llvm-svn: 85408
* adjust for a pending LLVM change.Chris Lattner2009-10-281-3/+3
| | | | llvm-svn: 85373
* Add Code gen support for '->*' operator which fellFariborz Jahanian2009-10-261-1/+4
| | | | | | through the crack. llvm-svn: 85160
* Eliminate QualifiedDeclRefExpr, which captured the notion of aDouglas Gregor2009-10-231-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | qualified reference to a declaration that is not a non-static data member or non-static member function, e.g., namespace N { int i; } int j = N::i; Instead, extend DeclRefExpr to optionally store the qualifier. Most clients won't see or care about the difference (since QualifierDeclRefExpr inherited DeclRefExpr). However, this reduces the number of top-level expression types that clients need to cope with, brings the implementation of DeclRefExpr into line with MemberExpr, and simplifies and unifies our handling of declaration references. Extended DeclRefExpr to (optionally) store explicitly-specified template arguments. This occurs when naming a declaration via a template-id (which will be stored in a TemplateIdRefExpr) that, following template argument deduction and (possibly) overload resolution, is replaced with a DeclRefExpr that refers to a template specialization but maintains the template arguments as written. llvm-svn: 84962
* Emit calls using the canonical prototype of the called function.John McCall2009-10-231-3/+5
| | | | llvm-svn: 84947
* Complete code gen for '.*' binary expression forFariborz Jahanian2009-10-221-0/+25
| | | | | | both scalar and aggregates. llvm-svn: 84910
* Expand on code gen. for pointer to data members so it worksFariborz Jahanian2009-10-211-3/+4
| | | | | | for base classe members as well. Test case enhanced for this. llvm-svn: 84780
* Code gen for pointer-to-datamember - WIP.Fariborz Jahanian2009-10-211-0/+21
| | | | llvm-svn: 84771
* Code-gen for CXXZeroInitValueExpr AST passedFariborz Jahanian2009-10-201-0/+14
| | | | | | as argument to a function call. Removes a FIXME. llvm-svn: 84694
* Handle emitting the assignment operator when the lhs is a reference. Fixes ↵Anders Carlsson2009-10-191-0/+10
| | | | | | PR5227. llvm-svn: 84518
* Twinify CodeGenFunction::CreateTempAllocaDaniel Dunbar2009-10-191-2/+2
| | | | llvm-svn: 84456
* When binding a reference to a temporary, it's important that other ↵Anders Carlsson2009-10-181-16/+22
| | | | | | temporaries created as on the RHS are destroyed before emitting the dtor for the temporary. llvm-svn: 84451
* HandleAnders Carlsson2009-10-151-3/+45
| | | | | | | | | | | | | struct A { }; struct B : A { }; void f() { const A& a = B(); } correctly. (This now does the offset conversion if necessary and calls the destructor when a goes out of scope). llvm-svn: 84162
* Simplify pointer creation with the new Type::getInt*Ptr methods.Benjamin Kramer2009-10-131-2/+1
| | | | llvm-svn: 83964
* There is no need to attach debug location info with alloca instruction.Devang Patel2009-10-121-5/+1
| | | | llvm-svn: 83913
* Add support to attach debug info to an instruction.Devang Patel2009-10-061-1/+5
| | | | | | This is not yet enabled. llvm-svn: 83399
* <rdar://problem/7263113> Make clang produce gcc's objc_assign_StrongCast as ↵Fariborz Jahanian2009-09-301-1/+11
| | | | | | a result of type-cast of an ivar in assignment. llvm-svn: 83150
* Fixed another code gen bug in objc's new write-barrier API.Fariborz Jahanian2009-09-251-1/+2
| | | | llvm-svn: 82735
* Patch fixes a code gen. bug in generation of objc_assign_ivarFariborz Jahanian2009-09-241-2/+13
| | | | | | (objc GC's API). llvm-svn: 82724
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-241-99/+59
| | | | | | | | Type hierarchy. Demote 'volatile' to extended-qualifier status. Audit our use of qualifiers and fix a few places that weren't dealing with qualifiers quite right; many more remain. llvm-svn: 82705
* Change all the Type::getAsFoo() methods to specializations of Type::getAs().John McCall2009-09-211-6/+6
| | | | | | | | | | | Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced. The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place. llvm-svn: 82501
* Removed -fobjc-newgc-api option. clang now conforms toFariborz Jahanian2009-09-211-2/+1
| | | | | | gcc-style write-barrier api only. llvm-svn: 82493
* Miscellanous fixes in generatation of objc gc's write-barriers.Fariborz Jahanian2009-09-211-17/+13
| | | | llvm-svn: 82472
* Fixed a bug in generation of the new write-barriers when Fariborz Jahanian2009-09-181-1/+11
| | | | | | array syntax is used to derefernce and assign to ivar pointee. llvm-svn: 82183
* patch for generating objc'2 objc_assign_ivar. WIP.Fariborz Jahanian2009-09-161-14/+9
| | | | llvm-svn: 82090
* Starting patch to generate more specific API for objc'sFariborz Jahanian2009-09-161-2/+37
| | | | | | | | GC. Currently, new API will be generated under clang-cc's -fobjc-newgc-api flag which will eventually become the default. WIP. llvm-svn: 82082
* Removed a superfluous check before settingFariborz Jahanian2009-09-161-2/+1
| | | | | | a flag (objc GC). llvm-svn: 82052
* Code generation of Conditional operators that are lvalues (but that aren't ↵Anders Carlsson2009-09-151-5/+38
| | | | | | bitfields). llvm-svn: 81867
* Implement CodeGenFunction::EmitCXXExprWithTemporariesLValue.Anders Carlsson2009-09-141-0/+2
| | | | llvm-svn: 81738
* Don't use the PredefinedExpr string as the global variable name, these don'tDaniel Dunbar2009-09-121-1/+5
| | | | | | make very nice symbols, just use the function name. llvm-svn: 81653
* Handle CK_DerivedToBase when emitting lvalue casts.Anders Carlsson2009-09-121-21/+42
| | | | llvm-svn: 81614
* Add support for __block variables with alignment greater than __alignof(void *).Anders Carlsson2009-09-121-7/+2
| | | | llvm-svn: 81602
* Remove unnecessary ASTContext parameter from FunctionDecl::isBuiltinIDDouglas Gregor2009-09-121-1/+1
| | | | llvm-svn: 81590
* Set the calling convention based on the CGFunctionInfo.Daniel Dunbar2009-09-111-1/+8
| | | | llvm-svn: 81582
* GlobalDecl doesn't have an explicit constructor anymore.Anders Carlsson2009-09-101-1/+1
| | | | llvm-svn: 81481
* If a cast expression needs either a conversion function or a constructor to ↵Anders Carlsson2009-09-091-11/+3
| | | | | | be called, generate implicit child expressions that call them. llvm-svn: 81383
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+2
| | | | llvm-svn: 81346
* Reflow comments and some minor whitespace fixups.Mike Stump2009-09-091-182/+179
| | | | llvm-svn: 81337
* Vastly improve PredefinedExpr output, both in Sema and CodeGen. Patch by Sam ↵Anders Carlsson2009-09-081-14/+3
| | | | | | Weinig! llvm-svn: 81237
* Implement AST, semantics, and CodeGen for C++ pseudo-destructorDouglas Gregor2009-09-041-0/+10
| | | | | | | | | | | | | expressions, e.g., p->~T() when p is a pointer to a scalar type. We don't currently diagnose errors when pseudo-destructor expressions are used in any way other than by forming a call. llvm-svn: 81009
* Handle member expressions that return references correctly.Anders Carlsson2009-09-011-0/+1
| | | | llvm-svn: 80723
* Fixed a property getter ir-gen crash.Fariborz Jahanian2009-09-011-2/+3
| | | | llvm-svn: 80681
* Eliminate CXXAdornedMemberExpr entirely. Instead, optionally allocateDouglas Gregor2009-08-311-1/+0
| | | | | | | | space within the MemberExpr for the nested-name-specifier and its source range. We'll do the same thing with explicitly-specified template arguments, assuming I don't flip-flop again. llvm-svn: 80642
* Rename CXXQualifiedMemberExpr -> CXXAdornedMemberExpr, since we willDouglas Gregor2009-08-311-1/+1
| | | | | | | also be adding explicit template arguments as an additional "adornment". No functionality change. llvm-svn: 80628
* Patch for code gen. for c-style cast which ends inFariborz Jahanian2009-08-291-6/+7
| | | | | | using class's conversion functions [12.3.2-p2] llvm-svn: 80433
* ir-gen related patch for type conversionFariborz Jahanian2009-08-281-0/+5
| | | | | | with class type conversion methods. WIP. llvm-svn: 80365
* Clean up CodeGenFunction::EmitCastLValue to use the cast kind. Error Eli Friedman2009-08-271-3/+13
| | | | | | out for user-defined conversions instead of crashing. llvm-svn: 80282
* When a member reference expression includes a qualifier on the memberDouglas Gregor2009-08-261-1/+3
| | | | | | | | | | | | | | | | | name, e.g., x->Base::f() retain the qualifier (and its source range information) in a new subclass of MemberExpr called CXXQualifiedMemberExpr. Provide construction, transformation, profiling, printing, etc., for this new expression type. When a virtual function is called via a qualified name, don't emit a virtual call. Instead, call that function directly. Mike, could you add a CodeGen test for this, too? llvm-svn: 80167
* Using "ObjCImplicitSetterGetterRefExpr" instead of ↵Fariborz Jahanian2009-08-201-4/+4
| | | | | | | | "ObjCImplctSetterGetterRefExpr". A field rename and more comments. llvm-svn: 79537
OpenPOWER on IntegriCloud