llvm/lib/VMCore
Duncan Sands 667d4b8de6 Introduce new linkage types linkonce_odr, weak_odr, common_odr
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66339 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-07 15:45:40 +00:00
..
AsmWriter.cpp Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
Attributes.cpp Use the spiffy new getAlignmentFromAttrs function. 2009-01-11 17:02:06 +00:00
AutoUpgrade.cpp Reapply 63765. Patches for clang and llvm-gcc to follow. 2009-02-05 01:49:45 +00:00
BasicBlock.cpp simplify the way how traits get hold of the symbol table 2009-03-07 12:33:24 +00:00
CMakeLists.txt CMake: removed lib/VMCore/DebugInfoBuilder.cpp. 2009-01-08 00:18:52 +00:00
ConstantFold.cpp Extension of GEP in constant folder was broken (apparently this code 2009-02-24 19:10:46 +00:00
ConstantFold.h Fix comment typos. 2008-08-01 12:23:49 +00:00
Constants.cpp Fix a bunch of Doxygen syntax issues. Escape special characters, 2009-03-03 02:55:14 +00:00
Core.cpp C bindings for dyn_cast_or_null. 2008-12-19 18:39:45 +00:00
Dominators.cpp Move dominator info printer into tool/opt/GraphPrinters.cpp 2008-06-30 17:32:58 +00:00
Function.cpp further simplifications arising from peruse of the more declarative interface 2009-03-07 10:49:57 +00:00
Globals.cpp Use mayBeOverridden here, in anticipation of the 2009-01-08 20:55:49 +00:00
InlineAsm.cpp Keep track of *which* input constraint matches an output 2008-10-17 16:47:46 +00:00
Instruction.cpp Simplify the logic of getting hold of a PHI predecessor block. 2009-01-23 19:40:15 +00:00
Instructions.cpp simplify CallSite helper class to not consult the Instruction's 2009-01-11 22:33:22 +00:00
IntrinsicInst.cpp The fields for the stoppoint debug intrinsic have not changed, so update the 2008-12-19 19:56:36 +00:00
LeakDetector.cpp Have LeakDetector use a SmallPtrSet instead of an std::set. 2008-08-14 20:40:10 +00:00
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
Mangler.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
Module.cpp further simplifications arising from peruse of the more declarative interface 2009-03-07 10:49:57 +00:00
ModuleProvider.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Pass.cpp Rename getAnalysisToUpdate to getAnalysisIfAvailable. 2009-01-28 13:14:17 +00:00
PassManager.cpp Sprinkle some PrettyStackEntry magic into the passmanager. With this, we now 2009-03-06 06:45:05 +00:00
PrintModulePass.cpp Eliminate several more unnecessary intptr_t casts. 2009-02-18 05:09:16 +00:00
SymbolTableListTraitsImpl.h Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
Type.cpp delete a bunch of duplicated type printing logic, using the type printing 2009-02-28 23:01:57 +00:00
TypeSymbolTable.cpp Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. 2008-05-15 10:04:30 +00:00
Use.cpp another fix to my previous commit: 2009-01-05 17:19:25 +00:00
Value.cpp Make stripPointerCasts and getUnderlyingObject 2008-12-29 21:06:19 +00:00
ValueSymbolTable.cpp implement some fixme's by making "autorenaming" in the value symbol table not 2008-06-27 21:26:26 +00:00
ValueTypes.cpp Added support for vector widening. 2008-12-18 20:03:17 +00:00
Verifier.cpp Change WriteTypeSymbolic to not put a space out before types, also, remove 2009-02-28 21:05:51 +00:00