[PATCH] D61226: [AArch64] Add an option to get the TLS pointer from software

Thomas Guillemard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 27 08:47:39 PDT 2019


Thog created this revision.
Thog added a reviewer: t.p.northover.
Herald added subscribers: llvm-commits, dexonsmith, kristof.beyls, javed.absar.
Herald added a project: LLVM.

This patch adds an option to get the TLS pointer via a call to __aarch64_read_tp() (similar to __aeabi_read_tp on AArch32).

Necessary on Nintendo Horizon OS, which puts the TLS pointer at a calculated offset from TPIDR_EL0.


Repository:
  rL LLVM

https://reviews.llvm.org/D61226

Files:
  lib/Target/AArch64/AArch64.td
  lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
  lib/Target/AArch64/AArch64InstrInfo.td
  lib/Target/AArch64/AArch64Subtarget.h
  test/CodeGen/AArch64/readtp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61226.196972.patch
Type: text/x-patch
Size: 4353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190427/9fb30747/attachment.bin>


More information about the llvm-commits mailing list