llvm-6502/docs
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
..
CommandGuide Document the -gcc-tool-args bugpoint option. 2009-03-02 23:15:59 +00:00
HistoricalNotes
img
tutorial
AliasAnalysis.html
BitCodeFormat.html
Bugpoint.html
CFEBuildInstrs.html
CMake.html
CodeGenerator.html
CodingStandards.html
CommandLine.html
CompilerDriver.html
CompilerDriverTutorial.html
CompilerWriterInfo.html
DeveloperPolicy.html
doxygen.cfg.in
doxygen.css
doxygen.footer update year 2009-02-27 11:28:46 +00:00
doxygen.header
doxygen.intro
ExceptionHandling.html
ExtendingLLVM.html
FAQ.html fix broken GCC bugzilla link 2009-03-02 19:11:53 +00:00
GarbageCollection.html Committing unsaved changes that should've been with r66237. 2009-03-06 02:42:47 +00:00
GCCFEBuildInstrs.html
GetElementPtr.html
GettingStarted.html This bug's been fixed but a version with the fix hasn't been released yet. 2009-03-03 05:41:16 +00:00
GettingStartedVS.html
GoldPlugin.html Add a quickstart example. 2009-03-01 21:55:10 +00:00
HowToReleaseLLVM.html
HowToSubmitABug.html
index.html move gold plugin next to LTO doc in the subsystem section 2009-03-01 23:42:51 +00:00
LangRef.html Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
Lexicon.html
LinkTimeOptimization.html
llvm.css
Makefile
MakefileGuide.html Remove libtool. 2009-02-26 07:44:16 +00:00
Passes.html
ProgrammersManual.html Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
Projects.html
ReleaseNotes.html Add some more clang related release notes. 2009-03-02 20:08:12 +00:00
SourceLevelDebugging.html
SystemLibrary.html
TableGenFundamentals.html
TestingGuide.html
UsingLibraries.html
WritingAnLLVMBackend.html
WritingAnLLVMPass.html Eliminate several more unnecessary intptr_t casts. 2009-02-18 05:09:16 +00:00