llvm/lib/Transforms/IPO
Peter Collingbourne 063d4cbbef WholeProgramDevirt: For VCP use a 32-bit ConstantInt for the byte offset.
A future change will cause this byte offset to be inttoptr'd and then exported
via an absolute symbol. On the importing end we will expect the symbol to be
in range [0,2^32) so that it will fit into a 32-bit relocation. The problem
is that on 64-bit architectures if the offset is negative it will not be in
the correct range once we inttoptr it.

This change causes us to use a 32-bit integer so that it can be inttoptr'd
(which zero extends) into the correct range.

Differential Revision: https://reviews.llvm.org/D30016

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295487 91177308-0d34-0410-b5e6-96231b3b80d8
2017-02-17 19:43:45 +00:00
..
AlwaysInliner.cpp
ArgumentPromotion.cpp [PM] Port ArgumentPromotion to the new pass manager. 2017-02-09 23:46:27 +00:00
BarrierNoopPass.cpp
CMakeLists.txt
ConstantMerge.cpp
CrossDSOCFI.cpp
DeadArgumentElimination.cpp
ElimAvailExtern.cpp
ExtractGV.cpp
ForceFunctionAttrs.cpp
FunctionAttrs.cpp FunctionAttrs: Factor out a function for querying memory access of a specific copy of a function. NFC. 2017-02-14 00:28:13 +00:00
FunctionImport.cpp IRMover: Merge flags LinkModuleInlineAsm and IsPerformingImport. 2017-02-03 17:01:14 +00:00
GlobalDCE.cpp Global DCE performance improvement 2017-01-27 19:48:57 +00:00
GlobalOpt.cpp
GlobalSplit.cpp
InferFunctionAttrs.cpp
Inliner.cpp Do not apply redundant LastCallToStaticBonus 2017-02-14 17:30:05 +00:00
InlineSimple.cpp
Internalize.cpp
IPConstantPropagation.cpp [IPCP] Don't propagate return value for naked functions. 2017-02-04 19:44:14 +00:00
IPO.cpp
LLVMBuild.txt
LoopExtractor.cpp
LowerTypeTests.cpp Rename LowerTypeTestsSummaryAction to PassSummaryAction. NFCI. 2017-02-09 21:45:01 +00:00
MergeFunctions.cpp Use print() instead of dump() in code 2017-01-28 06:53:55 +00:00
PartialInlining.cpp
PassManagerBuilder.cpp PMB: Add an importing WPD pass to the start of the ThinLTO backend pipeline. 2017-02-15 23:48:38 +00:00
PruneEH.cpp
SampleProfile.cpp Fix the samplepgo indirect call promotion bug: we should not promote a direct call. 2017-02-06 23:33:15 +00:00
StripDeadPrototypes.cpp
StripSymbols.cpp
ThinLTOBitcodeWriter.cpp ThinLTOBitcodeWriter: Write available_externally copies of VCP eligible functions to merged module. 2017-02-14 03:42:38 +00:00
WholeProgramDevirt.cpp WholeProgramDevirt: For VCP use a 32-bit ConstantInt for the byte offset. 2017-02-17 19:43:45 +00:00