[all-commits] [llvm/llvm-project] b71f2f: [Android] Use ELF TLS for Android API level 29+

Brad Smith via All-commits all-commits at lists.llvm.org
Mon Apr 17 16:35:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b71f2fcd46790dd63dd2688c208139ea26f027d4
      https://github.com/llvm/llvm-project/commit/b71f2fcd46790dd63dd2688c208139ea26f027d4
  Author: Brad Smith <brad at comstyle.com>
  Date:   2023-04-17 (Mon, 17 Apr 2023)

  Changed paths:
    M llvm/include/llvm/TargetParser/Triple.h
    M llvm/test/CodeGen/AArch64/emutls_generic.ll
    M llvm/test/CodeGen/X86/emutls-pic.ll
    M llvm/test/CodeGen/X86/emutls-pie.ll
    M llvm/test/CodeGen/X86/emutls_generic.ll
    M llvm/test/CodeGen/X86/fast-isel-emutls.ll

  Log Message:
  -----------
  [Android] Use ELF TLS for Android API level 29+

Use ELF TLS by default instead of emulated TLS for Android build targets when
the API level is >= 29.

Android Q features full TLS support. See release notes
(https://developer.android.com/preview/features#elf-tls) and implementation details
(https://android.googlesource.com/platform/bionic/+/master/docs/elf-tls.md#Workaround_Use-Variant-2-on-arm32_arm64).

Reviewed By: rprichard, danalbert

Differential Revision: https://reviews.llvm.org/D147849




More information about the All-commits mailing list