summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
Commit message (Collapse)AuthorAge
...
* Rename CleanupScope -> DelayedCleanupBlock. No functionality change.Douglas Gregor2009-11-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89769 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle base-to-derived casts. Will land test case shortly.Anders Carlsson2009-11-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89678 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up EmitPointerToDataMemberBinaryExpr a bit.Eli Friedman2009-11-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89197 91177308-0d34-0410-b5e6-96231b3b80d8
* More const is always good.Anders Carlsson2009-11-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89033 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement most of dynamic_cast. WIP.Mike Stump2009-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88901 91177308-0d34-0410-b5e6-96231b3b80d8
* Some minor cleanup for EmitCastLValue.Eli Friedman2009-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88894 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement typeid for class types.Mike Stump2009-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88843 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle CK_BitCast in EmitCastLValue.Anders Carlsson2009-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88810 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle CXXDefaultArgExprs in EmitLValue. Fixes PR5484.Anders Carlsson2009-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88735 91177308-0d34-0410-b5e6-96231b3b80d8
* Explicitly note that pre-inc/dec lvalues are not supported yet, so that itEli Friedman2009-11-09
| | | | | | | | doesn't crash. (Such expressions are valid in C++, but not in C.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86513 91177308-0d34-0410-b5e6-96231b3b80d8
* Add clarifying parens.Daniel Dunbar2009-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86457 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle member expressions where the member declaration is actually a static ↵Anders Carlsson2009-11-07
| | | | | | variable. Fixes PR5392. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86414 91177308-0d34-0410-b5e6-96231b3b80d8
* More LValue related code cleanup.Anders Carlsson2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86413 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup, the code is much easier to follow now.Anders Carlsson2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86412 91177308-0d34-0410-b5e6-96231b3b80d8
* Reduce nesting, no functionality change.Anders Carlsson2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86411 91177308-0d34-0410-b5e6-96231b3b80d8
* We only need to call SetObjCNonGC for local variables. No functionality change.Anders Carlsson2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86410 91177308-0d34-0410-b5e6-96231b3b80d8
* Change EmitPointerToDataMemberLValue to take a FieldDecl. No intended ↵Anders Carlsson2009-11-07
| | | | | | functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86407 91177308-0d34-0410-b5e6-96231b3b80d8
* random tidyingChris Lattner2009-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85408 91177308-0d34-0410-b5e6-96231b3b80d8
* adjust for a pending LLVM change.Chris Lattner2009-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85373 91177308-0d34-0410-b5e6-96231b3b80d8
* Add Code gen support for '->*' operator which fellFariborz Jahanian2009-10-26
| | | | | | | through the crack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85160 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate QualifiedDeclRefExpr, which captured the notion of aDouglas Gregor2009-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84962 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit calls using the canonical prototype of the called function.John McCall2009-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84947 91177308-0d34-0410-b5e6-96231b3b80d8
* Complete code gen for '.*' binary expression forFariborz Jahanian2009-10-22
| | | | | | | | both scalar and aggregates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84910 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand on code gen. for pointer to data members so it worksFariborz Jahanian2009-10-21
| | | | | | | | for base classe members as well. Test case enhanced for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84780 91177308-0d34-0410-b5e6-96231b3b80d8
* Code gen for pointer-to-datamember - WIP.Fariborz Jahanian2009-10-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84771 91177308-0d34-0410-b5e6-96231b3b80d8
* Code-gen for CXXZeroInitValueExpr AST passedFariborz Jahanian2009-10-20
| | | | | | | as argument to a function call. Removes a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84694 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle emitting the assignment operator when the lhs is a reference. Fixes ↵Anders Carlsson2009-10-19
| | | | | | PR5227. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84518 91177308-0d34-0410-b5e6-96231b3b80d8
* Twinify CodeGenFunction::CreateTempAllocaDaniel Dunbar2009-10-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84456 91177308-0d34-0410-b5e6-96231b3b80d8
* When binding a reference to a temporary, it's important that other ↵Anders Carlsson2009-10-18
| | | | | | temporaries created as on the RHS are destroyed before emitting the dtor for the temporary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84451 91177308-0d34-0410-b5e6-96231b3b80d8
* HandleAnders Carlsson2009-10-15
| | | | | | | | | | | | | | 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84162 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify pointer creation with the new Type::getInt*Ptr methods.Benjamin Kramer2009-10-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83964 91177308-0d34-0410-b5e6-96231b3b80d8
* There is no need to attach debug location info with alloca instruction.Devang Patel2009-10-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83913 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support to attach debug info to an instruction.Devang Patel2009-10-06
| | | | | | | This is not yet enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83399 91177308-0d34-0410-b5e6-96231b3b80d8
* <rdar://problem/7263113> Make clang produce gcc's objc_assign_StrongCast as ↵Fariborz Jahanian2009-09-30
| | | | | | a result of type-cast of an ivar in assignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83150 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed another code gen bug in objc's new write-barrier API.Fariborz Jahanian2009-09-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82735 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch fixes a code gen. bug in generation of objc_assign_ivarFariborz Jahanian2009-09-24
| | | | | | | (objc GC's API). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82724 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-24
| | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82705 91177308-0d34-0410-b5e6-96231b3b80d8
* Change all the Type::getAsFoo() methods to specializations of Type::getAs().John McCall2009-09-21
| | | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82501 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed -fobjc-newgc-api option. clang now conforms toFariborz Jahanian2009-09-21
| | | | | | | | gcc-style write-barrier api only. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82493 91177308-0d34-0410-b5e6-96231b3b80d8
* Miscellanous fixes in generatation of objc gc's write-barriers.Fariborz Jahanian2009-09-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82472 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug in generation of the new write-barriers when Fariborz Jahanian2009-09-18
| | | | | | | | array syntax is used to derefernce and assign to ivar pointee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82183 91177308-0d34-0410-b5e6-96231b3b80d8
* patch for generating objc'2 objc_assign_ivar. WIP.Fariborz Jahanian2009-09-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82090 91177308-0d34-0410-b5e6-96231b3b80d8
* Starting patch to generate more specific API for objc'sFariborz Jahanian2009-09-16
| | | | | | | | | GC. Currently, new API will be generated under clang-cc's -fobjc-newgc-api flag which will eventually become the default. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82082 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed a superfluous check before settingFariborz Jahanian2009-09-16
| | | | | | | a flag (objc GC). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82052 91177308-0d34-0410-b5e6-96231b3b80d8
* Code generation of Conditional operators that are lvalues (but that aren't ↵Anders Carlsson2009-09-15
| | | | | | bitfields). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81867 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement CodeGenFunction::EmitCXXExprWithTemporariesLValue.Anders Carlsson2009-09-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81738 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use the PredefinedExpr string as the global variable name, these don'tDaniel Dunbar2009-09-12
| | | | | | make very nice symbols, just use the function name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81653 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle CK_DerivedToBase when emitting lvalue casts.Anders Carlsson2009-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81614 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for __block variables with alignment greater than __alignof(void *).Anders Carlsson2009-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81602 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unnecessary ASTContext parameter from FunctionDecl::isBuiltinIDDouglas Gregor2009-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81590 91177308-0d34-0410-b5e6-96231b3b80d8