summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
Commit message (Collapse)AuthorAge
* Fix -Asserts warning.Daniel Dunbar2010-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92491 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor optimization; emit proper unsupported messages for a couple of cases.Eli Friedman2009-12-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92153 91177308-0d34-0410-b5e6-96231b3b80d8
* Some small improvements to dead code elimination; helps a bit onEli Friedman2009-12-25
| | | | | | | | LLVM-Code-Symbols test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92152 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the return value slot to all call exprs.Anders Carlsson2009-12-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92145 91177308-0d34-0410-b5e6-96231b3b80d8
* Fill in the return value slot in CGExprAgg::VisitCallExpr. This takes us ↵Anders Carlsson2009-12-24
| | | | | | halfway towards fixing PR5824. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92142 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass ReturnValueSlot to EmitCall. No functionality change yet.Anders Carlsson2009-12-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92138 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a ReturnValueSlot class. Change the argument order in EmitCall to match ↵Anders Carlsson2009-12-24
| | | | | | the other overload better. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92136 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify my previous patch.Chris Lattner2009-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92057 91177308-0d34-0410-b5e6-96231b3b80d8
* fix opencl extvector element extraction on rvalues. We previouslyChris Lattner2009-12-23
| | | | | | | error_unsupported on test10 and crashed on test11. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92056 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR5524: make reference binding in default argument work correctly.Eli Friedman2009-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91733 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement additional undefined checks for additional loads and stores. WIP.Mike Stump2009-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91498 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a code gen bug related to accessing a nowFariborz Jahanian2009-12-15
| | | | | | | | | | | non-existing 'isa' field of a non-existing struct type all related to legacy type definition for 'id' which we have dropped in clang in favor of a built-in type. (fixes radar 7470820). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91455 91177308-0d34-0410-b5e6-96231b3b80d8
* ShouldDestroyTemporaries? I don't think so.Anders Carlsson2009-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91450 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spacing.Mike Stump2009-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91386 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure we preserve line information for each trap forMike Stump2009-12-15
| | | | | | | -fcatch-undefined-behavior if we aren't optimizing. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91382 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch codegen for -fcatch-undefined-bahavior over to __builtin_trapMike Stump2009-12-15
| | | | | | | instead of abort to improve codesize and codegen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91374 91177308-0d34-0410-b5e6-96231b3b80d8
* We have to allow one to form an address for one past the end. WIP.Mike Stump2009-12-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91347 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplifiy.Mike Stump2009-12-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91324 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement runtime checks for undefined behavior. WIP.Mike Stump2009-12-12
| | | | | | | | | | | | | | This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91198 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the code for converting a member pointer to a bool so that it is usableEli Friedman2009-12-11
| | | | | | | | for logical not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91112 91177308-0d34-0410-b5e6-96231b3b80d8
* When extending the lifetime of a temporary, make sure to emit a branch to ↵Anders Carlsson2009-12-11
| | | | | | the cleanup exit block. This fixes a broken module error in LLVMCConfigurationEmitter.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91086 91177308-0d34-0410-b5e6-96231b3b80d8
* Code gen for ObjCIsaExpr AST used as lvalue.Fariborz Jahanian2009-12-09
| | | | | | | | (fixes radar 7457534). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90995 91177308-0d34-0410-b5e6-96231b3b80d8
* Add cleanups for exceptional edges. WIP.Mike Stump2009-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90940 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some direct checks of expressions which might be surrounded by parentheses.Eli Friedman2009-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90825 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the comma operator consistently call EnsureInsertPoint.Eli Friedman2009-12-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90799 91177308-0d34-0410-b5e6-96231b3b80d8
* use new helpers to simplify code.Chris Lattner2009-12-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90709 91177308-0d34-0410-b5e6-96231b3b80d8
* Make EmitStoreOfScalar generate a more sane representation of boolean stores.Eli Friedman2009-12-01
| | | | | | | | "Fixes" PR5645. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90272 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pass false (default) for isVolatile parameter to CreateLoad.Daniel Dunbar2009-11-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90098 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement IRGen for MemberExpr referring to static member function.Eli Friedman2009-11-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89938 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate CXXConditionDeclExpr with extreme prejudice.Douglas Gregor2009-11-25
| | | | | | | | | | | | | | | | | | All statements that involve conditions can now hold on to a separate condition declaration (a VarDecl), and will use a DeclRefExpr referring to that VarDecl for the condition expression. ForStmts now have such a VarDecl (I'd missed those in previous commits). Also, since this change reworks the Action interface for if/while/switch/for, use FullExprArg for the full expressions in those expressions, to ensure that we're emitting Note that we are (still) not generating the right cleanups for condition variables in for statements. That will be a follow-on commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89817 91177308-0d34-0410-b5e6-96231b3b80d8
* 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