summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGBlocks.cpp
Commit message (Collapse)AuthorAge
...
* Remove debugging code.Anders Carlsson2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65753 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit errors about unsupported blocks features.Anders Carlsson2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65751 91177308-0d34-0410-b5e6-96231b3b80d8
* Do some blocks cleanup and simplification. Fix a crash, and add a test case.Anders Carlsson2009-03-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65746 91177308-0d34-0410-b5e6-96231b3b80d8
* improve compatibility with the VC++'08 C++ compiler. Patch byChris Lattner2009-02-28
| | | | | | | Niklas Larsson! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65706 91177308-0d34-0410-b5e6-96231b3b80d8
* First cut CodeGen support for __block variables.Mike Stump2009-02-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65688 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a new TypeNodes.def file that enumerates all of the types,Douglas Gregor2009-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | giving them rough classifications (normal types, never-canonical types, always-dependent types, abstract type representations) and making it far easier to make sure that we've hit all of the cases when decoding types. Switched some switch() statements on the type class over to using this mechanism, and filtering out those things we don't care about. For example, CodeGen should never see always-dependent or non-canonical types, while debug info generation should never see always-dependent types. More switch() statements on the type class need to be moved over to using this approach, so that we'll get warnings when we add a new type then fail to account for it somewhere in the compiler. As part of this, some types have been renamed: TypeOfExpr -> TypeOfExprType FunctionTypeProto -> FunctionProtoType FunctionTypeNoProto -> FunctionNoProtoType There shouldn't be any functionality change... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65591 91177308-0d34-0410-b5e6-96231b3b80d8
* CodeGen support for copied BlockDeclRefExprs.Mike Stump2009-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65487 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the CodeGenModule object to GenerateBlockFunction, instead of *this ↵Anders Carlsson2009-02-24
| | | | | | | | | (which will call the copy constructor). Also, since we're creating a new CodeGenFunction object for each block function, we don't need to clear the BreakContinueStack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65371 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure that we can't break or continue out of a block.Mike Stump2009-02-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65370 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanp code with some recent suggestions.Mike Stump2009-02-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65285 91177308-0d34-0410-b5e6-96231b3b80d8
* The blocks ABI is wrong, add a FIXME.Mike Stump2009-02-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65243 91177308-0d34-0410-b5e6-96231b3b80d8
* Add CodeGen support for the helper for BlockDeclRefExprs. The easierMike Stump2009-02-21
| | | | | | | stuff is mostly done. Move BlockHasCopyDispose up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65242 91177308-0d34-0410-b5e6-96231b3b80d8
* More codegen for blocks. The type of block literals should be better.Mike Stump2009-02-19
| | | | | | | The size calculation is improved. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64994 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid getNameAsCString when the decl doesn't have a name.Mike Stump2009-02-17
| | | | | | | Build of the parm list with the iterator, not end(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64851 91177308-0d34-0410-b5e6-96231b3b80d8
* Be sure to initialize Name.Mike Stump2009-02-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64769 91177308-0d34-0410-b5e6-96231b3b80d8
* Use getNameAsCString instead of getNameAsString and reflow the type.Mike Stump2009-02-14
| | | | | | | Thanks Anders. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64571 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate the helper function for blocks. Now basic codegen isMike Stump2009-02-14
| | | | | | starting to work for blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64570 91177308-0d34-0410-b5e6-96231b3b80d8
* Let the backend unique these.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64486 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64482 91177308-0d34-0410-b5e6-96231b3b80d8
* Move DescriptorUniqueCount into CGM.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64481 91177308-0d34-0410-b5e6-96231b3b80d8
* Move NSConcreteStackBlock into CGM.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64479 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate an unused variableDouglas Gregor2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64476 91177308-0d34-0410-b5e6-96231b3b80d8
* Move GlobalUniqueCount up into CGM.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64473 91177308-0d34-0410-b5e6-96231b3b80d8
* Condense NSConcreteGlobalBlock handling.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64461 91177308-0d34-0410-b5e6-96231b3b80d8
* Calculate size correctly.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64459 91177308-0d34-0410-b5e6-96231b3b80d8
* Size should be unsigned.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64458 91177308-0d34-0410-b5e6-96231b3b80d8
* Condense all the blocks code into CGBlocks.cpp.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64457 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup types, the runtime uses int, not int32.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64456 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup spacing a tad.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64454 91177308-0d34-0410-b5e6-96231b3b80d8
* Move GenericBlockLiteralType into CGM.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64452 91177308-0d34-0410-b5e6-96231b3b80d8
* Move BlockDescriptorType into CGM.Mike Stump2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64451 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a very basic implemenation of global blocks. This needs to be cleaned up.Anders Carlsson2009-02-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64387 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for generating block call expressions.Anders Carlsson2009-02-12
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64346 91177308-0d34-0410-b5e6-96231b3b80d8