[PATCH] D19098: [AArch64] [ARM] Make a target-independent llvm.thread.pointer intrinsic.

Marcin Koƛcielnicki via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 01:06:55 PDT 2016


koriakin created this revision.
koriakin added a reviewer: t.p.northover.
koriakin added a subscriber: llvm-commits.
koriakin set the repository for this revision to rL LLVM.
Herald added subscribers: rengolin, aemerson.

Both AArch64 and ARM support llvm.<arch>.thread.pointer intrinsics that
just return the thread pointer.  I have a pending patch that does the same
for SystemZ (D19054), and there are many more targets that could benefit
from one.

This patch merges the ARM and AArch64 intrinsics into a single target
independent one that will also be used by subsequent targets.

This breaks a clang test (that checks for llvm.aarch64.thread.pointer),
which will be fixed in another change.  clang itself requires no modification,
thanks to GCCBuiltin.

Repository:
  rL LLVM

http://reviews.llvm.org/D19098

Files:
  include/llvm/IR/Intrinsics.td
  include/llvm/IR/IntrinsicsAArch64.td
  include/llvm/IR/IntrinsicsARM.td
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  test/CodeGen/AArch64/arm64-builtins-linux.ll
  test/CodeGen/ARM/thread_pointer.ll
  test/Transforms/SafeStack/AArch64/abi.ll
  test/Transforms/SafeStack/AArch64/abi_ssp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19098.53665.patch
Type: text/x-patch
Size: 6367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160414/ec5cce40/attachment.bin>


More information about the llvm-commits mailing list