1 //===-- orc_rt_elfnix_tls.ppc64.s -------------------------------*- ASM -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file is a part of the ORC runtime support library.
11 //===----------------------------------------------------------------------===//
13 // The content of this file is PowerPC64 only.
14 #if defined(__powerpc64__)
17 // TODO: add fast-path for repeat access.
18 // See https://github.com/llvm/llvm-project/issues/51162.
19 .global ___orc_rt_elfnix_tls_get_addr
20 ___orc_rt_elfnix_tls_get_addr:
21 addis 2, 12, .TOC.-___orc_rt_elfnix_tls_get_addr@ha
22 addi 2, 2, .TOC.-___orc_rt_elfnix_tls_get_addr@l
26 bl __orc_rt_elfnix_tls_get_addr_impl