summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGBlocks.cpp
Commit message (Collapse)AuthorAge
...
* Reflow some comments.Mike Stump2009-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71937 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rdar://6880259 - invalid function name in block call ↵Chris Lattner2009-05-13
| | | | | | | | | (__NSConcreteGlobalBlock2) by using the appropriate CGM interface instead of directly creating a global. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71617 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assert when we think we need copy/dispose, but don't need them.Mike Stump2009-05-01
| | | | | | | Radar 6838889 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70525 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a problem producing debug info with global blocks.Chris Lattner2009-04-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69875 91177308-0d34-0410-b5e6-96231b3b80d8
* the logic for computing __func__ and friends is really broken:Chris Lattner2009-04-23
| | | | | | | | | | the type assigned by sema (and is visible with sizeof(__func__) for example) has nothing to do with what codegen ends up producing. We should eventually add a method on PredefinedExpr to handle this. In the meantime, just set up some framework and add some fixme's. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69872 91177308-0d34-0410-b5e6-96231b3b80d8
* Attributes on block functions were not being set.Daniel Dunbar2009-04-17
| | | | | | | | - <rdar://problem/6800351> clang not producing correct large struct return code for Blocks git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69337 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for copy/dispose for block literals. Radar 6791245Mike Stump2009-04-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69232 91177308-0d34-0410-b5e6-96231b3b80d8
* Set DebugInfo at the beginning of GenerateBlockFunction().Devang Patel2009-04-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69228 91177308-0d34-0410-b5e6-96231b3b80d8
* Audit __private_extern__ handling.Daniel Dunbar2009-04-14
| | | | | | | | | | | | | | | - Exposed quite a few Sema issues and a CodeGen crash. - See FIXMEs in test case, and in SemaDecl.cpp (PR3983). I'm skeptical that __private_extern__ should actually be a storage class value. I think that __private_extern__ basically amounts to extern A __attribute__((visibility("hidden"))) and would be better off handled (a) as that, or (b) with an extra bit in the VarDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69020 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor refactoring of my last patch.Fariborz Jahanian2009-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68870 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a ir-gen crash for K&R style blocks.Fariborz Jahanian2009-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68865 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for nested blocks that use copy/dispose in the innerMike Stump2009-04-10
| | | | | | | blocks, so that the outer blocks use it as well. Radar 6762279 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68811 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new EmitCallArgs function. No indented functionality change.Anders Carlsson2009-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68652 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assume that a block always has a FunctionProtoType. Fixes rdar://6768379.Anders Carlsson2009-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68583 91177308-0d34-0410-b5e6-96231b3b80d8
* Shuffle some call code around. No functionality change.Anders Carlsson2009-04-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68557 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new getFunctionInfo that takes a BlockPointerType parameter, and get ↵Anders Carlsson2009-04-07
| | | | | | rid of getBlockFunctionType from CGBlocks.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68478 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix block comparisons. Radar 6732116.Mike Stump2009-04-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68171 91177308-0d34-0410-b5e6-96231b3b80d8
* Move where block-related variables are initialized so that block Eli Friedman2009-03-28
| | | | | | | | types don't get generated when blocks aren't used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67898 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove -f__block as codegen for __block variables should be solid.Mike Stump2009-03-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67697 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for block literals that bleed copy/dispose informationMike Stump2009-03-25
| | | | | | | from previous block literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67696 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for nested block literals so that we generateMike Stump2009-03-21
| | | | | | | copy_helpers and dispose_helpers as necessary for them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67453 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix codegen for support for super inside block literal expressions.Mike Stump2009-03-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67406 91177308-0d34-0410-b5e6-96231b3b80d8
* Do up codegen for function static data and externs in functions in blockMike Stump2009-03-13
| | | | | | | literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66984 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove FIXME, issue has been resolved.Mike Stump2009-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66931 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix <rdar://problem/6675489> BlockDecl should not use llvm::smallvector.Steve Naroff2009-03-13
| | | | | | | Also changed BlockDecl API to be more consistent (wrt FunctionDecl). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66904 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix uninitialized use in GetAddrOfGlobalBlock, reenable assert.Daniel Dunbar2009-03-12
| | | | | | | - Mike, please verify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66762 91177308-0d34-0410-b5e6-96231b3b80d8
* If someone could figure out this is necessary, that would be good.Mike Stump2009-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66341 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo, need parens.Mike Stump2009-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66337 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove last FIXME for block literal codegen that I know about and turnMike Stump2009-03-07
| | | | | | | | | on all the new code by default. There is still plenty of testing to do and issues I'm sure need resolving. Let me know if you find anything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66323 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some FIXMEs for block literals that should be close to working.Mike Stump2009-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66322 91177308-0d34-0410-b5e6-96231b3b80d8
* codegen support for dispose helpers for block literals.Mike Stump2009-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66320 91177308-0d34-0410-b5e6-96231b3b80d8
* Codegen support for copy helpers for block literals.Mike Stump2009-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66319 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the type of the block literal around to make required temporal ordering ↵Mike Stump2009-03-06
| | | | | | of code clearer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66284 91177308-0d34-0410-b5e6-96231b3b80d8
* Complete __Block_byref_id_object_copy cogegen for block literals.Mike Stump2009-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66257 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish off __Block_byref_id_object_dispose codegen for block literals.Mike Stump2009-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66247 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extra arg.Mike Stump2009-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66243 91177308-0d34-0410-b5e6-96231b3b80d8
* More codegen support for the copy/dispose helpers for block literals.Mike Stump2009-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66241 91177308-0d34-0410-b5e6-96231b3b80d8
* Framework for codegen for copy/dispose helpers.Mike Stump2009-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66231 91177308-0d34-0410-b5e6-96231b3b80d8
* prep work for copy/destroy helpers for block literals.Mike Stump2009-03-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66159 91177308-0d34-0410-b5e6-96231b3b80d8
* Add codegen support for __block variables to call _Block_object_dispose as ↵Mike Stump2009-03-05
| | | | | | necessary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66117 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup __block codegen in nested block literals.Mike Stump2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66091 91177308-0d34-0410-b5e6-96231b3b80d8
* Move some of the CodeGenFunction blocks code up and out. NoMike Stump2009-03-04
| | | | | | | functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66048 91177308-0d34-0410-b5e6-96231b3b80d8
* Move more of the blocks code up and out.Mike Stump2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66046 91177308-0d34-0410-b5e6-96231b3b80d8
* Move more of blocks codegen out of CodeGenModule and into theMike Stump2009-03-04
| | | | | | | | | | BlockModule. No functionality change. This should help people that don't want to know anything about blocks not be confused by the overloaded use of the term block or nor want to see all the blocks goop. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66042 91177308-0d34-0410-b5e6-96231b3b80d8
* Add __block codegen testcase. We introduce a temporary flag to enableMike Stump2009-03-04
| | | | | | | | codegen, until such time as codegen is complete enough to turn on with -fblocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66031 91177308-0d34-0410-b5e6-96231b3b80d8
* Improved ABI compliance for __block variables. No testcases yet as weMike Stump2009-03-04
| | | | | | | | still give an unsupported error for them due to the fact this is a work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66007 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid crash when child iterator gives null result.Daniel Dunbar2009-03-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65812 91177308-0d34-0410-b5e6-96231b3b80d8
* Push checking down, also, give the user a hit as to which part of theMike Stump2009-03-02
| | | | | | | | block literal is causing the problem, instead of the vague reference to the entire block literal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65798 91177308-0d34-0410-b5e6-96231b3b80d8
* Add BLOCK_HAS_DESCRIPTOR to global blocks.Anders Carlsson2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65788 91177308-0d34-0410-b5e6-96231b3b80d8
* Be sure to mark blocks with no imports as being global.Mike Stump2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65784 91177308-0d34-0410-b5e6-96231b3b80d8