summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-05-04 20:14:09 +0000
committerTim Northover <Tim.Northover@arm.com>2013-05-04 20:14:09 +0000
commit37cde9755d958f515ea09e4d237a943935128814 (patch)
tree491cc70d580b90f459c224c5b5ace699fcdd1db7 /clang/lib/CodeGen/CGCall.cpp
parent4d01c1e0e62ab0ef31faf61a7597be45ffa5db5c (diff)
downloadbcm5719-llvm-37cde9755d958f515ea09e4d237a943935128814.tar.gz
bcm5719-llvm-37cde9755d958f515ea09e4d237a943935128814.zip
AArch64: add stubs to support long function calls on MCJIT
As with global accesses, external functions could exist anywhere in memory. Therefore the stub must create a complete 64-bit address. This patch implements the fragment as (roughly): movz x16, #:abs_g3:somefunc movk x16, #:abs_g2_nc:somefunc movk x16, #:abs_g1_nc:somefunc movk x16, #:abs_g0_nc:somefunc br x16 In principle we could save 4 bytes by using a literal-load instead, but it is unclear that would be more efficient and can only be tested when real hardware is readily available. This allows (for example) the MCJIT test 2003-05-07-ArgumentTest to pass on AArch64. llvm-svn: 181133
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud