[FastISel][AArch64] Add MachO large code model support for function calls.
authorJuergen Ributzka <juergen@apple.com>
Thu, 31 Jul 2014 04:10:40 +0000 (04:10 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 31 Jul 2014 04:10:40 +0000 (04:10 +0000)
commite3a75015d7debb3d848934e3f3786294f3ff835a
tree89c82b11f243439d8f74aa7ab7942820864dd500
parent1c9b9823da0797e5e9a2942c4efc3c63edfbbbba
[FastISel][AArch64] Add MachO large code model support for function calls.

Currently the large code model for MachO uses the GOT to make function calls.
Emit the required adrp and ldr instructions to load the address from the GOT.

Related to <rdar://problem/17733076>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214381 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/arm64-fast-isel-call.ll