summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-07-14 22:26:06 +0000
committerHal Finkel <hfinkel@anl.gov>2015-07-14 22:26:06 +0000
commit9bbad03b9887e41bc0d5dccecc01237f39022102 (patch)
treec0491b43a8338611cd1f032feb43bca50291add5 /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parent9170a1737706ec2aa8e60d428f46468f3c069c2d (diff)
downloadbcm5719-llvm-9bbad03b9887e41bc0d5dccecc01237f39022102.tar.gz
bcm5719-llvm-9bbad03b9887e41bc0d5dccecc01237f39022102.zip
[PowerPC] Use the ABI indirect-call protocol for patchpoints
We used to take the address specified as the direct target of the patchpoint and did no TOC-pointer handling. This, however, as not all that useful, because MCJIT tends to create a lot of modules, and they have their own TOC sections. Thus, to call from the generated code to other generated code, you really need to switch TOC pointers. Make this work as expected, and under ELFv1, tread the address as the function descriptor address so that the correct TOC pointer can be loaded. llvm-svn: 242217
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud