History log of /llvm-project-15.0.7/clang/lib/CodeGen/CodeGenModule.cpp (Results 1401 – 1425 of 1864)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 5c740f15 30-Jun-2010 Chris Lattner <[email protected]>

Reapply:
r107173, "fix PR7519: after thrashing around and remembering how all this stuff"
r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead"

This includes a fix to m

Reapply:
r107173, "fix PR7519: after thrashing around and remembering how all this stuff"
r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead"

This includes a fix to make ConvertTypeForMem handle the "recursive" case, and call
it as such when lowering function types which have an indirect result.

llvm-svn: 107310

show more ...


# 749b8ed5 30-Jun-2010 Chris Lattner <[email protected]>

reduce nesting.

llvm-svn: 107292


# 9b5528d2 24-Jun-2010 Fariborz Jahanian <[email protected]>

Patch to correctly mangle block helper functions
when block literal is declared inside a ctor/dtor.
Fixes radr 8096995.

llvm-svn: 106700


# ea836bc4 22-Jun-2010 Anders Carlsson <[email protected]>

Switch over to the new caching version of getMangledName.

llvm-svn: 106549


# 2e2f4d2e 22-Jun-2010 Anders Carlsson <[email protected]>

Add a new variant of getMangledName that caches the mangling for decls.

llvm-svn: 106547


# 5dd34744 21-Jun-2010 Douglas Gregor <[email protected]>

Instantiations subject to an explicit template instantiation
declaration have default visibility even under
-fvisibility=hidden. Fixes <rdar://problem/8109763>.

llvm-svn: 106440


# c96b2496 19-Jun-2010 Eli Friedman <[email protected]>

Fix for PR7415: refactor CodeGenModule::MayDeferGeneration and make it less
conservative for static variables in templated classes.

llvm-svn: 106385


# 8509824c 15-Jun-2010 Chandler Carruth <[email protected]>

Move CodeGenOptions.h *back* into Frontend. This should have been done when the
dependency edge was reversed such that CodeGen depends on Frontend.

llvm-svn: 106065


# 0832963a 15-Jun-2010 Douglas Gregor <[email protected]>

Implement -fvisibility-inlines-hidden. <rdar://problem/7819834>

llvm-svn: 106003


# 95a546ee 11-Jun-2010 Charles Davis <[email protected]>

Add an option to specify the target C++ ABI to the frontend. Use it to
select either the default Itanium ABI or the new, experimental Microsoft ABI.

llvm-svn: 105804


# 635186a8 09-Jun-2010 Anders Carlsson <[email protected]>

Get rid of getMangledCXXCtorName and getMangledCXXDtorName.

llvm-svn: 105673


# d4ce4e4b 09-Jun-2010 Anders Carlsson <[email protected]>

Get rid of an unnecessary getMangledName overload.

llvm-svn: 105671


# c2af939a 27-May-2010 John McCall <[email protected]>

When deciding whether a deferred declaration has already been emitted,
aliases count as definitions regardless of whether their target has been
emitted yet. Fixes PR 7142.

llvm-svn: 104796


# 4e786ddc 25-May-2010 Charles Davis <[email protected]>

IRgen: Add a stub class for generating ABI-specific C++ code.

This class only supports name mangling (which is apparently used during C/ObjC
codegen). For now only the Itanium C++ ABI is supported.

IRgen: Add a stub class for generating ABI-specific C++ code.

This class only supports name mangling (which is apparently used during C/ObjC
codegen). For now only the Itanium C++ ABI is supported. Patches to add a
second C++ ABI are forthcoming.

llvm-svn: 104630

show more ...


# 7cb0220e 25-May-2010 John McCall <[email protected]>

If a function definition has any sort of weak linkage, its static local
variables should have that linkage. Otherwise, its static local
variables should have internal linkage. To avoid computing th

If a function definition has any sort of weak linkage, its static local
variables should have that linkage. Otherwise, its static local
variables should have internal linkage. To avoid computing this excessively,
set a function's linkage before we emit code for it.

Previously we were assigning weak linkage to the static variables of
static inline functions in C++, with predictably terrible results. This
fixes that and also gives better linkage than 'weak' when merging is required.

llvm-svn: 104581

show more ...


# 500d9f82 13-May-2010 Douglas Gregor <[email protected]>

Disable the available_externally optimization for inline virtual
methods for which the key function is guaranteed to be in another
translation unit. Unfortunately, this guarantee isn't the case when

Disable the available_externally optimization for inline virtual
methods for which the key function is guaranteed to be in another
translation unit. Unfortunately, this guarantee isn't the case when
dealing with shared libraries that fail to export these virtual method
definitions.

I'm reopening PR6747 so we can consider this again at a later point in
time.

llvm-svn: 103741

show more ...


# 88d292cc 13-May-2010 Douglas Gregor <[email protected]>

Rework when and how vtables are emitted, by tracking where vtables are
"used" (e.g., we will refer to the vtable in the generated code) and
when they are defined (i.e., because we've seen the key fun

Rework when and how vtables are emitted, by tracking where vtables are
"used" (e.g., we will refer to the vtable in the generated code) and
when they are defined (i.e., because we've seen the key function
definition). Previously, we were effectively tracking "potential
definitions" rather than uses, so we were a bit too eager about emitting
vtables for classes without key functions.

The new scheme:
- For every use of a vtable, Sema calls MarkVTableUsed() to indicate
the use. For example, this occurs when calling a virtual member
function of the class, defining a constructor of that class type,
dynamic_cast'ing from that type to a derived class, casting
to/through a virtual base class, etc.
- For every definition of a vtable, Sema calls MarkVTableUsed() to
indicate the definition. This happens at the end of the translation
unit for classes whose key function has been defined (so we can
delay computation of the key function; see PR6564), and will also
occur with explicit template instantiation definitions.
- For every vtable defined/used, we mark all of the virtual member
functions of that vtable as defined/used, unless we know that the key
function is in another translation unit. This instantiates virtual
member functions when needed.
- At the end of the translation unit, Sema tells CodeGen (via the
ASTConsumer) which vtables must be defined (CodeGen will define
them) and which may be used (for which CodeGen will define the
vtables lazily).

From a language perspective, both the old and the new schemes are
permissible: we're allowed to instantiate virtual member functions
whenever we want per the standard. However, all other C++ compilers
were more lazy than we were, and our eagerness was both a performance
issue (we instantiated too much) and a portability problem (we broke
Boost test cases, which now pass).

Notes:
(1) There's a ton of churn in the tests, because the order in which
vtables get emitted to IR has changed. I've tried to isolate some of
the larger tests from these issues.
(2) Some diagnostics related to
implicitly-instantiated/implicitly-defined virtual member functions
have moved to the point of first use/definition. It's better this
way.
(3) I could use a review of the places where we MarkVTableUsed, to
see if I missed any place where the language effectively requires a
vtable.

Fixes PR7114 and PR6564.

llvm-svn: 103718

show more ...


# d8bb3aff 06-May-2010 Douglas Gregor <[email protected]>

Do not give implicitly-defined virtual members functions
available_externally linkage, since they may not have been given a
strong definition in another translation unit. Without this patch, the
foll

Do not give implicitly-defined virtual members functions
available_externally linkage, since they may not have been given a
strong definition in another translation unit. Without this patch, the
following test case fails to link with a GCC-compiled libstdc++:

#include <sstream>
int main() { std::basic_stringbuf<char> bs; }

Fixes the last problem with the Boost.IO library.

llvm-svn: 103208

show more ...


# d450f06e 05-May-2010 Douglas Gregor <[email protected]>

When we emit a non-constant initializer for a global variable of
reference type, make sure that the initializer we build is the
of the appropriate type for the *reference*, not for the thing that it

When we emit a non-constant initializer for a global variable of
reference type, make sure that the initializer we build is the
of the appropriate type for the *reference*, not for the thing that it
refers to. Fixes PR7050.

llvm-svn: 103115

show more ...


# 0dec1e0d 28-Apr-2010 Fariborz Jahanian <[email protected]>

IRGen for initialization/destruction of
ivar class objects (NeXt runtime).
(radar 7900343).

llvm-svn: 102533


# d06fb865 28-Apr-2010 John McCall <[email protected]>

Properly pass the address of a lazily-generated function declaration with
incomplete type. Fixes PR6911.

llvm-svn: 102473


Revision tags: llvmorg-2.7.0
# d3fa7018 23-Apr-2010 Fariborz Jahanian <[email protected]>

More -fno-constant-cfstrings API work.

llvm-svn: 102219


# e804c287 23-Apr-2010 Fariborz Jahanian <[email protected]>

More work toward implementing
NeXt's -fno-constant-cfstrings - wip.

llvm-svn: 102189


# 63408e84 22-Apr-2010 Fariborz Jahanian <[email protected]>

Support for -fno-constant-cfstrings option - wip.

llvm-svn: 102112


# 47cf5b58 19-Apr-2010 Rafael Espindola <[email protected]>

Add comment explaning the use of c99 inline in c++.

llvm-svn: 101787


1...<<51525354555657585960>>...75