llvm-6502/lib/Transforms/Utils
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
..
AddrModeMatcher.cpp Fix compiler warning about uninitialized variables. No functional change. 2009-02-27 06:29:31 +00:00
BasicBlockUtils.cpp Skip ptr-to-ptr bitcasts when counting in another case. 2009-03-04 02:06:53 +00:00
BasicInliner.cpp Changed option name from inline-threshold to basic-inline-threshold because 2009-02-23 07:07:56 +00:00
BreakCriticalEdges.cpp Rename getAnalysisToUpdate to getAnalysisIfAvailable. 2009-01-28 13:14:17 +00:00
CloneFunction.cpp Do not clone llvm.dbg.func.start and corresponding llvm.dbg.region.end during inlining. 2009-02-10 07:48:18 +00:00
CloneLoop.cpp Rename getAnalysisToUpdate to getAnalysisIfAvailable. 2009-01-28 13:14:17 +00:00
CloneModule.cpp
CloneTrace.cpp
CMakeLists.txt Add AddrModeMatcher.cpp 2009-02-21 07:05:11 +00:00
CodeExtractor.cpp
DemoteRegToStack.cpp
InlineCost.cpp Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
InlineFunction.cpp Revert unintended commmit. 2009-03-04 02:09:48 +00:00
InstructionNamer.cpp
LCSSA.cpp Simplify the logic of getting hold of a PHI predecessor block. 2009-01-23 19:40:15 +00:00
Local.cpp Add "check/remove dbg var" helper routines. 2009-03-06 00:19:37 +00:00
LoopSimplify.cpp Rename getAnalysisToUpdate to getAnalysisIfAvailable. 2009-01-28 13:14:17 +00:00
LowerAllocations.cpp Rename getABITypeSize to getTypePaddedSize, as 2009-01-12 20:38:59 +00:00
LowerInvoke.cpp Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
LowerSwitch.cpp
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
Mem2Reg.cpp Just roll back the previous change to -mem2reg. 2009-02-20 17:49:33 +00:00
PromoteMemoryToRegister.cpp Tweak the check for promotable alloca's to handle 2009-03-06 00:42:50 +00:00
SimplifyCFG.cpp Fix another case where debug info interferes with 2009-03-06 21:08:33 +00:00
UnifyFunctionExitNodes.cpp Tidy up #includes, deleting a bunch of unnecessary #includes. 2009-01-05 17:59:02 +00:00
UnrollLoop.cpp
ValueMapper.cpp