[PATCH] D19304: [PowerPC] Add support for llvm.thread.pointer intrinsic

Marcin Koƛcielnicki via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 14:44:10 PDT 2016


koriakin added a comment.

In http://reviews.llvm.org/D19304#411048, @kbarton wrote:

> LGTM.
>  Could you please add a short comment what this is being used for?


Alright, I'll add:

// Reads the thread pointer register, used for __builtin_thread_pointer.

Before the IntrinsicID check.

I don't have any particular use case for this builtin in mind on PowerPC - I added the SystemZ version for use in sanitizers, and it's already supported by ARM/AArch64, so I'm submitting versions for other arches for parity.


Repository:
  rL LLVM

http://reviews.llvm.org/D19304





More information about the llvm-commits mailing list