summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
Commit message (Collapse)AuthorAge
...
* Support member reference on ?: of struct type.Daniel Dunbar2009-03-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67603 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
* More super dot-syntax property implementationFariborz Jahanian2009-03-20
| | | | | | | | when there is actually a property declaration used in the dot-syntax. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67391 91177308-0d34-0410-b5e6-96231b3b80d8
* add codegen support for casting an element to a union.Chris Lattner2009-03-18
| | | | | | | | There are some more complex cases (_Complex and structs) that I'm still working on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67218 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
* 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
* 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
* Move more blocks CodeGenFunction code up and out.Mike Stump2009-03-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66049 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 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
* Start the migration of more of the blocks code out of sight for mostMike Stump2009-03-04
| | | | | | | people. De-duplicates BLOCK_NEEDS_FREE and friends. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66034 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
* 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
* Add Type::hasPointerRepresentation predicate.Daniel Dunbar2009-02-26
| | | | | | | | | | - For types whose native representation is a pointer. - Use to replace ExprConstant.cpp:HasPointerEvalType, CodeGenFunction::isObjCPointerType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65569 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
* Fold GeneraticStaticBlockVarDecl into callers.Daniel Dunbar2009-02-25
| | | | | | | - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65470 91177308-0d34-0410-b5e6-96231b3b80d8
* Pull COdeGenFunction::CreateStaticBlockVarDecl (just for creating theDaniel Dunbar2009-02-25
| | | | | | | | | global variable) out of GenerateStaticBlockVarDecl. - No intended functionality change. - Prep for some mild cleanups and PR3662. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65466 91177308-0d34-0410-b5e6-96231b3b80d8
* first wave of fixes for @encode sema support. This is part of PR3648.Chris Lattner2009-02-24
| | | | | | | | The big difference here is that (like string literal) @encode has array type, not pointer type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65391 91177308-0d34-0410-b5e6-96231b3b80d8
* Prevent accidental copying of CodeGenFunction and CodeGenModule.Anders Carlsson2009-02-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65372 91177308-0d34-0410-b5e6-96231b3b80d8
* Add low level support for generating invoke instead of calls.Daniel Dunbar2009-02-23
| | | | | | | - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65325 91177308-0d34-0410-b5e6-96231b3b80d8
* Copy some clenaups from Eli to code that I copied. :-)Mike Stump2009-02-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65286 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
* 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
* Set call attribute for direct calls (i.e. noreturn).Daniel Dunbar2009-02-20
| | | | | | | - Remove an unused variant of EmitCallExpr overload. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65130 91177308-0d34-0410-b5e6-96231b3b80d8
* Deox and Capitolize.Mike Stump2009-02-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65093 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup spacing a little.Mike Stump2009-02-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64768 91177308-0d34-0410-b5e6-96231b3b80d8
* Support IRgen of sqrt -> llvm.sqrt, pow -> llvm.pow.Daniel Dunbar2009-02-16
| | | | | | | | | | | | | | | | | - Define pow[lf]?, sqrt[lf]? as builtins. - Add -fmath-errno option which binds to LangOptions.MathErrno - Add new builtin flag Builtin::Context::isConstWithoutErrno for functions which can be marked as const if errno isn't respected for math functions. Sema automatically marks these functions as const when they are defined, if MathErrno=0. - IRgen uses const attribute on sqrt and pow library functions to decide if it can use the llvm intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64689 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
* 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
* Add CodeGen support for the nodebug attribute.Anders Carlsson2009-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64445 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
* Support IRgen of va_arg of structure as l-value.Daniel Dunbar2009-02-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64325 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the last remnants of the Obj-C EH stack code.Anders Carlsson2009-02-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64205 91177308-0d34-0410-b5e6-96231b3b80d8
* Start removing the old Obj-C EH stack now that the cleanup stack is used ↵Anders Carlsson2009-02-10
| | | | | | instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64203 91177308-0d34-0410-b5e6-96231b3b80d8
* Add util Emit{LoadOf,StoreTo}Scalar methods to encapsulate conversionDaniel Dunbar2009-02-10
| | | | | | | | from LLVM memory type to/from LLVM temporary type. - No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64191 91177308-0d34-0410-b5e6-96231b3b80d8
* Add DidCallStackSave variable to CodeGenFunction.Anders Carlsson2009-02-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64156 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some more documentation. Also reflowed comments to 80 col.Mike Stump2009-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64105 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a simplified EmitJumpThroughFinally and use it in CGObjC in preparation ↵Anders Carlsson2009-02-08
| | | | | | of making it use the cleanup stack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64098 91177308-0d34-0410-b5e6-96231b3b80d8
* Wire up break and continue processing to the new stack depth adjuster.Mike Stump2009-02-08
| | | | | | | | | If people could beat on it and let me know if there are any new semantics required by newer language standards or DRs or any little details I goofed on, I'd be happy to fix any issues found. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64079 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup stack work, PopCleanupBlock now returns a struct with the ↵Anders Carlsson2009-02-08
| | | | | | switch block and end block. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64072 91177308-0d34-0410-b5e6-96231b3b80d8
* Split some functions upAnders Carlsson2009-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64069 91177308-0d34-0410-b5e6-96231b3b80d8
* CleanupScope needs to push the cleanup block in its destructorAnders Carlsson2009-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64068 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup stack work.Anders Carlsson2009-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64059 91177308-0d34-0410-b5e6-96231b3b80d8
* When emitting blocks, keep track of which cleanup scope they have. Minor ↵Anders Carlsson2009-02-08
| | | | | | fixes and cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64053 91177308-0d34-0410-b5e6-96231b3b80d8