- Jul 01, 2009
-
-
Owen Anderson authored
llvm-svn: 74640
-
Owen Anderson authored
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
-
- Apr 13, 2009
-
-
Chris Lattner authored
to support C99 inline, GNU extern inline, etc. Related bugzilla's include PR3517, PR3100, & PR2933. Nothing uses this yet, but it appears to work. llvm-svn: 68940
-
- Mar 08, 2009
-
-
Duncan Sands authored
final cleaning. This fixes a bunch of testsuite failures. llvm-svn: 66380
-
- Mar 07, 2009
-
-
Duncan Sands authored
and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. llvm-svn: 66339
-
- Mar 03, 2009
-
-
Mikhail Glushenkov authored
llvm-svn: 65942
-
Mikhail Glushenkov authored
llvm-svn: 65936
-
- Jan 15, 2009
-
-
Rafael Espindola authored
llvm-svn: 62279
-
- Jan 09, 2009
-
-
Misha Brukman authored
llvm-svn: 61991
-
- Oct 25, 2008
-
-
Dan Gohman authored
actually correspond to what their names suggest. llvm-svn: 58146
-
- Oct 15, 2008
-
-
Anton Korobeynikov authored
llvm-svn: 57595
-
Anton Korobeynikov authored
llvm-svn: 57594
-
- Sep 29, 2008
-
-
Duncan Sands authored
instead of hasWeakLinkage in a bunch of optimization passes. llvm-svn: 56782
-
- Sep 22, 2008
-
-
Oscar Fuentes authored
llvm-svn: 56419
-
- Sep 09, 2008
-
-
Anton Korobeynikov authored
llvm-svn: 56005
-
Anton Korobeynikov authored
llvm-svn: 55997
-
- Jul 14, 2008
-
-
Chris Lattner authored
the second half of link-global-to-func.ll and causes some minor changes in messages. There are two TODOs here. First, this causes a regression in 2008-07-06-AliasWeakDest.ll, which is now failing (so I xfailed it). Anton, I would really appreciate it if you could take a look at this. It should be a matter of adding proper alias support to GetLinkageResult, and was probably already a latent bug that would manifest with globals. The second todo is to reimplement LinkAlias in the same pattern as function and global linking. This should be pretty straight-forward for someone who knows aliases, but isn't a requirement for correctness. llvm-svn: 53548
-
Chris Lattner authored
internal linkage. llvm-svn: 53547
-
Chris Lattner authored
(replacing a function with a global). This is needed when building llvm itself with LTO on darwin, because of the EXPLICIT_SYMBOL hack in lib/system/DynamicLibrary.cpp. Implementation of linking the other way will need to wait for a cleanup of LinkFunctionProtos. llvm-svn: 53546
-
Chris Lattner authored
llvm-svn: 53545
-
- Jul 10, 2008
-
-
Chris Lattner authored
though that would be nice and make sense :). Patch by Nathan Keynes! llvm-svn: 53387
-
- Jul 07, 2008
-
-
Dan Gohman authored
llvm-svn: 53177
-
- Jul 06, 2008
-
-
Anton Korobeynikov authored
having weak or linkonce or common or extweak LLVM linkage. llvm-svn: 53158
-
Anton Korobeynikov authored
llvm-svn: 53156
-
Anton Korobeynikov authored
llvm-svn: 53154
-
- Jun 27, 2008
-
-
Chris Lattner authored
llvm-svn: 52810
-
- Jun 20, 2008
-
-
Chris Lattner authored
types differ. Patch by Nathan Keynes! llvm-svn: 52527
-
- Jun 17, 2008
-
-
Chris Lattner authored
llvm-svn: 52374
-
- Jun 16, 2008
-
-
Chris Lattner authored
llvm-svn: 52364
-
Chris Lattner authored
a vector with a linear search. This speeds up the linking testcase in PR1860 from 0.965s to 0.385s on my system. llvm-svn: 52357
-
Chris Lattner authored
llvm-svn: 52351
-
Chris Lattner authored
llvm-svn: 52350
-
Chris Lattner authored
the testcases in PR1860 from taking more than 1 hour (when I killed it) to taking 1s. llvm-svn: 52347
-
Chris Lattner authored
llvm-svn: 52341
-
Chris Lattner authored
client that cares and simplifying its control flow. Remove the DestST argument to ResolveTypes and RecursiveResolveTypes* which are dead now. llvm-svn: 52340
-
Chris Lattner authored
ResolveTypes into the one place that needs it. llvm-svn: 52338
-
- Jun 09, 2008
-
-
Chris Lattner authored
function into a weak function, zap the weak function body so that the strong one overrides it. This fixes PR2410 llvm-svn: 52135
-
Chris Lattner authored
function bodies. We now don't try to unify types or handling type mismatches if when linking an internal foo to an external foo. llvm-svn: 52134
-
Chris Lattner authored
llvm-svn: 52133
-
- May 26, 2008
-
-
Duncan Sands authored
the section or the visibility from one global value to another: copyAttributesFrom. This is particularly useful for duplicating functions: previously this was done by explicitly copying each attribute in turn at each place where a new function was created out of an old one, with the result that obscure attributes were regularly forgotten (like the collector or the section). Hopefully now everything is uniform and nothing is forgotten. llvm-svn: 51567
-