History log of /llvm-project/clang/lib/CodeGen/CodeGenModule.cpp (Results 2076 – 2100 of 2157)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# fdf389b9 11-Nov-2008 Anton Korobeynikov <asl@math.spbu.ru>

Codegen support for fastcall & stdcall CC.
Patch by Ilya Okonsky!

llvm-svn: 59080


Revision tags: llvmorg-2.4.0
# b8c18fa5 04-Nov-2008 Chris Lattner <sabre@nondot.org>

LinkageSpecDecl is c++ specific, move it to DeclCXX

llvm-svn: 58704


# 5b06d9f2 28-Oct-2008 Daniel Dunbar <daniel@zuster.org>

Don't run the verifier as part of IRgen, this is now down (per module)
in the driver (this means we no longer run the verifier per function, however).

llvm-svn: 58307


# 03a3844c 28-Oct-2008 Daniel Dunbar <daniel@zuster.org>

Add attribute always_inline support.

llvm-svn: 58304


# dfcf599d 17-Oct-2008 Daniel Dunbar <daniel@zuster.org>

Add option argument to GetAddrOfConstantString to use for name of
(first) global holding the string.
- No functionality change.

llvm-svn: 57736


# b9fd902f 17-Oct-2008 Daniel Dunbar <daniel@zuster.org>

Change CGDebugInfo::setLocation to just ignore invalid locations. This
simplifies clients.

Also, add assert that RegionStack is empty when the CGDebugInfo is
destroyed.

llvm-svn: 57684


# 23fd462f 01-Oct-2008 Daniel Dunbar <daniel@zuster.org>

Add simple interface for protecting runtime functions from name
collisions.
- Provide CodeGenModule::CreateRuntimeFunction which guarantees that
the function it creates will have the provided nam

Add simple interface for protecting runtime functions from name
collisions.
- Provide CodeGenModule::CreateRuntimeFunction which guarantees that
the function it creates will have the provided name in the final
module. This allows the runtime to have its functions protected
from declarations of the same name in the source code.

- One could argue that this is a reason to abuse the llvm::Module
namespace for dealing with function redeclarations. However, that
approach seems conceptually flawed to me. This one also happens to
be somewhat more efficient.

No functionality change.

llvm-svn: 56899

show more ...


# aec553bf 27-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...).

llvm-svn: 56753


# 597e7087 26-Sep-2008 Devang Patel <dpatel@apple.com>

Now Attributes are divided in three groups
- return attributes - inreg, zext and sext
- parameter attributes
- function attributes - nounwind, readonly, readnone, noreturn

Return attributes use 0 as

Now Attributes are divided in three groups
- return attributes - inreg, zext and sext
- parameter attributes
- function attributes - nounwind, readonly, readnone, noreturn

Return attributes use 0 as the index.
Function attributes use ~0U as the index.

llvm-svn: 56705

show more ...


# 322300d1 25-Sep-2008 Devang Patel <dpatel@apple.com>

Large mechanical patch.

s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g

This sets the stage
- to implement function notes as function a

Large mechanical patch.

s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g

This sets the stage
- to implement function notes as function attributes and
- to distinguish between function attributes and return value attributes.

llvm-svn: 56623

show more ...


# 7a95ca31 10-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Move FunctionType conversion into CGCall.cpp:
- Added CodeGenTypes::GetFunctionType, taking a CGFunctionInfo.
- Updated Obj-C runtimes to use this instead of rolling the
llvm::FunctionType by ha

Move FunctionType conversion into CGCall.cpp:
- Added CodeGenTypes::GetFunctionType, taking a CGFunctionInfo.
- Updated Obj-C runtimes to use this instead of rolling the
llvm::FunctionType by hand.
- Killed CodeGenTypes::{ConvertReturnType, DecodeArgumentTypes}.

Add ABIArgInfo class to encapsulate ABI decision of how to lower types
to LLVM.
- Will move to target sometime soon.

llvm-svn: 56047

show more ...


# c68897d2 10-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Tweak CGCall functions again:
- Realized these functions will eventually need access to more data,
moved to CodeGenModule. Eventually they should probably live
together in some other helper cl

Tweak CGCall functions again:
- Realized these functions will eventually need access to more data,
moved to CodeGenModule. Eventually they should probably live
together in some other helper class.

llvm-svn: 56039

show more ...


# 76c8eb75 10-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Tweak CGCall functions:
- Move actual param attr list creation to
CodeGenFunction::ConstructParamAttrList.
- Make ReturnTypeUsesSret static.

llvm-svn: 56038


# 0beedc16 08-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Fix a number of issues w.r.t. emission of global for functions and
aliases.
- Attributes specific to a definition are only set when the
definition is seen.
- Alias generation is delayed until th

Fix a number of issues w.r.t. emission of global for functions and
aliases.
- Attributes specific to a definition are only set when the
definition is seen.
- Alias generation is delayed until the end of the module; necessary
since the alias may reference forward.
- Fixes: PR2743, <rdr://6140807&6094512>
- Improves: <rdr://6095112> (added XFAIL)

Also, print module on verification failures.

llvm-svn: 55966

show more ...


# 3d7c90b8 08-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Refactor parameter attribute handling:
- Add CGCall.h for dealing with ABI issues related to calls.
- Add CGFunctionInfo and CGCallInfo for capturing ABI relevant
information about functions

Refactor parameter attribute handling:
- Add CGCall.h for dealing with ABI issues related to calls.
- Add CGFunctionInfo and CGCallInfo for capturing ABI relevant
information about functions and calls.
- Isolate LLVM parameter attribute handling inside CGCall.cpp

llvm-svn: 55963

show more ...


# 2ffee610 05-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Set sext/zext on function result.
- <rdar://problem/6156739>

llvm-svn: 55815


# 449a339f 04-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Set function attributes (sext, zext, etc.) on Objective-C methods.

llvm-svn: 55812


# f2cf6d16 04-Sep-2008 Daniel Dunbar <daniel@zuster.org>

Avoid superfluous errors regarding variable-length arrays (casts).

llvm-svn: 55759


# f380a0de 01-Sep-2008 Nuno Lopes <nunoplopes@sapo.pt>

codegen constant data as such. add QualType::isConstant()

llvm-svn: 55603


# a799807d 29-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Downgrade a number of FIXME asserts to ErrorUnsupported.
- Notably VLAs

llvm-svn: 55544


# 89654eef 26-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Objective-C @synthesize support.
- Only supports simple assignment and atomic semantics are ignored.
- Not quite usable yet because the methods do not actually get added
to the class metadata.

Objective-C @synthesize support.
- Only supports simple assignment and atomic semantics are ignored.
- Not quite usable yet because the methods do not actually get added
to the class metadata.
- Added ObjCPropertyDecl::getSetterKind (one of Assign, Copy, Retain).
- Rearrange CodeGenFunction so synthesis can reuse function prolog /
epilog code.

llvm-svn: 55365

show more ...


# eb998105 25-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Use DenseMap on IdentifierInfo instead of StringMap.

llvm-svn: 55303


# d644ad61 23-Aug-2008 Daniel Dunbar <daniel@zuster.org>

NeXT: Clean up constant CFString handling.
- Use CodeGenModule::GetAddrOfConstantCFString

Some tweaks of CodeGenModule::GetAddrOfConstantCFString

llvm-svn: 55243


# a94ecd2a 16-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Add NeXT runtime support for generating methods.

Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
ImplicitParamDecl.

Drop hasAggregateLLVMType from CodeGenModule.cpp (use v

Add NeXT runtime support for generating methods.

Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
ImplicitParamDecl.

Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in
CodeGenFunction).

Change the Objective-C method generation to use EmitParmDecl for
implicit parameters.

llvm-svn: 54838

show more ...


# a7c8cf62 16-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Change WarnUnsupported to ErrorUnsupported (in name and in practice).
- We are beyond the point where this shows up often and when it does
generating miscompiled files is bad.

llvm-svn: 54836


1...<<81828384858687